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

qdev/prop: convert isa-bus to helper macros.

Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 4dd75c70
......@@ -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(),
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册