diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2011-01-27 15:56:39 +0900 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2011-03-28 18:34:22 +0200 |
commit | 6f3279b5d1d39e658d29d20221f5a5de850b0c15 (patch) | |
tree | ee9d9d4884bd4a34f1186756f6c10001d9526a57 /hw/pci.c | |
parent | 6ff534b678e26450ad6e2ad850b70c9db0e92139 (diff) | |
download | qemu-6f3279b5d1d39e658d29d20221f5a5de850b0c15.tar.gz qemu-6f3279b5d1d39e658d29d20221f5a5de850b0c15.tar.bz2 qemu-6f3279b5d1d39e658d29d20221f5a5de850b0c15.zip |
pci: use uint8_t for devfn_min
use uint8_t for devfn_min instead of int.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci.c')
-rw-r--r-- | hw/pci.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -256,7 +256,7 @@ int pci_find_domain(const PCIBus *bus) } void pci_bus_new_inplace(PCIBus *bus, DeviceState *parent, - const char *name, int devfn_min) + const char *name, uint8_t devfn_min) { qbus_create_inplace(&bus->qbus, &pci_bus_info, parent, name); assert(PCI_FUNC(devfn_min) == 0); @@ -269,7 +269,7 @@ void pci_bus_new_inplace(PCIBus *bus, DeviceState *parent, vmstate_register(NULL, -1, &vmstate_pcibus, bus); } -PCIBus *pci_bus_new(DeviceState *parent, const char *name, int devfn_min) +PCIBus *pci_bus_new(DeviceState *parent, const char *name, uint8_t devfn_min) { PCIBus *bus; @@ -303,7 +303,7 @@ void pci_bus_set_mem_base(PCIBus *bus, target_phys_addr_t base) PCIBus *pci_register_bus(DeviceState *parent, const char *name, pci_set_irq_fn set_irq, pci_map_irq_fn map_irq, - void *irq_opaque, int devfn_min, int nirq) + void *irq_opaque, uint8_t devfn_min, int nirq) { PCIBus *bus; |