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 8f48d9b..97a7b23 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 2b4c318..1c6075e 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,