diff options
Diffstat (limited to 'include/asm-mips/mips-boards/atlasint.h')
-rw-r--r-- | include/asm-mips/mips-boards/atlasint.h | 124 |
1 files changed, 86 insertions, 38 deletions
diff --git a/include/asm-mips/mips-boards/atlasint.h b/include/asm-mips/mips-boards/atlasint.h index fd7ebc54fa90..b15e4ea0b091 100644 --- a/include/asm-mips/mips-boards/atlasint.h +++ b/include/asm-mips/mips-boards/atlasint.h | |||
@@ -1,6 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Carsten Langgaard, carstenl@mips.com | 2 | * Copyright (C) 1999, 2006 MIPS Technologies, Inc. All rights reserved. |
3 | * Copyright (C) 1999 MIPS Technologies, Inc. All rights reserved. | 3 | * Authors: Carsten Langgaard <carstenl@mips.com> |
4 | * Maciej W. Rozycki <macro@mips.com> | ||
4 | * | 5 | * |
5 | * ######################################################################## | 6 | * ######################################################################## |
6 | * | 7 | * |
@@ -25,41 +26,88 @@ | |||
25 | #ifndef _MIPS_ATLASINT_H | 26 | #ifndef _MIPS_ATLASINT_H |
26 | #define _MIPS_ATLASINT_H | 27 | #define _MIPS_ATLASINT_H |
27 | 28 | ||
28 | #define ATLASINT_BASE 1 | 29 | /* |
29 | #define ATLASINT_UART (ATLASINT_BASE+0) | 30 | * Interrupts 0..7 are used for Atlas CPU interrupts (nonEIC mode) |
30 | #define ATLASINT_TIM0 (ATLASINT_BASE+1) | 31 | */ |
31 | #define ATLASINT_RES2 (ATLASINT_BASE+2) | 32 | #define MIPSCPU_INT_BASE 0 |
32 | #define ATLASINT_RES3 (ATLASINT_BASE+3) | 33 | |
33 | #define ATLASINT_RTC (ATLASINT_BASE+4) | 34 | /* CPU interrupt offsets */ |
34 | #define ATLASINT_COREHI (ATLASINT_BASE+5) | 35 | #define MIPSCPU_INT_SW0 0 |
35 | #define ATLASINT_CORELO (ATLASINT_BASE+6) | 36 | #define MIPSCPU_INT_SW1 1 |
36 | #define ATLASINT_RES7 (ATLASINT_BASE+7) | 37 | #define MIPSCPU_INT_MB0 2 |
37 | #define ATLASINT_PCIA (ATLASINT_BASE+8) | 38 | #define MIPSCPU_INT_ATLAS MIPSCPU_INT_MB0 |
38 | #define ATLASINT_PCIB (ATLASINT_BASE+9) | 39 | #define MIPSCPU_INT_MB1 3 |
39 | #define ATLASINT_PCIC (ATLASINT_BASE+10) | 40 | #define MIPSCPU_INT_MB2 4 |
40 | #define ATLASINT_PCID (ATLASINT_BASE+11) | 41 | #define MIPSCPU_INT_MB3 5 |
41 | #define ATLASINT_ENUM (ATLASINT_BASE+12) | 42 | #define MIPSCPU_INT_MB4 6 |
42 | #define ATLASINT_DEG (ATLASINT_BASE+13) | 43 | #define MIPSCPU_INT_CPUCTR 7 |
43 | #define ATLASINT_ATXFAIL (ATLASINT_BASE+14) | 44 | |
44 | #define ATLASINT_INTA (ATLASINT_BASE+15) | 45 | /* |
45 | #define ATLASINT_INTB (ATLASINT_BASE+16) | 46 | * Interrupts 8..39 are used for Atlas interrupt controller interrupts |
46 | #define ATLASINT_ETH ATLASINT_INTB | 47 | */ |
47 | #define ATLASINT_INTC (ATLASINT_BASE+17) | 48 | #define ATLAS_INT_BASE 8 |
48 | #define ATLASINT_SCSI ATLASINT_INTC | 49 | #define ATLAS_INT_UART (ATLAS_INT_BASE + 0) |
49 | #define ATLASINT_INTD (ATLASINT_BASE+18) | 50 | #define ATLAS_INT_TIM0 (ATLAS_INT_BASE + 1) |
50 | #define ATLASINT_SERR (ATLASINT_BASE+19) | 51 | #define ATLAS_INT_RES2 (ATLAS_INT_BASE + 2) |
51 | #define ATLASINT_RES20 (ATLASINT_BASE+20) | 52 | #define ATLAS_INT_RES3 (ATLAS_INT_BASE + 3) |
52 | #define ATLASINT_RES21 (ATLASINT_BASE+21) | 53 | #define ATLAS_INT_RTC (ATLAS_INT_BASE + 4) |
53 | #define ATLASINT_RES22 (ATLASINT_BASE+22) | 54 | #define ATLAS_INT_COREHI (ATLAS_INT_BASE + 5) |
54 | #define ATLASINT_RES23 (ATLASINT_BASE+23) | 55 | #define ATLAS_INT_CORELO (ATLAS_INT_BASE + 6) |
55 | #define ATLASINT_RES24 (ATLASINT_BASE+24) | 56 | #define ATLAS_INT_RES7 (ATLAS_INT_BASE + 7) |
56 | #define ATLASINT_RES25 (ATLASINT_BASE+25) | 57 | #define ATLAS_INT_PCIA (ATLAS_INT_BASE + 8) |
57 | #define ATLASINT_RES26 (ATLASINT_BASE+26) | 58 | #define ATLAS_INT_PCIB (ATLAS_INT_BASE + 9) |
58 | #define ATLASINT_RES27 (ATLASINT_BASE+27) | 59 | #define ATLAS_INT_PCIC (ATLAS_INT_BASE + 10) |
59 | #define ATLASINT_RES28 (ATLASINT_BASE+28) | 60 | #define ATLAS_INT_PCID (ATLAS_INT_BASE + 11) |
60 | #define ATLASINT_RES29 (ATLASINT_BASE+29) | 61 | #define ATLAS_INT_ENUM (ATLAS_INT_BASE + 12) |
61 | #define ATLASINT_RES30 (ATLASINT_BASE+30) | 62 | #define ATLAS_INT_DEG (ATLAS_INT_BASE + 13) |
62 | #define ATLASINT_RES31 (ATLASINT_BASE+31) | 63 | #define ATLAS_INT_ATXFAIL (ATLAS_INT_BASE + 14) |
63 | #define ATLASINT_END (ATLASINT_BASE+31) | 64 | #define ATLAS_INT_INTA (ATLAS_INT_BASE + 15) |
65 | #define ATLAS_INT_INTB (ATLAS_INT_BASE + 16) | ||
66 | #define ATLAS_INT_ETH ATLAS_INT_INTB | ||
67 | #define ATLAS_INT_INTC (ATLAS_INT_BASE + 17) | ||
68 | #define ATLAS_INT_SCSI ATLAS_INT_INTC | ||
69 | #define ATLAS_INT_INTD (ATLAS_INT_BASE + 18) | ||
70 | #define ATLAS_INT_SERR (ATLAS_INT_BASE + 19) | ||
71 | #define ATLAS_INT_RES20 (ATLAS_INT_BASE + 20) | ||
72 | #define ATLAS_INT_RES21 (ATLAS_INT_BASE + 21) | ||
73 | #define ATLAS_INT_RES22 (ATLAS_INT_BASE + 22) | ||
74 | #define ATLAS_INT_RES23 (ATLAS_INT_BASE + 23) | ||
75 | #define ATLAS_INT_RES24 (ATLAS_INT_BASE + 24) | ||
76 | #define ATLAS_INT_RES25 (ATLAS_INT_BASE + 25) | ||
77 | #define ATLAS_INT_RES26 (ATLAS_INT_BASE + 26) | ||
78 | #define ATLAS_INT_RES27 (ATLAS_INT_BASE + 27) | ||
79 | #define ATLAS_INT_RES28 (ATLAS_INT_BASE + 28) | ||
80 | #define ATLAS_INT_RES29 (ATLAS_INT_BASE + 29) | ||
81 | #define ATLAS_INT_RES30 (ATLAS_INT_BASE + 30) | ||
82 | #define ATLAS_INT_RES31 (ATLAS_INT_BASE + 31) | ||
83 | #define ATLAS_INT_END (ATLAS_INT_BASE + 31) | ||
84 | |||
85 | /* | ||
86 | * Interrupts 64..127 are used for Soc-it Classic interrupts | ||
87 | */ | ||
88 | #define MSC01C_INT_BASE 64 | ||
89 | |||
90 | /* SOC-it Classic interrupt offsets */ | ||
91 | #define MSC01C_INT_TMR 0 | ||
92 | #define MSC01C_INT_PCI 1 | ||
93 | |||
94 | /* | ||
95 | * Interrupts 64..127 are used for Soc-it EIC interrupts | ||
96 | */ | ||
97 | #define MSC01E_INT_BASE 64 | ||
98 | |||
99 | /* SOC-it EIC interrupt offsets */ | ||
100 | #define MSC01E_INT_SW0 1 | ||
101 | #define MSC01E_INT_SW1 2 | ||
102 | #define MSC01E_INT_MB0 3 | ||
103 | #define MSC01E_INT_ATLAS MSC01E_INT_MB0 | ||
104 | #define MSC01E_INT_MB1 4 | ||
105 | #define MSC01E_INT_MB2 5 | ||
106 | #define MSC01E_INT_MB3 6 | ||
107 | #define MSC01E_INT_MB4 7 | ||
108 | #define MSC01E_INT_TMR 8 | ||
109 | #define MSC01E_INT_PCI 9 | ||
110 | #define MSC01E_INT_PERFCTR 10 | ||
111 | #define MSC01E_INT_CPUCTR 11 | ||
64 | 112 | ||
65 | #endif /* !(_MIPS_ATLASINT_H) */ | 113 | #endif /* !(_MIPS_ATLASINT_H) */ |