Revision 54586bd1
b/hw/pci.c | ||
---|---|---|
60 | 60 |
.size = sizeof(PCIBus), |
61 | 61 |
.print_dev = pcibus_dev_print, |
62 | 62 |
.props = (Property[]) { |
63 |
{ |
|
64 |
.name = "addr", |
|
65 |
.info = &qdev_prop_pci_devfn, |
|
66 |
.offset = offsetof(PCIDevice, devfn), |
|
67 |
.defval = (uint32_t[]) { -1 }, |
|
68 |
}, |
|
69 |
{/* end of list */} |
|
63 |
DEFINE_PROP_PCI_DEVFN("addr", PCIDevice, devfn, -1), |
|
64 |
DEFINE_PROP_END_OF_LIST() |
|
70 | 65 |
} |
71 | 66 |
}; |
72 | 67 |
|
b/hw/pci.h | ||
---|---|---|
177 | 177 |
|
178 | 178 |
/* the following fields are read only */ |
179 | 179 |
PCIBus *bus; |
180 |
int devfn;
|
|
180 |
uint32_t devfn;
|
|
181 | 181 |
char name[64]; |
182 | 182 |
PCIIORegion io_regions[PCI_NUM_REGIONS]; |
183 | 183 |
|
Also available in: Unified diff