pseries: added allocator for a block of IRQs
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Tue, 7 Aug 2012 16:10:34 +0000 (16:10 +0000)
committerAlexander Graf <agraf@suse.de>
Wed, 15 Aug 2012 17:43:16 +0000 (19:43 +0200)
commitf4b9523ba6388f6f951933de3f9a76e2e9ea2ede
treeaef6991b1560973392e43e63a59b306395e27793
parentfa28f71b4a88cdb796f1e0a308205c6be604d3f3
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>
hw/spapr.c
hw/spapr.h