mirror of
https://github.com/qemu/qemu.git
synced 2025-01-26 07:23:24 +08:00
qdev/prop: convert xilinx_ethlite.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
72c61d0bf4
commit
05f0257906
@ -228,18 +228,9 @@ static SysBusDeviceInfo xilinx_ethlite_info = {
|
|||||||
.qdev.name = "xilinx,ethlite",
|
.qdev.name = "xilinx,ethlite",
|
||||||
.qdev.size = sizeof(struct xlx_ethlite),
|
.qdev.size = sizeof(struct xlx_ethlite),
|
||||||
.qdev.props = (Property[]) {
|
.qdev.props = (Property[]) {
|
||||||
{
|
DEFINE_PROP_UINT32("txpingpong", struct xlx_ethlite, c_tx_pingpong, 1),
|
||||||
.name = "txpingpong",
|
DEFINE_PROP_UINT32("rxpingpong", struct xlx_ethlite, c_rx_pingpong, 1),
|
||||||
.info = &qdev_prop_uint32,
|
DEFINE_PROP_END_OF_LIST(),
|
||||||
.offset = offsetof(struct xlx_ethlite, c_tx_pingpong),
|
|
||||||
.defval = (uint32_t[]) { 1 },
|
|
||||||
},{
|
|
||||||
.name = "rxpingpong",
|
|
||||||
.info = &qdev_prop_uint32,
|
|
||||||
.offset = offsetof(struct xlx_ethlite, c_rx_pingpong),
|
|
||||||
.defval = (uint32_t[]) { 1 },
|
|
||||||
},
|
|
||||||
{/* end of list */}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user