Linux 2.6.21.1
[linux/fpc-iii.git] / include / asm-mips / mips-boards / maltaint.h
blob9180d6466113f4fb5b6a86de84b19eaed122173b
1 /*
2 * Carsten Langgaard, carstenl@mips.com
3 * Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved.
5 * ########################################################################
7 * This program is free software; you can distribute it and/or modify it
8 * under the terms of the GNU General Public License (Version 2) as
9 * published by the Free Software Foundation.
11 * This program is distributed in the hope it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
20 * ########################################################################
22 * Defines for the Malta interrupt controller.
25 #ifndef _MIPS_MALTAINT_H
26 #define _MIPS_MALTAINT_H
28 #include <irq.h>
31 * Interrupts 0..15 are used for Malta ISA compatible interrupts
33 #define MALTA_INT_BASE 0
36 * Interrupts 16..23 are used for Malta CPU interrupts (nonEIC mode)
38 #define MIPSCPU_INT_BASE MIPS_CPU_IRQ_BASE
40 /* CPU interrupt offsets */
41 #define MIPSCPU_INT_SW0 0
42 #define MIPSCPU_INT_SW1 1
43 #define MIPSCPU_INT_MB0 2
44 #define MIPSCPU_INT_I8259A MIPSCPU_INT_MB0
45 #define MIPSCPU_INT_MB1 3
46 #define MIPSCPU_INT_SMI MIPSCPU_INT_MB1
47 #define MIPSCPU_INT_MB2 4
48 #define MIPSCPU_INT_MB3 5
49 #define MIPSCPU_INT_COREHI MIPSCPU_INT_MB3
50 #define MIPSCPU_INT_MB4 6
51 #define MIPSCPU_INT_CORELO MIPSCPU_INT_MB4
52 #define MIPSCPU_INT_CPUCTR 7
55 * Interrupts 64..127 are used for Soc-it Classic interrupts
57 #define MSC01C_INT_BASE 64
59 /* SOC-it Classic interrupt offsets */
60 #define MSC01C_INT_TMR 0
61 #define MSC01C_INT_PCI 1
64 * Interrupts 64..127 are used for Soc-it EIC interrupts
66 #define MSC01E_INT_BASE 64
68 /* SOC-it EIC interrupt offsets */
69 #define MSC01E_INT_SW0 1
70 #define MSC01E_INT_SW1 2
71 #define MSC01E_INT_MB0 3
72 #define MSC01E_INT_I8259A MSC01E_INT_MB0
73 #define MSC01E_INT_MB1 4
74 #define MSC01E_INT_SMI MSC01E_INT_MB1
75 #define MSC01E_INT_MB2 5
76 #define MSC01E_INT_MB3 6
77 #define MSC01E_INT_COREHI MSC01E_INT_MB3
78 #define MSC01E_INT_MB4 7
79 #define MSC01E_INT_CORELO MSC01E_INT_MB4
80 #define MSC01E_INT_TMR 8
81 #define MSC01E_INT_PCI 9
82 #define MSC01E_INT_PERFCTR 10
83 #define MSC01E_INT_CPUCTR 11
85 #ifndef __ASSEMBLY__
86 extern void maltaint_init(void);
87 #endif
89 #endif /* !(_MIPS_MALTAINT_H) */