Page 1 of 1

PCI Network Interface Card appearing three times on PCI scan

Posted: Wed Apr 17, 2013 1:01 pm
by agargiulo
For the OS I am working on, we make an array of all of the PCI devices based on the examples here: PCI

Every device shows up exactly once, except for the two network cards, which each show up three times.
The cards are:
  1. Intel Pro 100 8255x (rev 8 )
    • Device ID: 1229
    • Shows up at:
      • Bus 0, Slot 41
      • Bus 2, Slot 1
      • Bus 2, Slot 41
  2. Broadcom BCM57788 LOM / NetLink (TM) Gigabit Ethernet
    • Device ID: 1691
    • Shows up at:
      • Bus 0, Slot 20
      • Bus 1, Slot 0
      • Bus 1, Slot 20
Every time, the function is listed as 0.

Re: PCI Network Interface Card appearing three times on PCI

Posted: Wed Apr 17, 2013 2:34 pm
by XanClic
Well, you should remember there can be only 32 (0x20) slots per bus. I take your numbers are given in hexadecimal? If so, they're obviously overflowing into the bus number. The address (bus 2, slot 0x01) is basically the same as both (2, 0x41) and (0, 0x41). Same goes for (1, 0x00), (1, 0x20) and (0, 0x20).

Re: PCI Network Interface Card appearing three times on PCI

Posted: Wed Apr 17, 2013 2:42 pm
by agargiulo
Oh that makes so much more sense, thanks a lot. The bounds we gave to the PCI enumerator were a shot in the dark, so I'll go fix that now.

** EDIT **
Also, the numbers were in hexidecimal. I forgot to add the 0x in front of them.