aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/include/asm/mcfintc.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/arch/m68k/include/asm/mcfintc.h b/arch/m68k/include/asm/mcfintc.h
index 213aa6c68abb..4183320a3813 100644
--- a/arch/m68k/include/asm/mcfintc.h
+++ b/arch/m68k/include/asm/mcfintc.h
@@ -25,11 +25,6 @@
25 */ 25 */
26 26
27/* 27/*
28 * Define the base address of the SIM within the MBAR address space.
29 */
30#define MCFSIM_BASE 0x0 /* Base address within SIM */
31
32/*
33 * Bit definitions for the ICR family of registers. 28 * Bit definitions for the ICR family of registers.
34 */ 29 */
35#define MCFSIM_ICR_AUTOVEC 0x80 /* Auto-vectored intr */ 30#define MCFSIM_ICR_AUTOVEC 0x80 /* Auto-vectored intr */
@@ -48,7 +43,9 @@
48#define MCFSIM_ICR_PRI3 0x03 /* Priority 3 intr */ 43#define MCFSIM_ICR_PRI3 0x03 /* Priority 3 intr */
49 44
50/* 45/*
51 * IMR bit position definitions. 46 * IMR bit position definitions. Not all ColdFire parts with this interrupt
47 * controller actually support all of these interrupt sources. But the bit
48 * numbers are the same in all cores.
52 */ 49 */
53#define MCFINTC_EINT1 1 /* External int #1 */ 50#define MCFINTC_EINT1 1 /* External int #1 */
54#define MCFINTC_EINT2 2 /* External int #2 */ 51#define MCFINTC_EINT2 2 /* External int #2 */
@@ -70,6 +67,19 @@
70#define MCFINTC_QSPI 18 67#define MCFINTC_QSPI 18
71 68
72#ifndef __ASSEMBLER__ 69#ifndef __ASSEMBLER__
70
71/*
72 * There is no one-is-one correspondance between the interrupt number (irq)
73 * and the bit fields on the mask register. So we create a per-cpu type
74 * mapping of irq to mask bit. The CPU platform code needs to register
75 * its supported irq's at init time, using this function.
76 */
77extern unsigned char mcf_irq2imr[];
78static inline void mcf_mapirq2imr(int irq, int imr)
79{
80 mcf_irq2imr[irq] = imr;
81}
82
73void mcf_autovector(int irq); 83void mcf_autovector(int irq);
74void mcf_setimr(int index); 84void mcf_setimr(int index);
75void mcf_clrimr(int index); 85void mcf_clrimr(int index);