Re: Tigon3 basic control over NIC Help!



On Fri, 30 Dec 2005 00:48:02 +0100, Jean-François Michaud"" <cometaj@xxxxxxxxxxx> wrote:

Hello,

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.

The best would be to find the specs for my hardware, but I can't seem
to get my hands on anything pertinent.

Could somebody point me in the right direction? It would save me an
awful lot of time.

Is it possible to access the device through ports directly, or do I
have to use the PCI bus?

I think I remember that the PCI bus is managed using ports. The code use pci functions that read and write the ports. If I recall correctly, the devices are mapped into the kernel address space, and the device registers are then written and read using what looks like memory accesses.

A driver that I worked with a few years ago, had this fucntion used to access an
i2c bus on a video card:

  static inline void outlong(unsigned int dat)
  {
        *((unsigned int *) (voodoo->io_base + REG)) = dat;
  }

Most PCI devices use DMA for anything voluminous.

I am not trying to make anything generic. Something very crude and very
specific will do just fine.

That is OK. Not having the technical data makes it hard. You will have to persist in examining the tigon driver, hand-stepping through the code to reach the parts that do it. Unless you already have, you should look at Rubini&Corbet's Linux Device Drivers and read about dma transfer issues. That will enable you to find your ways in the pci code faster.

-Enrique
.



Relevant Pages

  • [opensuse] openSUSE 10.3 not detecting SATA HD
    ... the sata_sis driver. ... I've tried turning off ACPI in bios and acpi=off which ... openSUSE 10.2 and all my hardware is working fine. ... info.product = 'USB Raw Device Access' ...
    (SuSE)
  • Re: 2008 SBS no longer boots
    ... driver issue initially, the fact that it seems to happen randomly now ... weird with a hardware problem that consistently doesn't get through boot ... other customer, even a 2 week old one, the problem immediately returned. ... There was a time when a server was fired up with a specialized OS and had a battery of tests run against each component to purposefully stress it. ...
    (microsoft.public.windows.server.sbs)
  • Re: Udev coldplugging loads 8139too driver instead of 8139cp
    ... On Tuesday 29 January 2008 11:43:53 Michael Tokarev wrote: ... of hardware, which both uses the same PCI identifiers. ... the correct driver. ...
    (Linux-Kernel)
  • Re: Linux, X, ld, gcc, linking, shared libraries and stuff
    ... >> because, originally, video cards / system RAM could NOT afford to have ... > GL actually "copies" everything, but it's done by the graphics card, so ... > anyway if it's not hardware accelerated. ... installed the proper driver, then it zooms around the screen... ...
    (alt.lang.asm)
  • Re: 2008 SBS no longer boots
    ... Any thermal issues and a lot of other hardware problems should show up ... Happen to know a tool to determine driver load order by just having the ... other customer, even a 2 week old one, the problem immediately returned. ... There was a time when a server (even one that had been "burned ...
    (microsoft.public.windows.server.sbs)