diff options
author | Alexey Kardashevskiy | 2012-08-07 18:10:34 +0200 |
---|---|---|
committer | Alexander Graf | 2012-08-15 19:43:16 +0200 |
commit | f4b9523ba6388f6f951933de3f9a76e2e9ea2ede (patch) | |
tree | aef6991b1560973392e43e63a59b306395e27793 /hw/spapr.h | |
parent | pseries: Separate PCI RTAS setup from common from emulation specific PCI setup (diff) | |
download | qemu-f4b9523ba6388f6f951933de3f9a76e2e9ea2ede.tar.gz qemu-f4b9523ba6388f6f951933de3f9a76e2e9ea2ede.tar.xz qemu-f4b9523ba6388f6f951933de3f9a76e2e9ea2ede.zip |
pseries: added allocator for a block of IRQs
The patch adds a simple helper which allocates a consecutive sequence
of IRQs calling spapr_allocate_irq for each and checks that allocated
IRQs go consequently.
The patch is required for upcoming support of MSI/MSIX on POWER.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/spapr.h')
-rw-r--r-- | hw/spapr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/spapr.h b/hw/spapr.h index b5cf6afca5..6229769ce0 100644 --- a/hw/spapr.h +++ b/hw/spapr.h @@ -290,6 +290,7 @@ target_ulong spapr_hypercall(CPUPPCState *env, target_ulong opcode, target_ulong *args); int spapr_allocate_irq(int hint, enum xics_irq_type type); +int spapr_allocate_irq_block(int num, enum xics_irq_type type); static inline int spapr_allocate_msi(int hint) { |