www.usr.com/support/gpl/USR9107_release.1.4.tar.gz
[bcm963xx.git] / bcmdrivers / opensource / include / bcm963xx / 6338_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 __6338_INTR_H
21 #define __6338_INTR_H
22
23 #ifdef __cplusplus
24     extern "C" {
25 #endif
26
27 /*=====================================================================*/
28 /* BCM6338 External Interrupt Level Assignments                       */
29 /*=====================================================================*/
30 #define INTERRUPT_ID_EXTERNAL_0         3
31 #define INTERRUPT_ID_EXTERNAL_1         4
32 #define INTERRUPT_ID_EXTERNAL_2         5
33 #define INTERRUPT_ID_EXTERNAL_3         6
34
35 /*=====================================================================*/
36 /* BCM6338 Timer Interrupt Level Assignments                          */
37 /*=====================================================================*/
38 #define MIPS_TIMER_INT                  7
39
40 /*=====================================================================*/
41 /* Peripheral ISR Table Offset                                              */
42 /*=====================================================================*/
43 #define INTERNAL_ISR_TABLE_OFFSET       8
44
45 /*=====================================================================*/
46 /* Logical Peripheral Interrupt IDs                                    */
47 /*=====================================================================*/
48
49 #define INTERRUPT_ID_TIMER               (INTERNAL_ISR_TABLE_OFFSET + 0)
50 #define INTERRUPT_ID_SPI                 (INTERNAL_ISR_TABLE_OFFSET + 1)
51 #define INTERRUPT_ID_UART                (INTERNAL_ISR_TABLE_OFFSET + 2)
52 #define INTERRUPT_ID_DG                  (INTERNAL_ISR_TABLE_OFFSET + 4)
53 #define INTERRUPT_ID_ADSL                (INTERNAL_ISR_TABLE_OFFSET + 5)
54 #define INTERRUPT_ID_ATM                 (INTERNAL_ISR_TABLE_OFFSET + 6)
55 #define INTERRUPT_ID_USBS                (INTERNAL_ISR_TABLE_OFFSET + 7)
56 #define INTERRUPT_ID_EMAC1               (INTERNAL_ISR_TABLE_OFFSET + 8)
57 #define INTERRUPT_ID_EPHY                (INTERNAL_ISR_TABLE_OFFSET + 9)
58 #define INTERRUPT_ID_SDRAM               (INTERNAL_ISR_TABLE_OFFSET + 10)
59 #define INTERRUPT_ID_USB_CNTL_RX_DMA     (INTERNAL_ISR_TABLE_OFFSET + 11)
60 #define INTERRUPT_ID_USB_CNTL_TX_DMA     (INTERNAL_ISR_TABLE_OFFSET + 12)
61 #define INTERRUPT_ID_USB_BULK_RX_DMA     (INTERNAL_ISR_TABLE_OFFSET + 13)
62 #define INTERRUPT_ID_USB_BULK_TX_DMA     (INTERNAL_ISR_TABLE_OFFSET + 14)
63 #define INTERRUPT_ID_EMAC1_RX_DMA        (INTERNAL_ISR_TABLE_OFFSET + 15)
64 #define INTERRUPT_ID_EMAC1_TX_DMA        (INTERNAL_ISR_TABLE_OFFSET + 16)
65 #define INTERRUPT_ID_SDIO                (INTERNAL_ISR_TABLE_OFFSET + 17)
66 #define INTERRUPT_ID_ACLC                (INTERNAL_ISR_TABLE_OFFSET + 18)
67
68 #ifdef __cplusplus
69     }
70 #endif                    
71
72 #endif  /* __BCM6338_H */
73