Re: Interfacing with my NIC's hardware Help!!
- From: "Jean-François Michaud" <cometaj@xxxxxxxxxxx>
- Date: 30 Dec 2005 13:57:31 -0800
Dances With Crows wrote:
> 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.
Thank you for the information. I was actually looking for a way to do
this but somewhat gave up a little while back.
> >>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.
Nice! Here goes:
02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5705M
Gigabit Ethernet (rev 01)
Subsystem: Dell Computer Corporation: Unknown device 865d
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium
>TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (16000ns min), cache line size 08
Interrupt: pin A routed to IRQ 11
Region 0: Memory at faff0000 (64-bit, non-prefetchable)
[size=64K]
>
> > 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.
I will also give that a try. Thank you much for the suggestion.
Regards
Jean-Francois Michaud
.
- 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
- Re: Interfacing with my NIC's hardware Help!!
- From: Dances With Crows
- Interfacing with my NIC's hardware Help!!
- Prev by Date: Re: lm_sensors trustworthiness
- Next by Date: Re: mouse functionality in games
- Previous by thread: Re: Interfacing with my NIC's hardware Help!!
- Next by thread: Re: mouse functionality in games
- Index(es):
Relevant Pages
|