[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 32/32] qdev/prop: convert xilinx_timer.c to helper m
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 32/32] qdev/prop: convert xilinx_timer.c to helper macros. |
Date: |
Mon, 3 Aug 2009 17:35:48 +0200 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/xilinx_timer.c | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/hw/xilinx_timer.c b/hw/xilinx_timer.c
index efb6a04..196f011 100644
--- a/hw/xilinx_timer.c
+++ b/hw/xilinx_timer.c
@@ -219,18 +219,9 @@ static SysBusDeviceInfo xilinx_timer_info = {
.qdev.name = "xilinx,timer",
.qdev.size = sizeof(struct timerblock),
.qdev.props = (Property[]) {
- {
- .name = "frequency",
- .info = &qdev_prop_uint32,
- .offset = offsetof(struct timerblock, freq_hz),
- .defval = (uint32_t[]) { 2 },
- },{
- .name = "nr-timers",
- .info = &qdev_prop_uint32,
- .offset = offsetof(struct timerblock, nr_timers),
- .defval = (uint32_t[]) { 2 },
- },
- {/* end of list */}
+ DEFINE_PROP_UINT32("frequency", struct timerblock, freq_hz, 0),
+ DEFINE_PROP_UINT32("nr-timers", struct timerblock, nr_timers, 0),
+ DEFINE_PROP_END_OF_LIST(),
}
};
--
1.6.2.5
- [Qemu-devel] [PATCH 23/32] qdev/prop: convert syborg_keyboard.c to helper macros., (continued)
- [Qemu-devel] [PATCH 23/32] qdev/prop: convert syborg_keyboard.c to helper macros., Gerd Hoffmann, 2009/08/03
- [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 <=
- [Qemu-devel] [PATCH 30/32] qdev/prop: convert xilinx_ethlite.c to helper macros., Gerd Hoffmann, 2009/08/03