summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2014-02-12 14:18:50 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2014-02-12 21:56:30 +0100
commit318066fbc1c53d0686bde6626a406c039ec0b8f3 (patch)
tree51b8e525b29fabf76d62b82390ed224519aa1ee9 /src/include
parent8cde852ecf4dced16b342a2da31990e0caf8b92b (diff)
downloadcoreboot-318066fbc1c53d0686bde6626a406c039ec0b8f3.tar.xz
PCI: Guard pci.h with CONFIG_PCI
Adding PCI functions for romstage in pci.h breaks ARMv7 build without this. Also fix two related includes to use pci_def.h instead. Change-Id: I5291eaf6ddf5a584f50af29cf791d2ca4d9caa71 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5199 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Aaron Durbin <adurbin@google.com>
Diffstat (limited to 'src/include')
-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 1741c0d1e9..7504cc7269 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 */