projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Record device property types
[qemu]
/
hw
/
syborg_timer.c
diff --git
a/hw/syborg_timer.c
b/hw/syborg_timer.c
index
a84ad86
..
b833330
100644
(file)
--- a/
hw/syborg_timer.c
+++ b/
hw/syborg_timer.c
@@
-226,10
+226,20
@@
static void syborg_timer_init(SysBusDevice *dev)
syborg_timer_save, syborg_timer_load, s);
}
syborg_timer_save, syborg_timer_load, s);
}
+static SysBusDeviceInfo syborg_timer_info = {
+ .init = syborg_timer_init,
+ .qdev = {
+ .props = (DevicePropList[]) {
+ {.name = "frequency", .type = PROP_TYPE_INT},
+ {.name = NULL}
+ }
+ }
+};
+
static void syborg_timer_register_devices(void)
{
static void syborg_timer_register_devices(void)
{
- sysbus_register_dev("syborg,timer", sizeof(SyborgTimerState),
- syborg_timer_init);
+ sysbus_register_withprop("syborg,timer", sizeof(SyborgTimerState),
+ &syborg_timer_info);
}
device_init(syborg_timer_register_devices)
}
device_init(syborg_timer_register_devices)