summaryrefslogtreecommitdiff
path: root/hw/pci.h
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2010-09-09 11:48:57 +0900
committerMichael S. Tsirkin <mst@redhat.com>2010-09-13 21:03:51 +0200
commit0bb750ef9e897ba5f4d9899ddc7e222e809bcbbd (patch)
tree6a6d62faa9a4b65ed22297b44e5db4a3b24c4199 /hw/pci.h
parent2bbb9c2f7f36d0457cda5f27d7e4422219b3acd8 (diff)
downloadqemu-0bb750ef9e897ba5f4d9899ddc7e222e809bcbbd.tar.gz
pci: improve signature of pci_register_bar().
Make type uint8_t from int because PCIIORegion::type is uint8_t. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Diffstat (limited to 'hw/pci.h')
-rw-r--r--hw/pci.h2
1 files changed, 1 insertions, 1 deletions
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,