diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-02-02 22:09:57 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-02-02 23:16:40 -0500 |
commit | f1b1d76159a8e7091e783bbc296b928226ccf153 (patch) | |
tree | da9ad594b7e9c478966d00c138827fc982ce91ef /src/hw/pci.h | |
parent | 88e9bd7caee694498cadccba5c1e63baad6d83ab (diff) | |
download | seabios-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.h | 3 |
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 |