mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-13 17:01:23 +00:00
qdev/prop: convert syborg_interrupt.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
c230c4e38f
commit
3c2aed8b27
@ -222,13 +222,8 @@ static SysBusDeviceInfo syborg_int_info = {
|
|||||||
.qdev.name = "syborg,interrupt",
|
.qdev.name = "syborg,interrupt",
|
||||||
.qdev.size = sizeof(SyborgIntState),
|
.qdev.size = sizeof(SyborgIntState),
|
||||||
.qdev.props = (Property[]) {
|
.qdev.props = (Property[]) {
|
||||||
{
|
DEFINE_PROP_UINT32("num-interrupts", SyborgIntState, num_irqs, 64),
|
||||||
.name = "num-interrupts",
|
DEFINE_PROP_END_OF_LIST(),
|
||||||
.info = &qdev_prop_uint32,
|
|
||||||
.offset = offsetof(SyborgIntState, num_irqs),
|
|
||||||
.defval = (uint32_t[]) { 64 },
|
|
||||||
},
|
|
||||||
{/* end of list */}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user