]> xenbits.xensource.com Git - qemu-upstream-4.2-testing.git/commitdiff
pci: improve signature of pci_register_bar().
authorIsaku Yamahata <yamahata@valinux.co.jp>
Thu, 9 Sep 2010 02:48:57 +0000 (11:48 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 13 Sep 2010 19:03:51 +0000 (21:03 +0200)
Make type uint8_t from int because PCIIORegion::type is uint8_t.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
hw/pci.c
hw/pci.h

index 8f48d9b080fe95b9c608ff09fb4aa095289216a3..97a7b232acb5bc35784f91e6094e8d512b9d5fe1 100644 (file)
--- 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;
index 2b4c318898c166e99eb2ce7a1f102827c98fb6ae..1c6075eb40669b7a612404ef9805c708b16e1632 100644 (file)
--- 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,