NetBurner 3.5.6
PDF Version
intcdefs.h
1/*NB_REVISION*/
2
3/*NB_COPYRIGHT*/
4
5#ifndef _INTC_H_
6#define _INTC_H_
7
8void SetIntc(int intcnum, long func, int vector, int level);
9
10#define SETUP_IRQ1_EDGEPORT1_ISR(f, l) SetIntc(0, (long)f, 1, l)
11#define SETUP_IRQ2_EDGEPORT2_ISR(f, l) SetIntc(0, (long)f, 2, l)
12#define SETUP_IRQ3_EDGEPORT3_ISR(f, l) SetIntc(0, (long)f, 3, l)
13#define SETUP_IRQ4_EDGEPORT4_ISR(f, l) SetIntc(0, (long)f, 4, l)
14#define SETUP_IRQ5_EDGEPORT5_ISR(f, l) SetIntc(0, (long)f, 5, l)
15#define SETUP_IRQ6_EDGEPORT6_ISR(f, l) SetIntc(0, (long)f, 6, l)
16#define SETUP_IRQ7_EDGEPORT7_ISR(f, l) SetIntc(0, (long)f, 7, l)
17
18#define SETUP_DMA0_ISR(f, l) SetIntc(0, (long)f, 8, l)
19#define SETUP_DMA1_ISR(f, l) SetIntc(0, (long)f, 9, l)
20#define SETUP_DMA2_ISR(f, l) SetIntc(0, (long)f, 10, l)
21#define SETUP_DMA3_ISR(f, l) SetIntc(0, (long)f, 11, l)
22#define SETUP_DMA4_ISR(f, l) SetIntc(0, (long)f, 12, l)
23#define SETUP_DMA5_ISR(f, l) SetIntc(0, (long)f, 13, l)
24#define SETUP_DMA6_ISR(f, l) SetIntc(0, (long)f, 14, l)
25#define SETUP_DMA7_ISR(f, l) SetIntc(0, (long)f, 15, l)
26#define SETUP_DMA8_ISR(f, l) SetIntc(0, (long)f, 16, l)
27#define SETUP_DMA9_ISR(f, l) SetIntc(0, (long)f, 17, l)
28#define SETUP_DMA10_ISR(f, l) SetIntc(0, (long)f, 18, l)
29#define SETUP_DMA11_ISR(f, l) SetIntc(0, (long)f, 19, l)
30#define SETUP_DMA12_ISR(f, l) SetIntc(0, (long)f, 20, l)
31#define SETUP_DMA13_ISR(f, l) SetIntc(0, (long)f, 21, l)
32#define SETUP_DMA14_ISR(f, l) SetIntc(0, (long)f, 22, l)
33#define SETUP_DMA15_ISR(f, l) SetIntc(0, (long)f, 23, l)
34#define SETUP_DMA_ERR_ISR(f, l) SetIntc(0, (long)f, 24, l)
35
36#define SETUP_CORE_WD_ISR(f, l) SetIntc(0, (long)f, 25, l)
37
38#define SETUP_UART0_ISR(f, l) SetIntc(0, (long)f, 26, l)
39#define SETUP_UART1_ISR(f, l) SetIntc(0, (long)f, 27, l)
40#define SETUP_UART2_ISR(f, l) SetIntc(0, (long)f, 28, l)
41#define SETUP_UART3_ISR(f, l) SetIntc(0, (long)f, 29, l)
42
43#define SETUP_I2C0_ISR(f, l) SetIntc(0, (long)f, 30, l)
44
45#define SETUP_DSPI0_ISR(f, l) SetIntc(0, (long)f, 31, l)
46
47#define SETUP_DMATIMER0_ISR(f, l) SetIntc(0, (long)f, 32, l)
48#define SETUP_DMATIMER1_ISR(f, l) SetIntc(0, (long)f, 33, l)
49#define SETUP_DMATIMER2_ISR(f, l) SetIntc(0, (long)f, 34, l)
50#define SETUP_DMATIMER3_ISR(f, l) SetIntc(0, (long)f, 35, l)
51
52#define SETUP_ENET0_TXF_ISR(f, l) SetIntc(0, (long)f, 36, l)
53#define SETUP_ENET0_TXB_ISR(f, l) SetIntc(0, (long)f, 37, l)
54#define SETUP_ENET0_UN_ISR(f, l) SetIntc(0, (long)f, 38, l)
55#define SETUP_ENET0_RL_ISR(f, l) SetIntc(0, (long)f, 39, l)
56#define SETUP_ENET0_RXF_ISR(f, l) SetIntc(0, (long)f, 40, l)
57#define SETUP_ENET0_RXB_ISR(f, l) SetIntc(0, (long)f, 41, l)
58#define SETUP_ENET0_MII_ISR(f, l) SetIntc(0, (long)f, 42, l)
59#define SETUP_ENET0_LC_ISR(f, l) SetIntc(0, (long)f, 43, l)
60// 44 is unused
61#define SETUP_ENET0_GRA_ISR(f, l) SetIntc(0, (long)f, 45, l)
62#define SETUP_ENET0_EBERR_ISR(f, l) SetIntc(0, (long)f, 46, l)
63#define SETUP_ENET0_BABT_ISR(f, l) SetIntc(0, (long)f, 47, l)
64#define SETUP_ENET0_BABR_ISR(f, l) SetIntc(0, (long)f, 48, l)
65
66#define SETUP_ENET1_TXF_ISR(f, l) SetIntc(0, (long)f, 49, l)
67#define SETUP_ENET1_TXB_ISR(f, l) SetIntc(0, (long)f, 50, l)
68#define SETUP_ENET1_UN_ISR(f, l) SetIntc(0, (long)f, 51, l)
69#define SETUP_ENET1_RL_ISR(f, l) SetIntc(0, (long)f, 52, l)
70#define SETUP_ENET1_RXF_ISR(f, l) SetIntc(0, (long)f, 53, l)
71#define SETUP_ENET1_RXB_ISR(f, l) SetIntc(0, (long)f, 54, l)
72#define SETUP_ENET1_MII_ISR(f, l) SetIntc(0, (long)f, 55, l)
73#define SETUP_ENET1_LC_ISR(f, l) SetIntc(0, (long)f, 56, l)
74// 57 is unused
75#define SETUP_ENET1_GRA_ISR(f, l) SetIntc(0, (long)f, 58, l)
76#define SETUP_ENET1_EBERR_ISR(f, l) SetIntc(0, (long)f, 59, l)
77#define SETUP_ENET1_BABT_ISR(f, l) SetIntc(0, (long)f, 60, l)
78#define SETUP_ENET1_BABR_ISR(f, l) SetIntc(0, (long)f, 61, l)
79
80#define SETUP_SCM_SCMIR_ISR(f, l) SetIntc(0, (long)f, 62, l)
81#define SETUP_OW_ISR_ISR(f, l) SetIntc(0, (long)f, 63, l)
82
83#define SETUP_CAN0_IFLAG_ISR(f, l) SetIntc(1, (long)f, 0, l)
84#define SETUP_CAN0_ERRSTAT_BOF_ISR(f, l) SetIntc(1, (long)f, 1, l)
85// Unused
86#define SETUP_CAN0_ERRSTAT_TXRXWARN_ISR(f, l) SetIntc(1, (long)f, 3, l)
87
88#define SETUP_CAN1_IFLAG_ISR(f, l) SetIntc(1, (long)f, 4, l)
89#define SETUP_CAN1_ERRSTAT_BOF_ISR(f, l) SetIntc(1, (long)f, 5, l)
90// Unused
91#define SETUP_CAN1_ERRSTAT_TXRXWARN_ISR(f, l) SetIntc(1, (long)f, 7, l)
92
93#define SETUP_DMA16_ISR(f, l) SetIntc(1, (long)f, 8, l)
94#define SETUP_DMA17_ISR(f, l) SetIntc(1, (long)f, 9, l)
95#define SETUP_DMA18_ISR(f, l) SetIntc(1, (long)f, 10, l)
96#define SETUP_DMA19_ISR(f, l) SetIntc(1, (long)f, 11, l)
97#define SETUP_DMA20_ISR(f, l) SetIntc(1, (long)f, 12, l)
98#define SETUP_DMA21_ISR(f, l) SetIntc(1, (long)f, 13, l)
99#define SETUP_DMA22_ISR(f, l) SetIntc(1, (long)f, 14, l)
100#define SETUP_DMA23_ISR(f, l) SetIntc(1, (long)f, 15, l)
101#define SETUP_DMA24_ISR(f, l) SetIntc(1, (long)f, 16, l)
102#define SETUP_DMA25_ISR(f, l) SetIntc(1, (long)f, 17, l)
103#define SETUP_DMA26_ISR(f, l) SetIntc(1, (long)f, 18, l)
104#define SETUP_DMA27_ISR(f, l) SetIntc(1, (long)f, 19, l)
105#define SETUP_DMA28_ISR(f, l) SetIntc(1, (long)f, 20, l)
106#define SETUP_DMA29_ISR(f, l) SetIntc(1, (long)f, 21, l)
107#define SETUP_DMA30_ISR(f, l) SetIntc(1, (long)f, 22, l)
108#define SETUP_DMA31_ISR(f, l) SetIntc(1, (long)f, 23, l)
109#define SETUP_DMA32_ISR(f, l) SetIntc(1, (long)f, 24, l)
110#define SETUP_DMA33_ISR(f, l) SetIntc(1, (long)f, 25, l)
111#define SETUP_DMA34_ISR(f, l) SetIntc(1, (long)f, 26, l)
112#define SETUP_DMA35_ISR(f, l) SetIntc(1, (long)f, 27, l)
113#define SETUP_DMA36_ISR(f, l) SetIntc(1, (long)f, 28, l)
114#define SETUP_DMA37_ISR(f, l) SetIntc(1, (long)f, 29, l)
115#define SETUP_DMA38_ISR(f, l) SetIntc(1, (long)f, 30, l)
116#define SETUP_DMA39_ISR(f, l) SetIntc(1, (long)f, 31, l)
117#define SETUP_DMA40_ISR(f, l) SetIntc(1, (long)f, 32, l)
118#define SETUP_DMA41_ISR(f, l) SetIntc(1, (long)f, 33, l)
119#define SETUP_DMA42_ISR(f, l) SetIntc(1, (long)f, 34, l)
120#define SETUP_DMA43_ISR(f, l) SetIntc(1, (long)f, 35, l)
121#define SETUP_DMA44_ISR(f, l) SetIntc(1, (long)f, 36, l)
122#define SETUP_DMA45_ISR(f, l) SetIntc(1, (long)f, 37, l)
123#define SETUP_DMA46_ISR(f, l) SetIntc(1, (long)f, 38, l)
124#define SETUP_DMA47_ISR(f, l) SetIntc(1, (long)f, 39, l)
125#define SETUP_DMA48_ISR(f, l) SetIntc(1, (long)f, 40, l)
126#define SETUP_DMA49_ISR(f, l) SetIntc(1, (long)f, 41, l)
127#define SETUP_DMA50_ISR(f, l) SetIntc(1, (long)f, 42, l)
128#define SETUP_DMA51_ISR(f, l) SetIntc(1, (long)f, 43, l)
129#define SETUP_DMA52_ISR(f, l) SetIntc(1, (long)f, 44, l)
130#define SETUP_DMA53_ISR(f, l) SetIntc(1, (long)f, 45, l)
131#define SETUP_DMA54_ISR(f, l) SetIntc(1, (long)f, 46, l)
132#define SETUP_DMA55_ISR(f, l) SetIntc(1, (long)f, 47, l)
133
134#define SETUP_UART4_ISR(f, l) SetIntc(1, (long)f, 48, l)
135#define SETUP_UART5_ISR(f, l) SetIntc(1, (long)f, 49, l)
136#define SETUP_UART6_ISR(f, l) SetIntc(1, (long)f, 50, l)
137#define SETUP_UART7_ISR(f, l) SetIntc(1, (long)f, 51, l)
138#define SETUP_UART8_ISR(f, l) SetIntc(1, (long)f, 52, l)
139#define SETUP_UART9_ISR(f, l) SetIntc(1, (long)f, 53, l)
140
141#define SETUP_DSPI1_ISR(f, l) SetIntc(1, (long)f, 54, l)
142#define SETUP_DSPI2_ISR(f, l) SetIntc(1, (long)f, 55, l)
143#define SETUP_DSPI3_ISR(f, l) SetIntc(1, (long)f, 56, l)
144
145#define SETUP_I2C1_ISR(f, l) SetIntc(1, (long)f, 57, l)
146#define SETUP_I2C2_ISR(f, l) SetIntc(1, (long)f, 58, l)
147#define SETUP_I2C3_ISR(f, l) SetIntc(1, (long)f, 59, l)
148#define SETUP_I2C4_ISR(f, l) SetIntc(1, (long)f, 60, l)
149#define SETUP_I2C5_ISR(f, l) SetIntc(1, (long)f, 61, l)
150// 62 and 63 unused
151
152#define SETUP_DMA56_63_ISR(f, l) SetIntc(2, (long)f, 0, l)
153
154#define SETUP_PWM_SM0SR_CFM_ISR(f, l) SetIntc(2, (long)f, 1, l)
155#define SETUP_PWM_SM1SR_CFM_ISR(f, l) SetIntc(2, (long)f, 2, l)
156#define SETUP_PWM_SM2SR_CFM_ISR(f, l) SetIntc(2, (long)f, 3, l)
157#define SETUP_PWM_SM3SR_CFM_ISR(f, l) SetIntc(2, (long)f, 4, l)
158
159#define SETUP_PWM_SM0SR_RF_ISR(f, l) SetIntc(2, (long)f, 5, l)
160#define SETUP_PWM_SM1SR_RF_ISR(f, l) SetIntc(2, (long)f, 6, l)
161#define SETUP_PWM_SM2SR_RF_ISR(f, l) SetIntc(2, (long)f, 7, l)
162#define SETUP_PWM_SM3SR_RF_ISR(f, l) SetIntc(2, (long)f, 8, l)
163
164#define SETUP_PWM_FSIR_ISR(f, l) SetIntc(2, (long)f, 9, l)
165#define SETUP_PWM_SMSR_REF_ISR(f, l) SetIntc(2, (long)f, 10, l)
166
167#define SETUP_PLL_LOCF_ISR(f, l) SetIntc(2, (long)f, 11, l)
168#define SETUP_PLL_LOLF_ISR(f, l) SetIntc(2, (long)f, 12, l)
169
170#define SETUP_PIT0_ISR(f, l) SetIntc(2, (long)f, 13, l)
171#define SETUP_PIT1_ISR(f, l) SetIntc(2, (long)f, 14, l)
172#define SETUP_PIT2_ISR(f, l) SetIntc(2, (long)f, 15, l)
173#define SETUP_PIT3_ISR(f, l) SetIntc(2, (long)f, 16, l)
174
175#define SETUP_USB_OTG_ISR(f, l) SetIntc(2, (long)f, 17, l)
176#define SETUP_USB_HOST_ISR(f, l) SetIntc(2, (long)f, 18, l)
177
178#define SETUP_PWM_SM0SR_CMPF_ISR(f, l) SetIntc(2, (long)f, 19, l)
179#define SETUP_PWM_SM1SR_CMPF_ISR(f, l) SetIntc(2, (long)f, 20, l)
180#define SETUP_PWM_SM2SR_CMPF_ISR(f, l) SetIntc(2, (long)f, 21, l)
181#define SETUP_PWM_SM3SR_CMPF_ISR(f, l) SetIntc(2, (long)f, 22, l)
182
183#define SETUP_SSI0_ISR(f, l) SetIntc(2, (long)f, 23, l)
184#define SETUP_SSI1_ISR(f, l) SetIntc(2, (long)f, 24, l)
185
186#define SETUP_NFC_ISR(f, l) SetIntc(2, (long)f, 25, l)
187
188#define SETUP_RTC_ISR(f, l) SetIntc(2, (long)f, 26, l)
189
190#define SETUP_USB_SR_ISR(f, l) SetIntc(2, (long)f, 27, l)
191
192#define SETUP_RNG_ISR(f, l) SetIntc(2, (long)f, 28, l)
193
194#define SETUP_SIM_TSR_ISR(f, l) SetIntc(2, (long)f, 29, l)
195#define SETUP_SIM_RSR_ISR(f, l) SetIntc(2, (long)f, 30, l)
196
197#define SETUP_SDHC_ISR(f, l) SetIntc(2, (long)f, 31, l)
198
199#define SETUP_ADC_SR_EOSI0_ISR(f, l) SetIntc(2, (long)f, 32, l)
200#define SETUP_ADC_SR_EOSI1_ISR(f, l) SetIntc(2, (long)f, 33, l)
201#define SETUP_ADC_LSR_ISR(f, l) SetIntc(2, (long)f, 34, l)
202// 35 na
203#define SETUP_SDRAM_ISR(f, l) SetIntc(2, (long)f, 36, l)
204// 37 na
205
206#define SETUP_ENET_SW_EBERR_ISR(f, l) SetIntc(2, (long)f, 38, l)
207#define SETUP_ENET_SW_RXB_ISR(f, l) SetIntc(2, (long)f, 39, l)
208#define SETUP_ENET_SW_RXF_ISR(f, l) SetIntc(2, (long)f, 40, l)
209#define SETUP_ENET_SW_TXB_ISR(f, l) SetIntc(2, (long)f, 41, l)
210#define SETUP_ENET_SW_TXF_ISR(f, l) SetIntc(2, (long)f, 42, l)
211#define SETUP_ENET_SW_QM_ISR(f, l) SetIntc(2, (long)f, 43, l)
212#define SETUP_ENET_SW_OD0_ISR(f, l) SetIntc(2, (long)f, 44, l)
213#define SETUP_ENET_SW_OD1_ISR(f, l) SetIntc(2, (long)f, 45, l)
214#define SETUP_ENET_SW_OD2_ISR(f, l) SetIntc(2, (long)f, 46, l)
215#define SETUP_ENET_SW_LRN_ISR(f, l) SetIntc(2, (long)f, 47, l)
216
217#define SETUP_MAC_NET0_EIR_TSAVAIL(f, l) SetIntc(2, (long)f, 48, l)
218#define SETUP_MAC_NET0_EIR_WAKE(f, l) SetIntc(2, (long)f, 49, l)
219#define SETUP_MAC_NET0_EIR_PLR(f, l) SetIntc(2, (long)f, 50, l)
220// 51,52,53,4 na
221#define SETUP_MAC_NET1_EIR_TSAVAIL(f, l) SetIntc(2, (long)f, 55, l)
222#define SETUP_MAC_NET1_EIR_WAKE(f, l) SetIntc(2, (long)f, 56, l)
223#define SETUP_MAC_NET1_EIR_PLR(f, l) SetIntc(2, (long)f, 57, l)
224// 58..63 NA
225
226#endif /* _SIM_H_ */