added vendor & device id to bus scan
This commit is contained in:
@@ -175,8 +175,8 @@ void pci_scan(void)
|
||||
uint16_t i;
|
||||
|
||||
xprintf("\r\nPCI bus scan...\r\n\r\n");
|
||||
xprintf(" Bus|Slot|Func|\r\n");
|
||||
xprintf("----+----+----|\r\n");
|
||||
xprintf(" Bus|Slot|Func|Vndr|Dev |\r\n");
|
||||
xprintf("----+----+----|----+++++|\r\n");
|
||||
for (bus = 0; bus < 1; bus++)
|
||||
{
|
||||
for (slot = 0; slot < 32; slot++)
|
||||
@@ -188,8 +188,9 @@ void pci_scan(void)
|
||||
value = pci_read_config_longword(bus, slot, function, 0);
|
||||
if (value != 0xffffffff)
|
||||
{
|
||||
xprintf("[%02x]|[%02x]|[%02x]| %s\r\n", bus, slot, function,
|
||||
device_class(pci_read_config_longword(bus, slot, function, 0x08) >> 24 & 0xff));
|
||||
xprintf("[%02x]|[%02x]|[%02x]|%04x|%04x| %s\r\n", bus, slot, function,
|
||||
PCI_VENDOR_ID(value), PCI_DEVICE_ID(value),
|
||||
device_class(pci_read_config_longword(bus, slot, function, 0x08) >> 24 & 0xff));
|
||||
for (i = 0; i < 0x40; i += 4)
|
||||
{
|
||||
value = pci_read_config_longword(bus, slot, function, i);
|
||||
|
||||
Reference in New Issue
Block a user