Home | History | Annotate | Download | only in asm-mips

Lines Matching refs:irq

16 #include <irq.h>
19 static inline int irq_canonicalize(int irq)
21 return ((irq == I8259A_IRQ_BASE + 2) ? I8259A_IRQ_BASE + 9 : irq);
24 #define irq_canonicalize(irq) (irq) /* Sane hardware, sane code ... */
32 extern int setup_irq_smtc(unsigned int irq, struct irqaction * new,
35 static inline void smtc_im_ack_irq(unsigned int irq)
37 if (irq_hwmask[irq] & ST0_IM)
38 set_c0_status(irq_hwmask[irq] & ST0_IM);
43 static inline void smtc_im_ack_irq(unsigned int irq)
52 extern void plat_set_irq_affinity(unsigned int irq, cpumask_t affinity);
53 extern void smtc_forward_irq(unsigned int irq);
56 * IRQ affinity hook invoked at the beginning of interrupt dispatch
60 * inefficient on MIPS. Initial prototypes of SMTC IRQ affinity
61 * used a "fast path" per-IRQ-descriptor cache of affinity information
66 #define IRQ_AFFINITY_HOOK(irq) \
68 if (!cpu_isset(smp_processor_id(), irq_desc[irq].affinity)) { \
69 smtc_forward_irq(irq); \
77 #define IRQ_AFFINITY_HOOK(irq) do { } while (0)
89 #define __DO_IRQ_SMTC_HOOK(irq) \
91 IRQ_AFFINITY_HOOK(irq); \
92 if (irq_hwmask[irq] & 0x0000ff00) \
94 ~(irq_hwmask[irq] & 0x0000ff00)); \
97 #define __NO_AFFINITY_IRQ_SMTC_HOOK(irq) \
99 if (irq_hwmask[irq] & 0x0000ff00) \
101 ~(irq_hwmask[irq] & 0x0000ff00)); \
106 #define __DO_IRQ_SMTC_HOOK(irq) \
108 IRQ_AFFINITY_HOOK(irq); \
110 #define __NO_AFFINITY_IRQ_SMTC_HOOK(irq) do { } while (0)
115 * do_IRQ handles all normal device IRQ's (the special
119 * Ideally there should be away to get this into kernel/irq/handle.c to
122 #define do_IRQ(irq) \
125 __DO_IRQ_SMTC_HOOK(irq); \
126 generic_handle_irq(irq); \
133 * IRQ affinity, we have this variant that skips the affinity check.
137 #define do_IRQ_no_affinity(irq) \
140 __NO_AFFINITY_IRQ_SMTC_HOOK(irq); \
141 generic_handle_irq(irq); \
152 extern void free_irqno(unsigned int irq);