diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-02-03 00:47:27 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-02-03 10:38:42 -0500 |
commit | 62ff9d5f649c6ce0d8cbea5d90080afc9870f54a (patch) | |
tree | be689c87bf0ef9e6b23ad3153e507374df65fdff /src/hw/pci.h | |
parent | 7b67300f7d9db7dcf855e201db2f0da8f318e40d (diff) | |
download | seabios-62ff9d5f649c6ce0d8cbea5d90080afc9870f54a.zip seabios-62ff9d5f649c6ce0d8cbea5d90080afc9870f54a.tar.gz seabios-62ff9d5f649c6ce0d8cbea5d90080afc9870f54a.tar.bz2 |
pci: Move code in pci.c that is specific to pciinit.c to pciinit.c
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/hw/pci.h')
-rw-r--r-- | src/hw/pci.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/hw/pci.h b/src/hw/pci.h index 8e39753..61eb1f3 100644 --- a/src/hw/pci.h +++ b/src/hw/pci.h @@ -8,17 +8,6 @@ #define PORT_PCI_REBOOT 0x0cf9 #define PORT_PCI_DATA 0x0cfc -#define PCI_ROM_SLOT 6 -#define PCI_NUM_REGIONS 7 -#define PCI_BRIDGE_NUM_REGIONS 2 - -enum pci_region_type { - PCI_REGION_TYPE_IO, - PCI_REGION_TYPE_MEM, - PCI_REGION_TYPE_PREFMEM, - PCI_REGION_TYPE_COUNT, -}; - static inline u8 pci_bdf_to_bus(u16 bdf) { return bdf >> 8; } @@ -68,8 +57,6 @@ struct pci_device { // Local information on device. int have_driver; }; -extern u64 pcimem_start, pcimem_end; -extern u64 pcimem64_start, pcimem64_end; extern struct hlist_head PCIDevices; extern int MaxPCIBus; int pci_probe_host(void); @@ -124,8 +111,6 @@ int pci_init_device(const struct pci_device_id *ids struct pci_device *pci_find_init_device(const struct pci_device_id *ids , void *arg); 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); |