From: Isaku Yamahata Date: Thu, 9 Sep 2010 02:48:57 +0000 (+0900) Subject: pci: improve signature of pci_register_bar(). X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0bb750ef9e897ba5f4d9899ddc7e222e809bcbbd;p=qemu.git pci: improve signature of pci_register_bar(). Make type uint8_t from int because PCIIORegion::type is uint8_t. Signed-off-by: Isaku Yamahata --- 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,