hw/core: Add interface to allocate and free a single IRQ
commita8a9d30bab2fae2e0ab3436fa0a40d89fbb0cf4e
authorMarcel Apfelbaum <marcel.a@redhat.com>
Mon, 7 Oct 2013 07:36:34 +0000 (7 10:36 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 14 Oct 2013 14:11:44 +0000 (14 17:11 +0300)
tree8557aee9d19c011d9926a83ee77c17a50ffa9f96
parenta53ae8e934cd54686875b5bcfc2f434244ee55d6
hw/core: Add interface to allocate and free a single IRQ

qemu_allocate_irq returns a single qemu_irq.
The interface allows to specify an interrupt number.

qemu_free_irq frees it.

Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/core/irq.c
include/hw/irq.h