mirror of
https://github.com/qemu/qemu.git
synced 2024-11-29 14:53:35 +08:00
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>
This commit is contained in:
parent
2bbb9c2f7f
commit
0bb750ef9e
2
hw/pci.c
2
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;
|
||||
|
2
hw/pci.h
2
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,
|
||||
|
Loading…
Reference in New Issue
Block a user