1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_SCORE_IRQ_H
3 #define _ASM_SCORE_IRQ_H
5 #define EXCEPTION_VECTOR_BASE_ADDR 0xa0000000
6 #define VECTOR_ADDRESS_OFFSET_MODE4 0
7 #define VECTOR_ADDRESS_OFFSET_MODE16 1
9 #define DEBUG_VECTOR_SIZE (0x4)
10 #define DEBUG_VECTOR_BASE_ADDR ((EXCEPTION_VECTOR_BASE_ADDR) + 0x1fc)
12 #define GENERAL_VECTOR_SIZE (0x10)
13 #define GENERAL_VECTOR_BASE_ADDR ((EXCEPTION_VECTOR_BASE_ADDR) + 0x200)
16 #define IRQ_VECTOR_SIZE (0x10)
17 #define IRQ_VECTOR_BASE_ADDR ((EXCEPTION_VECTOR_BASE_ADDR) + 0x210)
18 #define IRQ_VECTOR_END_ADDR ((EXCEPTION_VECTOR_BASE_ADDR) + 0x5f0)
20 #define irq_canonicalize(irq) (irq)
22 #define IRQ_TIMER (7) /* Timer IRQ number of SPCT6600 */
24 extern void interrupt_exception_vector(void);
26 #endif /* _ASM_SCORE_IRQ_H */