1
0
Fork 0
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:
Stefan Lankes 2015-10-24 20:25:15 +02:00
parent 0bfd524804
commit 626db95a3a
2 changed files with 5 additions and 0 deletions

View file

@ -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
}
}
}

View file

@ -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