aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-07-15 13:59:23 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-27 08:39:29 -0500
commita6307b086bb8de32c25b59cc2212a69a987c24a6 (patch)
treeda61c6b1d72e6ef22821196b9daeb29a3804fc94 /hw
parent05cb5fe442dd9574895427f8ea02aec73550b6db (diff)
qdev/pci: use qdev_prop_pci_devfn
Put the new property into use. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-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;