summaryrefslogtreecommitdiffstats
path: root/src/include/device/pci.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/device/pci.h')
-rw-r--r--src/include/device/pci.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/device/pci.h b/src/include/device/pci.h
index 1741c0d1e978..7504cc726963 100644
--- a/src/include/device/pci.h
+++ b/src/include/device/pci.h
@@ -15,6 +15,8 @@
#ifndef PCI_H
#define PCI_H
+#if CONFIG_PCI
+
#include <stdint.h>
#include <stddef.h>
#include <arch/rules.h>
@@ -98,4 +100,7 @@ static inline const struct pci_operations *ops_pci(device_t dev)
}
#endif /* ! __SIMPLE_DEVICE__ */
+
+#endif /* CONFIG_PCI */
+
#endif /* PCI_H */