diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-07-15 13:59:23 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-27 08:39:29 -0500 |
commit | a6307b086bb8de32c25b59cc2212a69a987c24a6 (patch) | |
tree | da61c6b1d72e6ef22821196b9daeb29a3804fc94 /hw | |
parent | 05cb5fe442dd9574895427f8ea02aec73550b6db (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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |