aboutsummaryrefslogtreecommitdiffstats
path: root/src/hw/pci.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-02-02 22:09:57 -0500
committerKevin O'Connor <kevin@koconnor.net>2016-02-02 23:16:40 -0500
commitf1b1d76159a8e7091e783bbc296b928226ccf153 (patch)
treeda9ad594b7e9c478966d00c138827fc982ce91ef /src/hw/pci.h
parent88e9bd7caee694498cadccba5c1e63baad6d83ab (diff)
downloadseabios-f1b1d76159a8e7091e783bbc296b928226ccf153.tar.gz
pci: Add helper functions for internal driver BAR handling
Add functions to verify and obtain PCI BARs (Base Address Registers). These new functions check that the requested BAR is of the right type and appears valid. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/hw/pci.h')
-rw-r--r--src/hw/pci.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hw/pci.h b/src/hw/pci.h
index fc5e7b9b..8e397539 100644
--- a/src/hw/pci.h
+++ b/src/hw/pci.h
@@ -126,6 +126,9 @@ struct pci_device *pci_find_init_device(const struct pci_device_id *ids
u8 pci_find_capability(struct pci_device *pci, u8 cap_id, u8 cap);
int pci_bridge_has_region(struct pci_device *pci,
enum pci_region_type region_type);
+void pci_enable_busmaster(struct pci_device *pci);
+u16 pci_enable_iobar(struct pci_device *pci, u32 addr);
+void *pci_enable_membar(struct pci_device *pci, u32 addr);
void pci_reboot(void);
#endif