Re: Interfacing with my NIC's hardware Help!!




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

.



Relevant Pages

  • Re: Interfacing with my NICs hardware Help!!
    ... >>> controller under linux so I've been looking at the code trying to ... >>> where or how to access the NIC's hardware. ... >>the card for anything to work. ... > Do you know where I can see the exact model of the card? ...
    (comp.os.linux.hardware)
  • Re: Interfacing with my NICs hardware Help!!
    ... Do you know where I can see the exact model of the card? ... Windows isn't ... Prev by Date: ...
    (comp.os.linux.hardware)
  • Re: Quad Ethernet Controller (SQEC/S) in Ultra 1E?
    ... Beardy schrieb in comp.sys.sun.hardware: ... Can't say for your exact model though..... ... I didn't manage to find the handbook of this card. ... But with the 501-2062 and new Solaris there's no go, ...
    (comp.sys.sun.hardware)
  • Re: xircom pcmcia rthernet card
    ... > If someone is using xircom card please tell me how U made your ... > instalation. ... > Cannot activate the card. ... What is exact model of the card? ...
    (Fedora)
  • [it really is text/plain :P] dual port onboard 82546EB checksum errors
    ... I have a rackmount server that has a dual port onboard 82546EB card. ... low) -> IRQ 16 ... 03:07.1 Ethernet controller: Intel Corporation 82546EB Gigabit ... 04: 09.0 Ethernet controller: Intel Corporation 82545GM Gigabit ...
    (Linux-Kernel)