aboutsummaryrefslogtreecommitdiff
path: root/src/vgahooks.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-02-03 01:28:20 -0500
committerKevin O'Connor <kevin@koconnor.net>2016-02-03 10:38:42 -0500
commit4d8510cdcca0a6b160bb8dc3a254ab0baacb10f6 (patch)
tree03e971f2bc93a834a3dd57a304b9a6a17309eba4 /src/vgahooks.c
parent62ff9d5f649c6ce0d8cbea5d90080afc9870f54a (diff)
downloadseabios-hppa-4d8510cdcca0a6b160bb8dc3a254ab0baacb10f6.zip
seabios-hppa-4d8510cdcca0a6b160bb8dc3a254ab0baacb10f6.tar.gz
seabios-hppa-4d8510cdcca0a6b160bb8dc3a254ab0baacb10f6.tar.bz2
pci: Split low-level pci code from higher-level 'struct pci_device' code
Split pci.c into pci.c and pcidevice.c. The low-level code that interacts directly with the PCI devices remains in pci.c, while functions dealing with the higher level pci_device cache move to pcidevice.c. Only pci.c is needed in 16bit mode. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/vgahooks.c')
-rw-r--r--src/vgahooks.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vgahooks.c b/src/vgahooks.c
index 48efb08..1f14953 100644
--- a/src/vgahooks.c
+++ b/src/vgahooks.c
@@ -7,7 +7,8 @@
#include "biosvar.h" // GET_GLOBAL
#include "bregs.h" // set_code_invalid
#include "config.h" // CONFIG_*
-#include "hw/pci.h" // pci_find_device
+#include "hw/pci.h" // pci_config_readb
+#include "hw/pcidevice.h" // pci_find_device
#include "hw/pci_ids.h" // PCI_VENDOR_ID_VIA
#include "hw/pci_regs.h" // PCI_VENDOR_ID
#include "output.h" // dprintf