[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 30/32] qdev/prop: convert xilinx_ethlite.c to helper
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 30/32] qdev/prop: convert xilinx_ethlite.c to helper macros. |
Date: |
Mon, 3 Aug 2009 17:35:46 +0200 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/xilinx_ethlite.c | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/hw/xilinx_ethlite.c b/hw/xilinx_ethlite.c
index b3fd25b..f981d10 100644
--- a/hw/xilinx_ethlite.c
+++ b/hw/xilinx_ethlite.c
@@ -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(),
}
};
--
1.6.2.5
- [Qemu-devel] [PATCH 31/32] qdev/prop: convert xilinx_intc.c to helper macros., (continued)
- [Qemu-devel] [PATCH 31/32] qdev/prop: convert xilinx_intc.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 21/32] qdev/prop: convert syborg_fb.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 20/32] qdev/prop: convert sun4u.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 29/32] qdev/prop: convert virtio-pci.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 25/32] qdev/prop: convert syborg_serial.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 17/32] qdev/prop: convert smbus_eeprom.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 26/32] qdev/prop: convert syborg_timer.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 27/32] qdev/prop: convert tcx.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 13/32] qdev/prop: convert pcnet.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 32/32] qdev/prop: convert xilinx_timer.c to helper macros., Gerd Hoffmann, 2009/08/03
- [Qemu-devel] [PATCH 30/32] qdev/prop: convert xilinx_ethlite.c to helper macros.,
Gerd Hoffmann <=