summaryrefslogtreecommitdiffstats
path: root/include/hw/ppc/spapr.h
diff options
context:
space:
mode:
authorCédric Le Goater2017-12-01 17:06:04 +0100
committerDavid Gibson2017-12-14 23:49:24 +0100
commit7718375584a0214c951668a6e92896aaed88b289 (patch)
tree77e6f46a147e4fe8b6a66df00e02357c6b48444c /include/hw/ppc/spapr.h
parentspapr: introduce a spapr_irq_set_lsi() helper (diff)
downloadqemu-7718375584a0214c951668a6e92896aaed88b289.tar.gz
qemu-7718375584a0214c951668a6e92896aaed88b289.tar.xz
qemu-7718375584a0214c951668a6e92896aaed88b289.zip
spapr: introduce a spapr_qirq() helper
xics_get_qirq() is only used by the sPAPR machine. Let's move it there and change its name to reflect its scope. It will be useful for XIVE support which will use its own set of qirqs. Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw/ppc/spapr.h')
-rw-r--r--include/hw/ppc/spapr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h
index 895f48471e..6b8e04c787 100644
--- a/include/hw/ppc/spapr.h
+++ b/include/hw/ppc/spapr.h
@@ -712,5 +712,6 @@ int spapr_irq_alloc(sPAPRMachineState *spapr, int irq_hint, bool lsi,
int spapr_irq_alloc_block(sPAPRMachineState *spapr, int num, bool lsi,
bool align, Error **errp);
void spapr_irq_free(sPAPRMachineState *spapr, int irq, int num);
+qemu_irq spapr_qirq(sPAPRMachineState *spapr, int irq);
#endif /* HW_SPAPR_H */