From 626db95a3a30aa343e259de317133ef738d7ebbd Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sat, 24 Oct 2015 20:25:15 +0200 Subject: [PATCH] define macro WITH_PCI_IDS to include or to exclude the name of PCI devices --- hermit/arch/x86/kernel/pci.c | 4 ++++ hermit/include/hermit/config.h | 1 + 2 files changed, 5 insertions(+) diff --git a/hermit/arch/x86/kernel/pci.c b/hermit/arch/x86/kernel/pci.c index 8e99dca03..4a9a78624 100644 --- a/hermit/arch/x86/kernel/pci.c +++ b/hermit/arch/x86/kernel/pci.c @@ -32,7 +32,9 @@ #include #include +#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