diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-08-11 11:38:30 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-24 08:46:48 -0500 |
commit | aa7116cbc814cda42c962361af4e1fb0c4aaf9ff (patch) | |
tree | bc6868604a4b3eeb06d999f43688c3be9a8022ae /hw/isa-bus.c | |
parent | 4dd75c702c96ec84db4efe24fcc80a4d7bb32df2 (diff) | |
download | qemu-aa7116cbc814cda42c962361af4e1fb0c4aaf9ff.zip qemu-aa7116cbc814cda42c962361af4e1fb0c4aaf9ff.tar.gz qemu-aa7116cbc814cda42c962361af4e1fb0c4aaf9ff.tar.bz2 |
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>
Diffstat (limited to 'hw/isa-bus.c')
-rw-r--r-- | hw/isa-bus.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/hw/isa-bus.c b/hw/isa-bus.c index 8c14b1d..315efbb 100644 --- a/hw/isa-bus.c +++ b/hw/isa-bus.c @@ -29,18 +29,9 @@ static struct BusInfo isa_bus_info = { .name = "ISA", .size = sizeof(ISABus), .props = (Property[]) { - { - .name = "iobase", - .info = &qdev_prop_hex32, - .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 */} + DEFINE_PROP_HEX32("iobase", ISADevice, iobase[0], -1), + DEFINE_PROP_HEX32("iobase2", ISADevice, iobase[1], -1), + DEFINE_PROP_END_OF_LIST(), } }; |