www.usr.com/support/gpl/USR9113_release1.0.tar.gz
[bcm963xx.git] / shared / opensource / include / bcm963xx / 6358_intr.h
1 /*
2 <:copyright-gpl 
3  Copyright 2003 Broadcom Corp. All Rights Reserved. 
4  
5  This program is free software; you can distribute it and/or modify it 
6  under the terms of the GNU General Public License (Version 2) as 
7  published by the Free Software Foundation. 
8  
9  This program is distributed in the hope it will be useful, but WITHOUT 
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
11  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License 
12  for more details. 
13  
14  You should have received a copy of the GNU General Public License along 
15  with this program; if not, write to the Free Software Foundation, Inc., 
16  59 Temple Place - Suite 330, Boston MA 02111-1307, USA. 
17 :>
18 */
19
20 #ifndef __6358_INTR_H
21 #define __6358_INTR_H
22
23 #ifdef __cplusplus
24     extern "C" {
25 #endif
26
27 #define INTERRUPT_ID_SOFTWARE_0           0
28 #define INTERRUPT_ID_SOFTWARE_1           1
29
30 /*=====================================================================*/
31 /* BCM6358 Timer Interrupt Level Assignments                          */
32 /*=====================================================================*/
33 #define MIPS_TIMER_INT                  7
34
35 /*=====================================================================*/
36 /* Peripheral ISR Table Offset                                              */
37 /*=====================================================================*/
38 #define INTERNAL_ISR_TABLE_OFFSET       8
39
40 /*=====================================================================*/
41 /* Logical Peripheral Interrupt IDs                                    */
42 /*=====================================================================*/
43
44 #define INTERRUPT_ID_TIMER               (INTERNAL_ISR_TABLE_OFFSET + 0)
45 #define INTERRUPT_ID_SPI                 (INTERNAL_ISR_TABLE_OFFSET + 1)
46 #define INTERRUPT_ID_UART                (INTERNAL_ISR_TABLE_OFFSET + 2)
47 #define INTERRUPT_ID_UART1               (INTERNAL_ISR_TABLE_OFFSET + 3)
48 #define INTERRUPT_ID_USBH                (INTERNAL_ISR_TABLE_OFFSET + 5)
49 #define INTERRUPT_ID_EMAC2               (INTERNAL_ISR_TABLE_OFFSET + 6)
50 #define INTERRUPT_ID_USBS                (INTERNAL_ISR_TABLE_OFFSET + 7)
51 #define INTERRUPT_ID_EMAC1               (INTERNAL_ISR_TABLE_OFFSET + 8)
52 #define INTERRUPT_ID_EPHY                (INTERNAL_ISR_TABLE_OFFSET + 9)
53 #define INTERRUPT_ID_USBH20              (INTERNAL_ISR_TABLE_OFFSET + 10)
54 #define INTERRUPT_ID_USB_CNTL_RX_DMA     (INTERNAL_ISR_TABLE_OFFSET + 11)
55 #define INTERRUPT_ID_USB_CNTL_TX_DMA     (INTERNAL_ISR_TABLE_OFFSET + 12)
56 #define INTERRUPT_ID_USB_BULK_RX_DMA     (INTERNAL_ISR_TABLE_OFFSET + 13)
57 #define INTERRUPT_ID_USB_BULK_TX_DMA     (INTERNAL_ISR_TABLE_OFFSET + 14)
58 #define INTERRUPT_ID_EMAC1_RX_DMA        (INTERNAL_ISR_TABLE_OFFSET + 15)
59 #define INTERRUPT_ID_EMAC1_TX_DMA        (INTERNAL_ISR_TABLE_OFFSET + 16)
60 #define INTERRUPT_ID_EMAC2_RX_DMA        (INTERNAL_ISR_TABLE_OFFSET + 17)
61 #define INTERRUPT_ID_EMAC2_TX_DMA        (INTERNAL_ISR_TABLE_OFFSET + 18)
62 #define INTERRUPT_ID_ATM                 (INTERNAL_ISR_TABLE_OFFSET + 19)
63 #define INTERRUPT_ID_EXTERNAL_4          (INTERNAL_ISR_TABLE_OFFSET + 20)
64 #define INTERRUPT_ID_EXTERNAL_5          (INTERNAL_ISR_TABLE_OFFSET + 21)
65 #define INTERRUPT_ID_PCM                 (INTERNAL_ISR_TABLE_OFFSET + 22)
66 #define INTERRUPT_ID_PCM_RX_DMA          (INTERNAL_ISR_TABLE_OFFSET + 23)
67 #define INTERRUPT_ID_PCM_TX_DMA          (INTERNAL_ISR_TABLE_OFFSET + 24)
68 #define INTERRUPT_ID_EXTERNAL_0          (INTERNAL_ISR_TABLE_OFFSET + 25)
69 #define INTERRUPT_ID_EXTERNAL_1          (INTERNAL_ISR_TABLE_OFFSET + 26)
70 #define INTERRUPT_ID_EXTERNAL_2          (INTERNAL_ISR_TABLE_OFFSET + 27)
71 #define INTERRUPT_ID_EXTERNAL_3          (INTERNAL_ISR_TABLE_OFFSET + 28)
72 #define INTERRUPT_ID_ADSL                (INTERNAL_ISR_TABLE_OFFSET + 29)
73 #define INTERRUPT_ID_DG                  (INTERNAL_ISR_TABLE_OFFSET + 30)
74 #define INTERRUPT_ID_MPI                 (INTERNAL_ISR_TABLE_OFFSET + 31)
75
76 #ifdef __cplusplus
77     }
78 #endif                    
79
80 #endif  /* __BCM6358_H */
81