PCI Network Interface Card appearing three times on PCI scan

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
agargiulo
Posts: 4
Joined: Wed Apr 17, 2013 12:16 pm

PCI Network Interface Card appearing three times on PCI scan

Post 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.
User avatar
XanClic
Member
Member
Posts: 138
Joined: Wed Feb 13, 2008 9:38 am

Re: PCI Network Interface Card appearing three times on PCI

Post 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).
agargiulo
Posts: 4
Joined: Wed Apr 17, 2013 12:16 pm

Re: PCI Network Interface Card appearing three times on PCI

Post 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.
Post Reply