diff options
Diffstat (limited to 'include/asm-sparc64/irq.h')
-rw-r--r-- | include/asm-sparc64/irq.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/asm-sparc64/irq.h b/include/asm-sparc64/irq.h index d66c7cd820c2..9edcd90495f7 100644 --- a/include/asm-sparc64/irq.h +++ b/include/asm-sparc64/irq.h | |||
@@ -98,13 +98,22 @@ extern struct ino_bucket ivector_table[NUM_IVECS]; | |||
98 | #define __bucket(irq) ((struct ino_bucket *)(unsigned long)(irq)) | 98 | #define __bucket(irq) ((struct ino_bucket *)(unsigned long)(irq)) |
99 | #define __irq(bucket) ((unsigned int)(unsigned long)(bucket)) | 99 | #define __irq(bucket) ((unsigned int)(unsigned long)(bucket)) |
100 | 100 | ||
101 | #define NR_IRQS 16 | 101 | /* The largest number of unique interrupt sources we support. |
102 | * If this needs to ever be larger than 255, you need to change | ||
103 | * the type of ino_bucket->virt_irq as appropriate. | ||
104 | * | ||
105 | * ino_bucket->virt_irq allocation is made during {sun4v_,}build_irq(). | ||
106 | */ | ||
107 | #define NR_IRQS 255 | ||
102 | 108 | ||
109 | extern void irq_install_pre_handler(int virt_irq, | ||
110 | void (*func)(struct ino_bucket *, void *, void *), | ||
111 | void *arg1, void *arg2); | ||
103 | #define irq_canonicalize(irq) (irq) | 112 | #define irq_canonicalize(irq) (irq) |
104 | extern void disable_irq(unsigned int); | 113 | extern void disable_irq(unsigned int); |
105 | #define disable_irq_nosync disable_irq | 114 | #define disable_irq_nosync disable_irq |
106 | extern void enable_irq(unsigned int); | 115 | extern void enable_irq(unsigned int); |
107 | extern unsigned int build_irq(int inofixup, unsigned long iclr, unsigned long imap); | 116 | extern unsigned int build_irq(int inofixup, unsigned long iclr, unsigned long imap, unsigned char flags); |
108 | extern unsigned int sun4v_build_irq(u32 devhandle, unsigned int devino, unsigned char flags); | 117 | extern unsigned int sun4v_build_irq(u32 devhandle, unsigned int devino, unsigned char flags); |
109 | extern unsigned int sbus_build_irq(void *sbus, unsigned int ino); | 118 | extern unsigned int sbus_build_irq(void *sbus, unsigned int ino); |
110 | 119 | ||