diff options
-rw-r--r-- | src/hw/pcidevice.c | 4 | ||||
-rw-r--r-- | src/hw/pcidevice.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/hw/pcidevice.c b/src/hw/pcidevice.c index ed3e15d..bbfafa4 100644 --- a/src/hw/pcidevice.c +++ b/src/hw/pcidevice.c @@ -145,11 +145,11 @@ pci_enable_busmaster(struct pci_device *pci) } // Verify an IO bar and return it to the caller -u16 +portaddr_t pci_enable_iobar(struct pci_device *pci, u32 addr) { wait_preempt(); - u32 bar = pci_config_readl(pci->bdf, addr); + portaddr_t bar = pci_config_readl(pci->bdf, addr); if (!(bar & PCI_BASE_ADDRESS_SPACE_IO)) { warn_internalerror(); return 0; diff --git a/src/hw/pcidevice.h b/src/hw/pcidevice.h index eb3de39..727e50b 100644 --- a/src/hw/pcidevice.h +++ b/src/hw/pcidevice.h @@ -71,7 +71,7 @@ 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); void pci_enable_busmaster(struct pci_device *pci); -u16 pci_enable_iobar(struct pci_device *pci, u32 addr); +portaddr_t pci_enable_iobar(struct pci_device *pci, u32 addr); void *pci_enable_membar(struct pci_device *pci, u32 addr); #endif // pcidevice.h |