aboutsummaryrefslogtreecommitdiff
path: root/hw/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/pci.c')
-rw-r--r--hw/pci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/pci.c b/hw/pci.c
index b0a2d79609..4d0cdc7824 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -61,8 +61,8 @@ static struct BusInfo pci_bus_info = {
.print_dev = pcibus_dev_print,
.props = (Property[]) {
{
- .name = "devfn",
- .info = &qdev_prop_uint32,
+ .name = "addr",
+ .info = &qdev_prop_pci_devfn,
.offset = offsetof(PCIDevice, devfn),
.defval = (uint32_t[]) { -1 },
},
@@ -782,7 +782,7 @@ PCIDevice *pci_create(const char *name, const char *devaddr)
}
dev = qdev_create(&bus->qbus, name);
- qdev_prop_set_uint32(dev, "devfn", devfn);
+ qdev_prop_set_uint32(dev, "addr", devfn);
return (PCIDevice *)dev;
}
@@ -932,7 +932,7 @@ PCIDevice *pci_create_simple(PCIBus *bus, int devfn, const char *name)
DeviceState *dev;
dev = qdev_create(&bus->qbus, name);
- qdev_prop_set_uint32(dev, "devfn", devfn);
+ qdev_prop_set_uint32(dev, "addr", devfn);
qdev_init(dev);
return (PCIDevice *)dev;