diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2006-04-04 14:49:48 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2006-04-04 14:49:48 +1000 |
commit | 7d01c880856bae31502095bc68784c1518a680cb (patch) | |
tree | 8bc0a1b072d9fdf2bc15288e7ce712ff636a7cf8 /include/asm-powerpc | |
parent | 6246b6128bbe34d0752f119cf7c5111c85fe481d (diff) | |
download | blackbird-op-linux-7d01c880856bae31502095bc68784c1518a680cb.tar.gz blackbird-op-linux-7d01c880856bae31502095bc68784c1518a680cb.zip |
powerpc: iSeries has only 256 IRQs
The iSeries Hypervisor only allows us to specify IRQ numbers up to 255 (it
has a u8 field to pass it in). This patch allows platforms to specify a
maximum to the virtual IRQ numbers we will use and has iSeries set that
to 255. If not set, the maximum is NR_IRQS - 1 (as before).
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/irq.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-powerpc/irq.h b/include/asm-powerpc/irq.h index 51f87d9993b6..7bc6d73b2823 100644 --- a/include/asm-powerpc/irq.h +++ b/include/asm-powerpc/irq.h @@ -54,6 +54,13 @@ */ extern unsigned int virt_irq_to_real_map[NR_IRQS]; +/* The maximum virtual IRQ number that we support. This + * can be set by the platform and will be reduced by the + * value of __irq_offset_value. It defaults to and is + * capped by (NR_IRQS - 1). + */ +extern unsigned int virt_irq_max; + /* Create a mapping for a real_irq if it doesn't already exist. * Return the virtual irq as a convenience. */ |