aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2019-10-18 15:59:06 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2019-10-24 14:24:34 +0200
commit417258f139e61899511d6a99c11b276f12bbbd86 (patch)
tree4b50ae2728c7704261092dab0d27cd5940914df7 /include
parent6508799707bbf018df82d354c388820217757f21 (diff)
downloadqemu-417258f139e61899511d6a99c11b276f12bbbd86.zip
qemu-417258f139e61899511d6a99c11b276f12bbbd86.tar.gz
qemu-417258f139e61899511d6a99c11b276f12bbbd86.tar.bz2
hw/i386/pc: Extract pc_gsi_create()
The GSI creation code is common to all PC machines, extract the common code. Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20191018135910.24286-2-philmd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/i386/pc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index 13c4eac..8c5dc39 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -157,6 +157,8 @@ typedef struct GSIState {
void gsi_handler(void *opaque, int n, int level);
+GSIState *pc_gsi_create(qemu_irq **irqs, bool pci_enabled);
+
/* vmport.c */
#define TYPE_VMPORT "vmport"
typedef uint32_t (VMPortReadFunc)(void *opaque, uint32_t address);