1 #ifndef __ASM_SH_CPU_SH5_IRQ_H
2 #define __ASM_SH_CPU_SH5_IRQ_H
5 * include/asm-sh/cpu-sh5/irq.h
7 * Copyright (C) 2000, 2001 Paolo Alberelli
9 * This file is subject to the terms and conditions of the GNU General Public
10 * License. See the file "COPYING" in the main directory of this archive
16 * Encoded IRQs are not considered worth to be supported.
17 * Main reason is that there's no per-encoded-interrupt
18 * enable/disable mechanism (as there was in SH3/4).
19 * An all enabled/all disabled is worth only if there's
20 * a cascaded IC to disable/enable/ack on. Until such
21 * IC is available there's no such support.
23 * Presumably Encoded IRQs may use extra IRQs beyond 64,
24 * below. Some logic must be added to cope with IRQ_IRL?
25 * in an exclusive way.
27 * Priorities are set at Platform level, when IRQ_IRL0-3
28 * are set to 0 Encoding is allowed. Otherwise it's not
32 /* Independent IRQs */
72 #define NR_INTC_IRQS 64
74 #ifdef CONFIG_SH_CAYMAN
75 #define NR_EXT_IRQS 32
76 #define START_EXT_IRQS 64
78 /* PCI bus 2 uses encoded external interrupts on the Cayman board */
79 #define IRQ_P2INTA (START_EXT_IRQS + (3*8) + 0)
80 #define IRQ_P2INTB (START_EXT_IRQS + (3*8) + 1)
81 #define IRQ_P2INTC (START_EXT_IRQS + (3*8) + 2)
82 #define IRQ_P2INTD (START_EXT_IRQS + (3*8) + 3)
84 #define I8042_KBD_IRQ (START_EXT_IRQS + 2)
85 #define I8042_AUX_IRQ (START_EXT_IRQS + 6)
87 #define IRQ_CFCARD (START_EXT_IRQS + 7)
88 #define IRQ_PCMCIA (0)
94 /* Default IRQs, fixed */
95 #define TIMER_IRQ IRQ_TUNI0
96 #define RTC_IRQ IRQ_CUI
98 /* Default Priorities, Platform may choose differently */
99 #define NO_PRIORITY 0 /* Disabled */
100 #define TIMER_PRIORITY 2
101 #define RTC_PRIORITY TIMER_PRIORITY
102 #define SCIF_PRIORITY 3
103 #define INTD_PRIORITY 3
104 #define IRL3_PRIORITY 4
105 #define INTC_PRIORITY 6
106 #define IRL2_PRIORITY 7
107 #define INTB_PRIORITY 9
108 #define IRL1_PRIORITY 10
109 #define INTA_PRIORITY 12
110 #define IRL0_PRIORITY 13
111 #define TOP_PRIORITY 15
113 extern int intc_evt_to_irq[(0xE20/0x20)+1];
114 int intc_irq_describe(char* p, int irq);
115 extern int platform_int_priority[NR_INTC_IRQS];
117 #endif /* __ASM_SH_CPU_SH5_IRQ_H */