Re: Interfacing with my NIC's hardware Help!!
- From: Dances With Crows <danSPANceswitTRAPhcrows@xxxxxxxxx>
- Date: Fri, 30 Dec 2005 06:51:31 -0600
On 29 Dec 2005 20:17:54 -0800, Jean-François Michaud staggered into the
Black Sun and said:
Include context when you post to Usenet. That never-to-be
sufficiently-damned G2 "permanent alpha" excuse for an NNTP client
doesn't do that by default, but read http://cfaj.freeshell.org/google/
for how to make it do the right thing.
>>On 29 Dec 2005 15:50:03 -0800, Jean-François Michaud staggered into
>>the Black Sun and said:
>>> I've been working on making my own OS and I have a Broadcom 570x
>>> NIC. The Tigon3 driver does the trick for interfacing with my
>>> controller under linux so I've been looking at the code trying to
>>> figure out how to talk to the hardware, but I can't seem to see
>>> where or how to access the NIC's hardware.
>>Looks like you do pci_write_config_dword() or writel() or readl() with
>>> Is it possible to access the device through ports directly, or do I
>>> have to use the PCI bus?
>>The tg3.c file contains quite a bit of code, and most of it looks like
>>gobbledegook to me--IANAKernelHacker though. There's also a series of
>>fairly small but necessary firmware files that have to be loaded into
>>the card for anything to work.
>>> I am not trying to make anything generic. Something very crude and
>>> very specific will do just fine.
>>It might help to know the exact model# of the card, since a lot of
>>what's in the tg3.c file appears to be card-specific if()s and
> Do you know where I can see the exact model of the card? Windows isn't
> much help as usual and I just don't know how to get the information
> under linux.
"/sbin/lspci -vv | grep -A6 Ether" may show useful info. If it reports
that the card is a "570x", then you may be stuck with hacking the tg3.c
file and putting in extra printk()s to determine which 570[0-5] it is.
> I'll try and look around what you pointed out.
If I were you, I'd contact the tg3 maintainer and ask nicely, since he
knows quite a bit more than I do about this particular hardware.
--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong
http://www.brainbench.com / "He is a rhythmic movement of the
-----------------------------/ penguins, is Tux." --MegaHAL
.
- Follow-Ups:
- Re: Interfacing with my NIC's hardware Help!!
- From: Jean-François Michaud
- Re: Interfacing with my NIC's hardware Help!!
- References:
- Interfacing with my NIC's hardware Help!!
- From: Jean-François Michaud
- Re: Interfacing with my NIC's hardware Help!!
- From: Dances With Crows
- Re: Interfacing with my NIC's hardware Help!!
- From: Jean-François Michaud
- Interfacing with my NIC's hardware Help!!
- Prev by Date: Re: Fedora C 4, Soundblaster 16 not detected
- Next by Date: Re: lm_sensors trustworthiness
- Previous by thread: Re: Interfacing with my NIC's hardware Help!!
- Next by thread: Re: Interfacing with my NIC's hardware Help!!
- Index(es):
Relevant Pages
|
|