blob: 5b45de4335df4a9517a5ad05b3505b7bce61e1cf [file] [log] [blame]
wdenkc6097192002-11-03 00:24:07 +00001/*
2* Copyright (C) 2002 Scott McNutt <smcnutt@artesyncp.com>
3*
4* See file CREDITS for list of people who contributed to this
5* project.
6*
7* This program is free software; you can redistribute it and/or
8* modify it under the terms of the GNU General Public License as
9* published by the Free Software Foundation; either version 2 of
10* the License, or (at your option) any later version.
11*
12* This program is distributed in the hope that it will be useful,
13* but WITHOUT ANY WARRANTY; without even the implied warranty of
14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15* GNU General Public License for more details.
16*
17* You should have received a copy of the GNU General Public License
18* along with this program; if not, write to the Free Software
19* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20* MA 02111-1307 USA
21*/
22
23/*
24 * Interrupt vector number definitions to ease the
25 * 405 -- 440 porting pain ;-)
26 *
27 * NOTE: They're not all here yet ... update as needed.
28 *
29 */
30
31#ifndef _VECNUMS_H_
32#define _VECNUMS_H_
33
Stefan Roese854bc8d2006-09-13 13:51:58 +020034#if defined(CONFIG_440EPX) || defined(CONFIG_440GRX)
Stefan Roese887e2ec2006-09-07 11:51:23 +020035
36/* UIC 0 */
37#define VECNUM_U0 0 /* UART 0 */
38#define VECNUM_U1 1 /* UART 1 */
39#define VECNUM_IIC0 2 /* IIC */
40#define VECNUM_KRD 3 /* Kasumi Ready for data */
41#define VECNUM_KDA 4 /* Kasumi Data Available */
42#define VECNUM_PCRW 5 /* PCI command register write */
43#define VECNUM_PPM 6 /* PCI power management */
44#define VECNUM_IIC1 7 /* IIC */
45#define VECNUM_SPI 8 /* SPI */
46#define VECNUM_EPCISER 9 /* External PCI SERR */
47#define VECNUM_MTE 10 /* MAL TXEOB */
48#define VECNUM_MRE 11 /* MAL RXEOB */
49#define VECNUM_D0 12 /* DMA channel 0 */
50#define VECNUM_D1 13 /* DMA channel 1 */
51#define VECNUM_D2 14 /* DMA channel 2 */
52#define VECNUM_D3 15 /* DMA channel 3 */
53#define VECNUM_UD0 16 /* UDMA irq 0 */
54#define VECNUM_UD1 17 /* UDMA irq 1 */
55#define VECNUM_UD2 18 /* UDMA irq 2 */
56#define VECNUM_UD3 19 /* UDMA irq 3 */
57#define VECNUM_HSB2D 20 /* USB2.0 Device */
58#define VECNUM_USBDEV 20 /* USB 1.1/USB 2.0 Device */
59#define VECNUM_OHCI1 21 /* USB2.0 Host OHCI irq 1 */
60#define VECNUM_OHCI2 22 /* USB2.0 Host OHCI irq 2 */
61#define VECNUM_EIP94 23 /* Security EIP94 */
62#define VECNUM_ETH0 24 /* Emac 0 */
63#define VECNUM_ETH1 25 /* Emac 1 */
64#define VECNUM_EHCI 26 /* USB2.0 Host EHCI */
65#define VECNUM_EIR4 27 /* External interrupt 4 */
66#define VECNUM_UIC2NC 28 /* UIC2 non-critical interrupt */
67#define VECNUM_UIC2C 29 /* UIC2 critical interrupt */
68#define VECNUM_UIC1NC 30 /* UIC1 non-critical interrupt */
69#define VECNUM_UIC1C 31 /* UIC1 critical interrupt */
70
71/* UIC 1 */
72#define VECNUM_MS (32 + 0) /* MAL SERR */
73#define VECNUM_MTDE (32 + 1) /* MAL TXDE */
74#define VECNUM_MRDE (32 + 2) /* MAL RXDE */
75#define VECNUM_U2 (32 + 3) /* UART 2 */
76#define VECNUM_U3 (32 + 4) /* UART 3 */
77#define VECNUM_EBCO (32 + 5) /* EBCO interrupt status */
78#define VECNUM_NDFC (32 + 6) /* NDFC */
79#define VECNUM_KSLE (32 + 7) /* KASUMI slave error */
80#define VECNUM_CT5 (32 + 8) /* GPT compare timer 5 */
81#define VECNUM_CT6 (32 + 9) /* GPT compare timer 6 */
82#define VECNUM_PLB34I0 (32 + 10) /* PLB3X4X MIRQ0 */
83#define VECNUM_PLB34I1 (32 + 11) /* PLB3X4X MIRQ1 */
84#define VECNUM_PLB34I2 (32 + 12) /* PLB3X4X MIRQ2 */
85#define VECNUM_PLB34I3 (32 + 13) /* PLB3X4X MIRQ3 */
86#define VECNUM_PLB34I4 (32 + 14) /* PLB3X4X MIRQ4 */
87#define VECNUM_PLB34I5 (32 + 15) /* PLB3X4X MIRQ5 */
88#define VECNUM_CT0 (32 + 16) /* GPT compare timer 0 */
89#define VECNUM_CT1 (32 + 17) /* GPT compare timer 1 */
90#define VECNUM_EIR7 (32 + 18) /* External interrupt 7 */
91#define VECNUM_EIR8 (32 + 19) /* External interrupt 8 */
92#define VECNUM_EIR9 (32 + 20) /* External interrupt 9 */
93#define VECNUM_CT2 (32 + 21) /* GPT compare timer 2 */
94#define VECNUM_CT3 (32 + 22) /* GPT compare timer 3 */
95#define VECNUM_CT4 (32 + 23) /* GPT compare timer 4 */
96#define VECNUM_SRE (32 + 24) /* Serial ROM error */
97#define VECNUM_GPTDC (32 + 25) /* GPT decrementer pulse */
98#define VECNUM_RSVD0 (32 + 26) /* Reserved */
99#define VECNUM_EPCIPER (32 + 27) /* External PCI PERR */
100#define VECNUM_EIR0 (32 + 28) /* External interrupt 0 */
101#define VECNUM_EWU0 (32 + 29) /* Ethernet 0 wakeup */
102#define VECNUM_EIR1 (32 + 30) /* External interrupt 1 */
103#define VECNUM_EWU1 (32 + 31) /* Ethernet 1 wakeup */
104
105#define VECNUM_TXDE VECNUM_MTDE
106#define VECNUM_RXDE VECNUM_MRDE
107
108/* UIC 2 */
Matthias Fuchs580d1d32008-01-08 15:39:01 +0100109#define VECNUM_EIR5 (64 + 0) /* External interrupt 5 */
110#define VECNUM_EIR6 (64 + 1) /* External interrupt 6 */
111#define VECNUM_OPB (64 + 2) /* OPB to PLB bridge int stat */
112#define VECNUM_EIR2 (64 + 3) /* External interrupt 2 */
113#define VECNUM_EIR3 (64 + 4) /* External interrupt 3 */
114#define VECNUM_DDR2 (64 + 5) /* DDR2 sdram */
115#define VECNUM_MCTX0 (64 + 6) /* MAl intp coalescence TX0 */
116#define VECNUM_MCTX1 (64 + 7) /* MAl intp coalescence TX1 */
117#define VECNUM_MCTR0 (64 + 8) /* MAl intp coalescence TR0 */
118#define VECNUM_MCTR1 (64 + 9) /* MAl intp coalescence TR1 */
Stefan Roese887e2ec2006-09-07 11:51:23 +0200119
Stefan Roese999ecd52008-03-11 15:07:10 +0100120#elif defined(CONFIG_460EX) || defined(CONFIG_460GT)
121
122/* UIC 0 */
123#define VECNUM_U1 1 /* UART1 */
124#define VECNUM_IIC0 2 /* IIC0 */
125#define VECNUM_IIC1 3 /* IIC1 */
126#define VECNUM_PIM 4 /* PCI inbound message */
127#define VECNUM_PCRW 5 /* PCI command reg write */
128#define VECNUM_PPM 6 /* PCI power management */
129#define VECNUM_MSI0 8 /* PCI MSI level 0 */
130#define VECNUM_EIR0 9 /* External interrupt 0 */
131#define VECNUM_UIC2NC 10 /* UIC2 non-critical interrupt */
132#define VECNUM_UIC2C 11 /* UIC2 critical interrupt */
133#define VECNUM_D0 12 /* DMA channel 0 */
134#define VECNUM_D1 13 /* DMA channel 1 */
135#define VECNUM_D2 14 /* DMA channel 2 */
136#define VECNUM_D3 15 /* DMA channel 3 */
137#define VECNUM_UIC3NC 16 /* UIC3 non-critical interrupt */
138#define VECNUM_UIC3C 17 /* UIC3 critical interrupt */
139#define VECNUM_EIR1 9 /* External interrupt 1 */
140#define VECNUM_UIC1NC 30 /* UIC1 non-critical interrupt */
141#define VECNUM_UIC1C 31 /* UIC1 critical interrupt */
142
143/* UIC 1 */
144#define VECNUM_EIR2 (32 + 0) /* External interrupt 0 */
145#define VECNUM_U0 (32 + 1) /* UART0 */
146#define VECNUM_EIR3 (32 + 20) /* External interrupt 3 */
147#define VECNUM_EIR4 (32 + 21) /* External interrupt 4 */
148#define VECNUM_EIR5 (32 + 26) /* External interrupt 5 */
149#define VECNUM_EIR6 (32 + 27) /* External interrupt 6 */
150#define VECNUM_U2 (32 + 28) /* UART2 */
151#define VECNUM_U3 (32 + 29) /* UART3 */
152#define VECNUM_EIR7 (32 + 30) /* External interrupt 7 */
153#define VECNUM_EIR8 (32 + 31) /* External interrupt 8 */
154
155/* UIC 2 */
156#define VECNUM_EIR9 (64 + 2) /* External interrupt 9 */
157#define VECNUM_MS (64 + 3) /* MAL SERR */
158#define VECNUM_TXDE (64 + 4) /* MAL TXDE */
159#define VECNUM_RXDE (64 + 5) /* MAL RXDE */
160#define VECNUM_MTE (64 + 6) /* MAL TXEOB */
161#define VECNUM_MRE (64 + 7) /* MAL RXEOB */
162#define VECNUM_ETH0 (64 + 16) /* Ethernet 0 */
163#define VECNUM_ETH1 (64 + 17) /* Ethernet 1 */
164#define VECNUM_ETH2 (64 + 18) /* Ethernet 2 */
165#define VECNUM_ETH3 (64 + 19) /* Ethernet 3 */
166#define VECNUM_EWU0 (64 + 20) /* Emac 0 wakeup */
167#define VECNUM_EWU1 (64 + 21) /* Emac 1 wakeup */
168#define VECNUM_EWU2 (64 + 22) /* Emac 2 wakeup */
169#define VECNUM_EWU3 (64 + 23) /* Emac 3 wakeup */
170#define VECNUM_EIR10 (64 + 24) /* External interrupt 10 */
171#define VECNUM_EIR11 (64 + 25) /* External interrupt 11 */
172
173/* UIC 3 */
174#define VECNUM_EIR12 (96 + 20) /* External interrupt 20 */
175#define VECNUM_EIR13 (96 + 21) /* External interrupt 21 */
176#define VECNUM_EIR14 (96 + 22) /* External interrupt 22 */
177#define VECNUM_EIR15 (96 + 23) /* External interrupt 23 */
178#define VECNUM_PCIEMSI0 (96 + 24) /* PCI Express MSI level 0 */
179#define VECNUM_PCIEMSI1 (96 + 25) /* PCI Express MSI level 1 */
180#define VECNUM_PCIEMSI2 (96 + 26) /* PCI Express MSI level 2 */
181#define VECNUM_PCIEMSI3 (96 + 27) /* PCI Express MSI level 3 */
182#define VECNUM_PCIEMSI4 (96 + 28) /* PCI Express MSI level 4 */
183#define VECNUM_PCIEMSI5 (96 + 29) /* PCI Express MSI level 5 */
184#define VECNUM_PCIEMSI6 (96 + 30) /* PCI Express MSI level 6 */
185#define VECNUM_PCIEMSI7 (96 + 31) /* PCI Express MSI level 7 */
186
Stefan Roese887e2ec2006-09-07 11:51:23 +0200187#elif defined(CONFIG_440SPE)
188
Marian Balakowicz6c5879f2006-06-30 16:30:46 +0200189/* UIC 0 */
190#define VECNUM_U0 0 /* UART0 */
191#define VECNUM_U1 1 /* UART1 */
192#define VECNUM_IIC0 2 /* IIC0 */
193#define VECNUM_IIC1 3 /* IIC1 */
194#define VECNUM_PIM 4 /* PCI inbound message */
195#define VECNUM_PCRW 5 /* PCI command reg write */
196#define VECNUM_PPM 6 /* PCI power management */
197#define VECNUM_MSI0 7 /* PCI MSI level 0 */
198#define VECNUM_MSI1 8 /* PCI MSI level 0 */
199#define VECNUM_MSI2 9 /* PCI MSI level 0 */
Stefan Roese999ecd52008-03-11 15:07:10 +0100200#define VECNUM_UIC2NC 10 /* UIC2 non-critical interrupt */
201#define VECNUM_UIC2C 11 /* UIC2 critical interrupt */
Marian Balakowicz6c5879f2006-06-30 16:30:46 +0200202#define VECNUM_D0 12 /* DMA channel 0 */
203#define VECNUM_D1 13 /* DMA channel 1 */
204#define VECNUM_D2 14 /* DMA channel 2 */
205#define VECNUM_D3 15 /* DMA channel 3 */
Stefan Roese999ecd52008-03-11 15:07:10 +0100206#define VECNUM_UIC3NC 16 /* UIC3 non-critical interrupt */
207#define VECNUM_UIC3C 17 /* UIC3 critical interrupt */
Marian Balakowicz6c5879f2006-06-30 16:30:46 +0200208#define VECNUM_UIC1NC 30 /* UIC1 non-critical interrupt */
209#define VECNUM_UIC1C 31 /* UIC1 critical interrupt */
210
211/* UIC 1 */
212#define VECNUM_MS (32 + 1 ) /* MAL SERR */
213#define VECNUM_TXDE (32 + 2 ) /* MAL TXDE */
214#define VECNUM_RXDE (32 + 3 ) /* MAL RXDE */
215#define VECNUM_MTE (32 + 6 ) /* MAL Tx EOB */
216#define VECNUM_MRE (32 + 7 ) /* MAL Rx EOB */
217#define VECNUM_CT0 (32 + 12 ) /* GPT compare timer 0 */
218#define VECNUM_CT1 (32 + 13 ) /* GPT compare timer 1 */
219#define VECNUM_CT2 (32 + 14 ) /* GPT compare timer 2 */
220#define VECNUM_CT3 (32 + 15 ) /* GPT compare timer 3 */
221#define VECNUM_CT4 (32 + 16 ) /* GPT compare timer 4 */
222#define VECNUM_ETH0 (32 + 28) /* Ethernet interrupt status */
223#define VECNUM_EWU0 (32 + 29) /* Emac wakeup */
224
225/* UIC 2 */
Matthias Fuchs580d1d32008-01-08 15:39:01 +0100226#define VECNUM_EIR5 (64 + 24) /* External interrupt 5 */
227#define VECNUM_EIR4 (64 + 25) /* External interrupt 4 */
228#define VECNUM_EIR3 (64 + 26) /* External interrupt 3 */
229#define VECNUM_EIR2 (64 + 27) /* External interrupt 2 */
230#define VECNUM_EIR1 (64 + 28) /* External interrupt 1 */
231#define VECNUM_EIR0 (64 + 29) /* External interrupt 0 */
Marian Balakowicz6c5879f2006-06-30 16:30:46 +0200232
233#elif defined(CONFIG_440SP)
Stefan Roese6e7fb6e2005-11-29 18:18:21 +0100234
235/* UIC 0 */
236#define VECNUM_U0 0 /* UART0 */
237#define VECNUM_U1 1 /* UART1 */
238#define VECNUM_IIC0 2 /* IIC0 */
239#define VECNUM_IIC1 3 /* IIC1 */
240#define VECNUM_PIM 4 /* PCI inbound message */
241#define VECNUM_PCRW 5 /* PCI command reg write */
242#define VECNUM_PPM 6 /* PCI power management */
243#define VECNUM_UIC1NC 30 /* UIC1 non-critical interrupt */
244#define VECNUM_UIC1C 31 /* UIC1 critical interrupt */
245
246/* UIC 1 */
247#define VECNUM_EIR0 (32 + 0) /* External interrupt 0 */
248#define VECNUM_MS (32 + 1) /* MAL SERR */
249#define VECNUM_TXDE (32 + 2) /* MAL TXDE */
250#define VECNUM_RXDE (32 + 3) /* MAL RXDE */
251#define VECNUM_MTE (32 + 6) /* MAL Tx EOB */
252#define VECNUM_MRE (32 + 7) /* MAL Rx EOB */
253#define VECNUM_CT0 (32 + 12) /* GPT compare timer 0 */
254#define VECNUM_CT1 (32 + 13) /* GPT compare timer 1 */
255#define VECNUM_CT2 (32 + 14) /* GPT compare timer 2 */
256#define VECNUM_CT3 (32 + 15) /* GPT compare timer 3 */
257#define VECNUM_CT4 (32 + 16) /* GPT compare timer 4 */
258#define VECNUM_ETH0 (32 + 28) /* Ethernet interrupt status */
259#define VECNUM_EWU0 (32 + 29) /* Emac wakeup */
260
261#elif defined(CONFIG_440)
wdenkc6097192002-11-03 00:24:07 +0000262
263/* UIC 0 */
264#define VECNUM_U0 0 /* UART0 */
265#define VECNUM_U1 1 /* UART1 */
266#define VECNUM_IIC0 2 /* IIC0 */
267#define VECNUM_IIC1 3 /* IIC1 */
268#define VECNUM_PIM 4 /* PCI inbound message */
269#define VECNUM_PCRW 5 /* PCI command reg write */
270#define VECNUM_PPM 6 /* PCI power management */
271#define VECNUM_MSI0 7 /* PCI MSI level 0 */
272#define VECNUM_MSI1 8 /* PCI MSI level 0 */
273#define VECNUM_MSI2 9 /* PCI MSI level 0 */
274#define VECNUM_MTE 10 /* MAL TXEOB */
275#define VECNUM_MRE 11 /* MAL RXEOB */
276#define VECNUM_D0 12 /* DMA channel 0 */
277#define VECNUM_D1 13 /* DMA channel 1 */
278#define VECNUM_D2 14 /* DMA channel 2 */
279#define VECNUM_D3 15 /* DMA channel 3 */
280#define VECNUM_CT0 18 /* GPT compare timer 0 */
281#define VECNUM_CT1 19 /* GPT compare timer 1 */
282#define VECNUM_CT2 20 /* GPT compare timer 2 */
283#define VECNUM_CT3 21 /* GPT compare timer 3 */
284#define VECNUM_CT4 22 /* GPT compare timer 4 */
285#define VECNUM_EIR0 23 /* External interrupt 0 */
286#define VECNUM_EIR1 24 /* External interrupt 1 */
287#define VECNUM_EIR2 25 /* External interrupt 2 */
288#define VECNUM_EIR3 26 /* External interrupt 3 */
289#define VECNUM_EIR4 27 /* External interrupt 4 */
290#define VECNUM_EIR5 28 /* External interrupt 5 */
291#define VECNUM_EIR6 29 /* External interrupt 6 */
292#define VECNUM_UIC1NC 30 /* UIC1 non-critical interrupt */
293#define VECNUM_UIC1C 31 /* UIC1 critical interrupt */
294
295/* UIC 1 */
296#define VECNUM_MS (32 + 0 ) /* MAL SERR */
297#define VECNUM_TXDE (32 + 1 ) /* MAL TXDE */
298#define VECNUM_RXDE (32 + 2 ) /* MAL RXDE */
Stefan Roesec157d8e2005-08-01 16:41:48 +0200299#define VECNUM_USBDEV (32 + 23) /* USB 1.1/USB 2.0 Device */
wdenkc6097192002-11-03 00:24:07 +0000300#define VECNUM_ETH0 (32 + 28) /* Ethernet 0 interrupt status */
301#define VECNUM_EWU0 (32 + 29) /* Ethernet 0 wakeup */
302
303#else /* !defined(CONFIG_440) */
304
Stefan Roesee01bd212007-03-21 13:38:59 +0100305#if defined(CONFIG_405EZ)
306#define VECNUM_D0 0 /* DMA channel 0 */
307#define VECNUM_D1 1 /* DMA channel 1 */
308#define VECNUM_D2 2 /* DMA channel 2 */
309#define VECNUM_D3 3 /* DMA channel 3 */
310#define VECNUM_1588 4 /* IEEE 1588 network synchronization */
311#define VECNUM_U0 5 /* UART0 */
312#define VECNUM_U1 6 /* UART1 */
313#define VECNUM_CAN0 7 /* CAN 0 */
314#define VECNUM_CAN1 8 /* CAN 1 */
315#define VECNUM_SPI 9 /* SPI */
316#define VECNUM_IIC0 10 /* I2C */
317#define VECNUM_CHT0 11 /* Chameleon timer high pri interrupt */
318#define VECNUM_CHT1 12 /* Chameleon timer high pri interrupt */
319#define VECNUM_USBH1 13 /* USB Host 1 */
320#define VECNUM_USBH2 14 /* USB Host 2 */
321#define VECNUM_USBDEV 15 /* USB Device */
322#define VECNUM_ETH0 16 /* 10/100 Ethernet interrupt status */
323#define VECNUM_EWU0 17 /* Ethernet wakeup sequence detected */
324
325#define VECNUM_MADMAL 18 /* Logical OR of following MadMAL int */
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200326#define VECNUM_MS 18 /* MAL_SERR_INT */
327#define VECNUM_TXDE 18 /* MAL_TXDE_INT */
328#define VECNUM_RXDE 18 /* MAL_RXDE_INT */
Stefan Roesee01bd212007-03-21 13:38:59 +0100329
330#define VECNUM_MTE 19 /* MAL TXEOB */
331#define VECNUM_MTE1 20 /* MAL TXEOB1 */
332#define VECNUM_MRE 21 /* MAL RXEOB */
333#define VECNUM_NAND 22 /* NAND Flash controller */
334#define VECNUM_ADC 23 /* ADC */
335#define VECNUM_DAC 24 /* DAC */
336#define VECNUM_OPB2PLB 25 /* OPB to PLB bridge interrupt */
337#define VECNUM_RESERVED0 26 /* Reserved */
338#define VECNUM_EIR0 27 /* External interrupt 0 */
339#define VECNUM_EIR1 28 /* External interrupt 1 */
340#define VECNUM_EIR2 29 /* External interrupt 2 */
341#define VECNUM_EIR3 30 /* External interrupt 3 */
342#define VECNUM_EIR4 31 /* External interrupt 4 */
343
Stefan Roesedbbd1252007-10-05 17:10:59 +0200344#elif defined(CONFIG_405EX)
345
346/* UIC 0 */
347#define VECNUM_U0 00
348#define VECNUM_U1 01
349#define VECNUM_IIC0 02
350#define VECNUM_PKA 03
351#define VECNUM_TRNG 04
352#define VECNUM_EBM 05
353#define VECNUM_BGI 06
354#define VECNUM_IIC1 07
355#define VECNUM_SPI 08
356#define VECNUM_EIR0 09
357#define VECNUM_MTE 10 /* MAL Tx EOB */
358#define VECNUM_MRE 11 /* MAL Rx EOB */
359#define VECNUM_DMA0 12
360#define VECNUM_DMA1 13
361#define VECNUM_DMA2 14
362#define VECNUM_DMA3 15
363#define VECNUM_PCIE0AL 16
364#define VECNUM_PCIE0VPD 17
365#define VECNUM_RPCIE0HRST 18
366#define VECNUM_FPCIE0HRST 19
367#define VECNUM_PCIE0TCR 20
368#define VECNUM_PCIEMSI0 21
369#define VECNUM_PCIEMSI1 22
370#define VECNUM_SECURITY 23
371#define VECNUM_ETH0 24
372#define VECNUM_ETH1 25
373#define VECNUM_PCIEMSI2 26
374#define VECNUM_EIR4 27
375#define VECNUM_UIC2NC 28
376#define VECNUM_UIC2C 29
377#define VECNUM_UIC1NC 30
378#define VECNUM_UIC1C 31
379
380/* UIC 1 */
381#define VECNUM_MS (32 + 00) /* MAL SERR */
382#define VECNUM_TXDE (32 + 01) /* MAL TXDE */
383#define VECNUM_RXDE (32 + 02) /* MAL RXDE */
384#define VECNUM_PCIE0BMVC0 (32 + 03)
385#define VECNUM_PCIE0DCRERR (32 + 04)
386#define VECNUM_EBC (32 + 05)
387#define VECNUM_NDFC (32 + 06)
388#define VECNUM_PCEI1DCRERR (32 + 07)
389#define VECNUM_CT8 (32 + 08)
390#define VECNUM_CT9 (32 + 09)
391#define VECNUM_PCIE1AL (32 + 10)
392#define VECNUM_PCIE1VPD (32 + 11)
393#define VECNUM_RPCE1HRST (32 + 12)
394#define VECNUM_FPCE1HRST (32 + 13)
395#define VECNUM_PCIE1TCR (32 + 14)
396#define VECNUM_PCIE1VC0 (32 + 15)
397#define VECNUM_CT3 (32 + 16)
398#define VECNUM_CT4 (32 + 17)
399#define VECNUM_EIR7 (32 + 18)
400#define VECNUM_EIR8 (32 + 19)
401#define VECNUM_EIR9 (32 + 20)
402#define VECNUM_CT5 (32 + 21)
403#define VECNUM_CT6 (32 + 22)
404#define VECNUM_CT7 (32 + 23)
405#define VECNUM_SROM (32 + 24) /* SERIAL ROM */
406#define VECNUM_GPTDECPULS (32 + 25) /* GPT Decrement pulse */
407#define VECNUM_EIR2 (32 + 26)
408#define VECNUM_EIR5 (32 + 27)
409#define VECNUM_EIR6 (32 + 28)
410#define VECNUM_EMAC0WAKE (32 + 29)
411#define VECNUM_EIR1 (32 + 30)
412#define VECNUM_EMAC1WAKE (32 + 31)
413
414/* UIC 2 */
415#define VECNUM_PCIE0INTA (64 + 00) /* PCIE0 INTA */
416#define VECNUM_PCIE0INTB (64 + 01) /* PCIE0 INTB */
417#define VECNUM_PCIE0INTC (64 + 02) /* PCIE0 INTC */
418#define VECNUM_PCIE0INTD (64 + 03) /* PCIE0 INTD */
419#define VECNUM_EIR3 (64 + 04) /* External IRQ 3 */
420#define VECNUM_DDRMCUE (64 + 05)
421#define VECNUM_DDRMCCE (64 + 06)
422#define VECNUM_MALINTCOATX0 (64 + 07) /* Interrupt coalecence TX0 */
423#define VECNUM_MALINTCOATX1 (64 + 08) /* Interrupt coalecence TX1 */
424#define VECNUM_MALINTCOARX0 (64 + 09) /* Interrupt coalecence RX0 */
425#define VECNUM_MALINTCOARX1 (64 + 10) /* Interrupt coalecence RX1 */
426#define VECNUM_PCIE1INTA (64 + 11) /* PCIE0 INTA */
427#define VECNUM_PCIE1INTB (64 + 12) /* PCIE0 INTB */
428#define VECNUM_PCIE1INTC (64 + 13) /* PCIE0 INTC */
429#define VECNUM_PCIE1INTD (64 + 14) /* PCIE0 INTD */
430#define VECNUM_RPCIEMSI2 (64 + 15) /* MSI level 2 */
431#define VECNUM_PCIEMSI3 (64 + 16) /* MSI level 2 */
432#define VECNUM_PCIEMSI4 (64 + 17) /* MSI level 2 */
433#define VECNUM_PCIEMSI5 (64 + 18) /* MSI level 2 */
434#define VECNUM_PCIEMSI6 (64 + 19) /* MSI level 2 */
435#define VECNUM_PCIEMSI7 (64 + 20) /* MSI level 2 */
436#define VECNUM_PCIEMSI8 (64 + 21) /* MSI level 2 */
437#define VECNUM_PCIEMSI9 (64 + 22) /* MSI level 2 */
438#define VECNUM_PCIEMSI10 (64 + 23) /* MSI level 2 */
439#define VECNUM_PCIEMSI11 (64 + 24) /* MSI level 2 */
440#define VECNUM_PCIEMSI12 (64 + 25) /* MSI level 2 */
441#define VECNUM_PCIEMSI13 (64 + 26) /* MSI level 2 */
442#define VECNUM_PCIEMSI14 (64 + 27) /* MSI level 2 */
443#define VECNUM_PCIEMSI15 (64 + 28) /* MSI level 2 */
444#define VECNUM_PLB4XAHB (64 + 29) /* PLBxAHB bridge */
445#define VECNUM_USBWAKE (64 + 30) /* USB wakup */
446#define VECNUM_USBOTG (64 + 31) /* USB OTG */
447
Stefan Roesee01bd212007-03-21 13:38:59 +0100448#else /* !CONFIG_405EZ */
449
wdenkc6097192002-11-03 00:24:07 +0000450#define VECNUM_U0 0 /* UART0 */
451#define VECNUM_U1 1 /* UART1 */
452#define VECNUM_D0 5 /* DMA channel 0 */
453#define VECNUM_D1 6 /* DMA channel 1 */
454#define VECNUM_D2 7 /* DMA channel 2 */
455#define VECNUM_D3 8 /* DMA channel 3 */
456#define VECNUM_EWU0 9 /* Ethernet wakeup */
457#define VECNUM_MS 10 /* MAL SERR */
458#define VECNUM_MTE 11 /* MAL TXEOB */
459#define VECNUM_MRE 12 /* MAL RXEOB */
460#define VECNUM_TXDE 13 /* MAL TXDE */
461#define VECNUM_RXDE 14 /* MAL RXDE */
462#define VECNUM_ETH0 15 /* Ethernet interrupt status */
463#define VECNUM_EIR0 25 /* External interrupt 0 */
464#define VECNUM_EIR1 26 /* External interrupt 1 */
465#define VECNUM_EIR2 27 /* External interrupt 2 */
466#define VECNUM_EIR3 28 /* External interrupt 3 */
467#define VECNUM_EIR4 29 /* External interrupt 4 */
468#define VECNUM_EIR5 30 /* External interrupt 5 */
469#define VECNUM_EIR6 31 /* External interrupt 6 */
Stefan Roesee01bd212007-03-21 13:38:59 +0100470#endif /* defined(CONFIG_405EZ) */
wdenkc6097192002-11-03 00:24:07 +0000471
472#endif /* defined(CONFIG_440) */
473
474#endif /* _VECNUMS_H_ */