qdev/prop: convert m48t59.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:
parent
668724a784
commit
01274424cf
20
hw/m48t59.c
20
hw/m48t59.c
|
@ -668,22 +668,10 @@ static SysBusDeviceInfo m48t59_info = {
|
||||||
.qdev.name = "m48t59",
|
.qdev.name = "m48t59",
|
||||||
.qdev.size = sizeof(m48t59_t),
|
.qdev.size = sizeof(m48t59_t),
|
||||||
.qdev.props = (Property[]) {
|
.qdev.props = (Property[]) {
|
||||||
{
|
DEFINE_PROP_UINT32("size", m48t59_t, size, -1),
|
||||||
.name = "size",
|
DEFINE_PROP_UINT32("type", m48t59_t, type, -1),
|
||||||
.info = &qdev_prop_uint32,
|
DEFINE_PROP_HEX32( "io_base", m48t59_t, io_base, 0),
|
||||||
.offset = offsetof(m48t59_t, size),
|
DEFINE_PROP_END_OF_LIST(),
|
||||||
.defval = (uint32_t[]) { -1 },
|
|
||||||
},{
|
|
||||||
.name = "type",
|
|
||||||
.info = &qdev_prop_uint32,
|
|
||||||
.offset = offsetof(m48t59_t, type),
|
|
||||||
.defval = (uint32_t[]) { -1 },
|
|
||||||
},{
|
|
||||||
.name = "io_base",
|
|
||||||
.info = &qdev_prop_hex32,
|
|
||||||
.offset = offsetof(m48t59_t, io_base),
|
|
||||||
},
|
|
||||||
{/* end of list */}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue