mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
define macro WITH_PCI_IDS to include or to exclude the name of PCI devices
This commit is contained in:
parent
0bfd524804
commit
626db95a3a
2 changed files with 5 additions and 0 deletions
|
@ -32,7 +32,9 @@
|
|||
#include <asm/io.h>
|
||||
|
||||
#include <asm/pci.h>
|
||||
#ifdef WITH_PCI_IDS
|
||||
#include "pcihdr.h"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* PCI configuration registers
|
||||
|
@ -182,6 +184,7 @@ int print_pci_adapters(void)
|
|||
counter, adapters[bus][slot] & 0xffff,
|
||||
(adapters[bus][slot] & 0xffff0000) >> 16);
|
||||
|
||||
#ifdef WITH_PCI_IDS
|
||||
for (i=0; i<PCI_VENTABLE_LEN; i++) {
|
||||
if ((adapters[bus][slot] & 0xffff) ==
|
||||
(uint32_t)PciVenTable[i].VenId)
|
||||
|
@ -201,6 +204,7 @@ int print_pci_adapters(void)
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,6 +45,7 @@ extern "C" {
|
|||
#define KMSG_SIZE (8*1024)
|
||||
#define INT_SYSCALL 0x80
|
||||
#define MAILBOX_SIZE 32
|
||||
//#define WITH_PCI_IDS
|
||||
|
||||
#define BYTE_ORDER LITTLE_ENDIAN
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue