diff options
| author | Paul Burton <paul.burton@imgtec.com> | 2017-08-13 00:36:27 -0400 |
|---|---|---|
| committer | Ralf Baechle <ralf@linux-mips.org> | 2017-09-04 07:53:14 -0400 |
| commit | ba9cc4352e9c40ab3b158620a1bd9cd53295ea17 (patch) | |
| tree | e59843d1733f0558ac66b8af52e1265423e67169 /include/linux | |
| parent | 0d0cf58cd6814ed63deb67fc5f4c27ad725075b1 (diff) | |
MIPS: GIC: Move GIC_LOCAL_INT_* to asm/mips-gic.h
Move the definition of VP-local interrupts provided by the MIPS Global
Interrupt Controller to the new asm/mips-gic.h header to be alongside
the new accessor functions. Whilst at it, convert to an enum which lends
itself more easily to expansion & documentation.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/17037/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/irqchip/mips-gic.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/irqchip/mips-gic.h b/include/linux/irqchip/mips-gic.h index b7a3ce1da9a7..9546947d1842 100644 --- a/include/linux/irqchip/mips-gic.h +++ b/include/linux/irqchip/mips-gic.h | |||
| @@ -38,16 +38,6 @@ | |||
| 38 | /* Mapped interrupt to pin X, then GIC will generate the vector (X+1). */ | 38 | /* Mapped interrupt to pin X, then GIC will generate the vector (X+1). */ |
| 39 | #define GIC_PIN_TO_VEC_OFFSET 1 | 39 | #define GIC_PIN_TO_VEC_OFFSET 1 |
| 40 | 40 | ||
| 41 | /* Local GIC interrupts. */ | ||
| 42 | #define GIC_LOCAL_INT_WD 0 /* GIC watchdog */ | ||
| 43 | #define GIC_LOCAL_INT_COMPARE 1 /* GIC count and compare timer */ | ||
| 44 | #define GIC_LOCAL_INT_TIMER 2 /* CPU timer interrupt */ | ||
| 45 | #define GIC_LOCAL_INT_PERFCTR 3 /* CPU performance counter */ | ||
| 46 | #define GIC_LOCAL_INT_SWINT0 4 /* CPU software interrupt 0 */ | ||
| 47 | #define GIC_LOCAL_INT_SWINT1 5 /* CPU software interrupt 1 */ | ||
| 48 | #define GIC_LOCAL_INT_FDC 6 /* CPU fast debug channel */ | ||
| 49 | #define GIC_NUM_LOCAL_INTRS 7 | ||
| 50 | |||
| 51 | /* Convert between local/shared IRQ number and GIC HW IRQ number. */ | 41 | /* Convert between local/shared IRQ number and GIC HW IRQ number. */ |
| 52 | #define GIC_LOCAL_HWIRQ_BASE 0 | 42 | #define GIC_LOCAL_HWIRQ_BASE 0 |
| 53 | #define GIC_LOCAL_TO_HWIRQ(x) (GIC_LOCAL_HWIRQ_BASE + (x)) | 43 | #define GIC_LOCAL_TO_HWIRQ(x) (GIC_LOCAL_HWIRQ_BASE + (x)) |
