.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 },
},
}
dev = qdev_create(&bus->qbus, name);
- qdev_prop_set_uint32(dev, "devfn", devfn);
+ qdev_prop_set_uint32(dev, "addr", devfn);
return (PCIDevice *)dev;
}
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;