diff --git a/hw/pci.c b/hw/pci.c index 8f48d9b080..97a7b232ac 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -758,7 +758,7 @@ static int pci_unregister_device(DeviceState *dev) } void pci_register_bar(PCIDevice *pci_dev, int region_num, - pcibus_t size, int type, + pcibus_t size, uint8_t type, PCIMapIORegionFunc *map_func) { PCIIORegion *r; diff --git a/hw/pci.h b/hw/pci.h index 2b4c318898..1c6075eb40 100644 --- a/hw/pci.h +++ b/hw/pci.h @@ -180,7 +180,7 @@ PCIDevice *pci_register_device(PCIBus *bus, const char *name, PCIConfigWriteFunc *config_write); void pci_register_bar(PCIDevice *pci_dev, int region_num, - pcibus_t size, int type, + pcibus_t size, uint8_t type, PCIMapIORegionFunc *map_func); int pci_add_capability(PCIDevice *pdev, uint8_t cap_id,