qdev/prop: convert isa-bus to helper macros.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
4dd75c702c
commit
aa7116cbc8
15
hw/isa-bus.c
15
hw/isa-bus.c
@ -29,18 +29,9 @@ static struct BusInfo isa_bus_info = {
|
|||||||
.name = "ISA",
|
.name = "ISA",
|
||||||
.size = sizeof(ISABus),
|
.size = sizeof(ISABus),
|
||||||
.props = (Property[]) {
|
.props = (Property[]) {
|
||||||
{
|
DEFINE_PROP_HEX32("iobase", ISADevice, iobase[0], -1),
|
||||||
.name = "iobase",
|
DEFINE_PROP_HEX32("iobase2", ISADevice, iobase[1], -1),
|
||||||
.info = &qdev_prop_hex32,
|
DEFINE_PROP_END_OF_LIST(),
|
||||||
.offset = offsetof(ISADevice, iobase[0]),
|
|
||||||
.defval = (uint32_t[]) { -1 },
|
|
||||||
},{
|
|
||||||
.name = "iobase2",
|
|
||||||
.info = &qdev_prop_hex32,
|
|
||||||
.offset = offsetof(ISADevice, iobase[1]),
|
|
||||||
.defval = (uint32_t[]) { -1 },
|
|
||||||
},
|
|
||||||
{/* end of list */}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user