summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2014-02-11 19:56:57 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2014-02-12 22:01:00 +0100
commit2161c1d792fedecfad32587b6fde657c19d647d0 (patch)
tree77d9c59f6515c122761e1efeb00aaa17b4fa0f52 /src/include
parent2c78726897055553c362de37cf0aad25bd67cba3 (diff)
downloadcoreboot-2161c1d792fedecfad32587b6fde657c19d647d0.tar.xz
PCI: Add capability list parser to romstage
These are almost one-to-one copies from pci_device.c. However, devicetree has not been enumerated yet and we have no console. Change-Id: Ic80c781626521d03adde05bdb1916acce31290ea Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5196 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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/device/pci.h b/src/include/device/pci.h
index 7504cc7269..29d988fd9e 100644
--- a/src/include/device/pci.h
+++ b/src/include/device/pci.h
@@ -20,6 +20,7 @@
#include <stdint.h>
#include <stddef.h>
#include <arch/rules.h>
+#include <arch/io.h>
#include <device/pci_def.h>
#include <device/resource.h>
#include <device/device.h>
@@ -76,8 +77,6 @@ unsigned int pci_scan_bus(struct bus *bus, unsigned min_devfn, unsigned max_devf
uint8_t pci_moving_config8(struct device *dev, unsigned reg);
uint16_t pci_moving_config16(struct device *dev, unsigned reg);
uint32_t pci_moving_config32(struct device *dev, unsigned reg);
-unsigned pci_find_next_capability(device_t dev, unsigned cap, unsigned last);
-unsigned pci_find_capability(device_t dev, unsigned cap);
struct resource *pci_get_resource(struct device *dev, unsigned long index);
void pci_dev_set_subsystem(device_t dev, unsigned vendor, unsigned device);
void pci_dev_init(struct device *dev);
@@ -101,6 +100,9 @@ static inline const struct pci_operations *ops_pci(device_t dev)
#endif /* ! __SIMPLE_DEVICE__ */
+unsigned pci_find_next_capability(device_t dev, unsigned cap, unsigned last);
+unsigned pci_find_capability(device_t dev, unsigned cap);
+
#endif /* CONFIG_PCI */
#endif /* PCI_H */