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

qdev/prop: convert xilinx_ethlite.c to helper macros.

Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
Message-Id: 
上级 72c61d0b
......@@ -228,18 +228,9 @@ static SysBusDeviceInfo xilinx_ethlite_info = {
.qdev.name = "xilinx,ethlite",
.qdev.size = sizeof(struct xlx_ethlite),
.qdev.props = (Property[]) {
{
.name = "txpingpong",
.info = &qdev_prop_uint32,
.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 */}
DEFINE_PROP_UINT32("txpingpong", struct xlx_ethlite, c_tx_pingpong, 1),
DEFINE_PROP_UINT32("rxpingpong", struct xlx_ethlite, c_rx_pingpong, 1),
DEFINE_PROP_END_OF_LIST(),
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册