sim-card
/
qemu
Archived
10
0
Fork 0

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

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
This commit is contained in:
Gerd Hoffmann 2009-08-03 17:35:19 +02:00 committed by Anthony Liguori
parent 313feaabc6
commit 54586bd17d
2 changed files with 3 additions and 8 deletions

View File

@ -60,13 +60,8 @@ static struct BusInfo pci_bus_info = {
.size = sizeof(PCIBus),
.print_dev = pcibus_dev_print,
.props = (Property[]) {
{
.name = "addr",
.info = &qdev_prop_pci_devfn,
.offset = offsetof(PCIDevice, devfn),
.defval = (uint32_t[]) { -1 },
},
{/* end of list */}
DEFINE_PROP_PCI_DEVFN("addr", PCIDevice, devfn, -1),
DEFINE_PROP_END_OF_LIST()
}
};

View File

@ -177,7 +177,7 @@ struct PCIDevice {
/* the following fields are read only */
PCIBus *bus;
int devfn;
uint32_t devfn;
char name[64];
PCIIORegion io_regions[PCI_NUM_REGIONS];