提交 54586bd1 编写于 作者: G Gerd Hoffmann 提交者: Anthony Liguori

qdev/prop: convert pci.c to helper macros.

Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
Message-Id: 
上级 313feaab
...@@ -60,13 +60,8 @@ static struct BusInfo pci_bus_info = { ...@@ -60,13 +60,8 @@ static struct BusInfo pci_bus_info = {
.size = sizeof(PCIBus), .size = sizeof(PCIBus),
.print_dev = pcibus_dev_print, .print_dev = pcibus_dev_print,
.props = (Property[]) { .props = (Property[]) {
{ DEFINE_PROP_PCI_DEVFN("addr", PCIDevice, devfn, -1),
.name = "addr", DEFINE_PROP_END_OF_LIST()
.info = &qdev_prop_pci_devfn,
.offset = offsetof(PCIDevice, devfn),
.defval = (uint32_t[]) { -1 },
},
{/* end of list */}
} }
}; };
......
...@@ -177,7 +177,7 @@ struct PCIDevice { ...@@ -177,7 +177,7 @@ struct PCIDevice {
/* the following fields are read only */ /* the following fields are read only */
PCIBus *bus; PCIBus *bus;
int devfn; uint32_t devfn;
char name[64]; char name[64];
PCIIORegion io_regions[PCI_NUM_REGIONS]; PCIIORegion io_regions[PCI_NUM_REGIONS];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册