[SPARC64]: Niagara optimized memcpy() and copy_{to,from}_user().
[usb.git] / include / asm-mips / sibyte / bcm1480_int.h
blob42d4cf00efd366dc78312819b2e95326f3517402
1 /* *********************************************************************
2 * BCM1280/BCM1480 Board Support Package
4 * Interrupt Mapper definitions File: bcm1480_int.h
6 * This module contains constants for manipulating the
7 * BCM1255/BCM1280/BCM1455/BCM1480's interrupt mapper and
8 * definitions for the interrupt sources.
10 * BCM1480 specification level: 1X55_1X80-UM100-D4 (11/24/03)
12 *********************************************************************
14 * Copyright 2000,2001,2002,2003
15 * Broadcom Corporation. All rights reserved.
17 * This program is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU General Public License as
19 * published by the Free Software Foundation; either version 2 of
20 * the License, or (at your option) any later version.
22 * This program is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
27 * You should have received a copy of the GNU General Public License
28 * along with this program; if not, write to the Free Software
29 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
30 * MA 02111-1307 USA
31 ********************************************************************* */
34 #ifndef _BCM1480_INT_H
35 #define _BCM1480_INT_H
37 #include "sb1250_defs.h"
39 /* *********************************************************************
40 * Interrupt Mapper Constants
41 ********************************************************************* */
44 * The interrupt mapper deals with 128-bit logical registers that are
45 * implemented as pairs of 64-bit registers, with the "low" 64 bits in
46 * a register that has an address 0x1000 higher(!) than the
47 * corresponding "high" register.
49 * For appropriate registers, bit 0 of the "high" register is a
50 * cascade bit that summarizes (as a bit-OR) the 64 bits of the "low"
51 * register.
55 * This entire file uses _BCM1480_ in all the symbols because it is
56 * entirely BCM1480 specific.
60 * Interrupt sources (Table 22)
63 #define K_BCM1480_INT_SOURCES 128
65 #define _BCM1480_INT_HIGH(k) (k)
66 #define _BCM1480_INT_LOW(k) ((k)+64)
68 #define K_BCM1480_INT_ADDR_TRAP _BCM1480_INT_HIGH(1)
69 #define K_BCM1480_INT_GPIO_0 _BCM1480_INT_HIGH(4)
70 #define K_BCM1480_INT_GPIO_1 _BCM1480_INT_HIGH(5)
71 #define K_BCM1480_INT_GPIO_2 _BCM1480_INT_HIGH(6)
72 #define K_BCM1480_INT_GPIO_3 _BCM1480_INT_HIGH(7)
73 #define K_BCM1480_INT_PCI_INTA _BCM1480_INT_HIGH(8)
74 #define K_BCM1480_INT_PCI_INTB _BCM1480_INT_HIGH(9)
75 #define K_BCM1480_INT_PCI_INTC _BCM1480_INT_HIGH(10)
76 #define K_BCM1480_INT_PCI_INTD _BCM1480_INT_HIGH(11)
77 #define K_BCM1480_INT_CYCLE_CP0 _BCM1480_INT_HIGH(12)
78 #define K_BCM1480_INT_CYCLE_CP1 _BCM1480_INT_HIGH(13)
79 #define K_BCM1480_INT_CYCLE_CP2 _BCM1480_INT_HIGH(14)
80 #define K_BCM1480_INT_CYCLE_CP3 _BCM1480_INT_HIGH(15)
81 #define K_BCM1480_INT_TIMER_0 _BCM1480_INT_HIGH(20)
82 #define K_BCM1480_INT_TIMER_1 _BCM1480_INT_HIGH(21)
83 #define K_BCM1480_INT_TIMER_2 _BCM1480_INT_HIGH(22)
84 #define K_BCM1480_INT_TIMER_3 _BCM1480_INT_HIGH(23)
85 #define K_BCM1480_INT_DM_CH_0 _BCM1480_INT_HIGH(28)
86 #define K_BCM1480_INT_DM_CH_1 _BCM1480_INT_HIGH(29)
87 #define K_BCM1480_INT_DM_CH_2 _BCM1480_INT_HIGH(30)
88 #define K_BCM1480_INT_DM_CH_3 _BCM1480_INT_HIGH(31)
89 #define K_BCM1480_INT_MAC_0 _BCM1480_INT_HIGH(36)
90 #define K_BCM1480_INT_MAC_0_CH1 _BCM1480_INT_HIGH(37)
91 #define K_BCM1480_INT_MAC_1 _BCM1480_INT_HIGH(38)
92 #define K_BCM1480_INT_MAC_1_CH1 _BCM1480_INT_HIGH(39)
93 #define K_BCM1480_INT_MAC_2 _BCM1480_INT_HIGH(40)
94 #define K_BCM1480_INT_MAC_2_CH1 _BCM1480_INT_HIGH(41)
95 #define K_BCM1480_INT_MAC_3 _BCM1480_INT_HIGH(42)
96 #define K_BCM1480_INT_MAC_3_CH1 _BCM1480_INT_HIGH(43)
97 #define K_BCM1480_INT_PMI_LOW _BCM1480_INT_HIGH(52)
98 #define K_BCM1480_INT_PMI_HIGH _BCM1480_INT_HIGH(53)
99 #define K_BCM1480_INT_PMO_LOW _BCM1480_INT_HIGH(54)
100 #define K_BCM1480_INT_PMO_HIGH _BCM1480_INT_HIGH(55)
101 #define K_BCM1480_INT_MBOX_0_0 _BCM1480_INT_HIGH(56)
102 #define K_BCM1480_INT_MBOX_0_1 _BCM1480_INT_HIGH(57)
103 #define K_BCM1480_INT_MBOX_0_2 _BCM1480_INT_HIGH(58)
104 #define K_BCM1480_INT_MBOX_0_3 _BCM1480_INT_HIGH(59)
105 #define K_BCM1480_INT_MBOX_1_0 _BCM1480_INT_HIGH(60)
106 #define K_BCM1480_INT_MBOX_1_1 _BCM1480_INT_HIGH(61)
107 #define K_BCM1480_INT_MBOX_1_2 _BCM1480_INT_HIGH(62)
108 #define K_BCM1480_INT_MBOX_1_3 _BCM1480_INT_HIGH(63)
110 #define K_BCM1480_INT_BAD_ECC _BCM1480_INT_LOW(1)
111 #define K_BCM1480_INT_COR_ECC _BCM1480_INT_LOW(2)
112 #define K_BCM1480_INT_IO_BUS _BCM1480_INT_LOW(3)
113 #define K_BCM1480_INT_PERF_CNT _BCM1480_INT_LOW(4)
114 #define K_BCM1480_INT_SW_PERF_CNT _BCM1480_INT_LOW(5)
115 #define K_BCM1480_INT_TRACE_FREEZE _BCM1480_INT_LOW(6)
116 #define K_BCM1480_INT_SW_TRACE_FREEZE _BCM1480_INT_LOW(7)
117 #define K_BCM1480_INT_WATCHDOG_TIMER_0 _BCM1480_INT_LOW(8)
118 #define K_BCM1480_INT_WATCHDOG_TIMER_1 _BCM1480_INT_LOW(9)
119 #define K_BCM1480_INT_WATCHDOG_TIMER_2 _BCM1480_INT_LOW(10)
120 #define K_BCM1480_INT_WATCHDOG_TIMER_3 _BCM1480_INT_LOW(11)
121 #define K_BCM1480_INT_PCI_ERROR _BCM1480_INT_LOW(16)
122 #define K_BCM1480_INT_PCI_RESET _BCM1480_INT_LOW(17)
123 #define K_BCM1480_INT_NODE_CONTROLLER _BCM1480_INT_LOW(18)
124 #define K_BCM1480_INT_HOST_BRIDGE _BCM1480_INT_LOW(19)
125 #define K_BCM1480_INT_PORT_0_FATAL _BCM1480_INT_LOW(20)
126 #define K_BCM1480_INT_PORT_0_NONFATAL _BCM1480_INT_LOW(21)
127 #define K_BCM1480_INT_PORT_1_FATAL _BCM1480_INT_LOW(22)
128 #define K_BCM1480_INT_PORT_1_NONFATAL _BCM1480_INT_LOW(23)
129 #define K_BCM1480_INT_PORT_2_FATAL _BCM1480_INT_LOW(24)
130 #define K_BCM1480_INT_PORT_2_NONFATAL _BCM1480_INT_LOW(25)
131 #define K_BCM1480_INT_LDT_SMI _BCM1480_INT_LOW(32)
132 #define K_BCM1480_INT_LDT_NMI _BCM1480_INT_LOW(33)
133 #define K_BCM1480_INT_LDT_INIT _BCM1480_INT_LOW(34)
134 #define K_BCM1480_INT_LDT_STARTUP _BCM1480_INT_LOW(35)
135 #define K_BCM1480_INT_LDT_EXT _BCM1480_INT_LOW(36)
136 #define K_BCM1480_INT_SMB_0 _BCM1480_INT_LOW(40)
137 #define K_BCM1480_INT_SMB_1 _BCM1480_INT_LOW(41)
138 #define K_BCM1480_INT_PCMCIA _BCM1480_INT_LOW(42)
139 #define K_BCM1480_INT_UART_0 _BCM1480_INT_LOW(44)
140 #define K_BCM1480_INT_UART_1 _BCM1480_INT_LOW(45)
141 #define K_BCM1480_INT_UART_2 _BCM1480_INT_LOW(46)
142 #define K_BCM1480_INT_UART_3 _BCM1480_INT_LOW(47)
143 #define K_BCM1480_INT_GPIO_4 _BCM1480_INT_LOW(52)
144 #define K_BCM1480_INT_GPIO_5 _BCM1480_INT_LOW(53)
145 #define K_BCM1480_INT_GPIO_6 _BCM1480_INT_LOW(54)
146 #define K_BCM1480_INT_GPIO_7 _BCM1480_INT_LOW(55)
147 #define K_BCM1480_INT_GPIO_8 _BCM1480_INT_LOW(56)
148 #define K_BCM1480_INT_GPIO_9 _BCM1480_INT_LOW(57)
149 #define K_BCM1480_INT_GPIO_10 _BCM1480_INT_LOW(58)
150 #define K_BCM1480_INT_GPIO_11 _BCM1480_INT_LOW(59)
151 #define K_BCM1480_INT_GPIO_12 _BCM1480_INT_LOW(60)
152 #define K_BCM1480_INT_GPIO_13 _BCM1480_INT_LOW(61)
153 #define K_BCM1480_INT_GPIO_14 _BCM1480_INT_LOW(62)
154 #define K_BCM1480_INT_GPIO_15 _BCM1480_INT_LOW(63)
157 * Mask values for each interrupt
160 #define _BCM1480_INT_MASK1(n) _SB_MAKEMASK1(((n) & 0x3F))
161 #define _BCM1480_INT_OFFSET(n) (((n) & 0x40) << 6)
163 #define M_BCM1480_INT_CASCADE _BCM1480_INT_MASK1(_BCM1480_INT_HIGH(0))
165 #define M_BCM1480_INT_ADDR_TRAP _BCM1480_INT_MASK1(K_BCM1480_INT_ADDR_TRAP)
166 #define M_BCM1480_INT_GPIO_0 _BCM1480_INT_MASK1(K_BCM1480_INT_GPIO_0)
167 #define M_BCM1480_INT_GPIO_1 _BCM1480_INT_MASK1(K_BCM1480_INT_GPIO_1)
168 #define M_BCM1480_INT_GPIO_2 _BCM1480_INT_MASK1(K_BCM1480_INT_GPIO_2)
169 #define M_BCM1480_INT_GPIO_3 _BCM1480_INT_MASK1(K_BCM1480_INT_GPIO_3)
170 #define M_BCM1480_INT_PCI_INTA _BCM1480_INT_MASK1(K_BCM1480_INT_PCI_INTA)
171 #define M_BCM1480_INT_PCI_INTB _BCM1480_INT_MASK1(K_BCM1480_INT_PCI_INTB)
172 #define M_BCM1480_INT_PCI_INTC _BCM1480_INT_MASK1(K_BCM1480_INT_PCI_INTC)
173 #define M_BCM1480_INT_PCI_INTD _BCM1480_INT_MASK1(K_BCM1480_INT_PCI_INTD)
174 #define M_BCM1480_INT_CYCLE_CP0 _BCM1480_INT_MASK1(K_BCM1480_INT_CYCLE_CP0)
175 #define M_BCM1480_INT_CYCLE_CP1 _BCM1480_INT_MASK1(K_BCM1480_INT_CYCLE_CP1)
176 #define M_BCM1480_INT_CYCLE_CP2 _BCM1480_INT_MASK1(K_BCM1480_INT_CYCLE_CP2)
177 #define M_BCM1480_INT_CYCLE_CP3 _BCM1480_INT_MASK1(K_BCM1480_INT_CYCLE_CP3)
178 #define M_BCM1480_INT_TIMER_0 _BCM1480_INT_MASK1(K_BCM1480_INT_TIMER_0)
179 #define M_BCM1480_INT_TIMER_1 _BCM1480_INT_MASK1(K_BCM1480_INT_TIMER_1)
180 #define M_BCM1480_INT_TIMER_2 _BCM1480_INT_MASK1(K_BCM1480_INT_TIMER_2)
181 #define M_BCM1480_INT_TIMER_3 _BCM1480_INT_MASK1(K_BCM1480_INT_TIMER_3)
182 #define M_BCM1480_INT_DM_CH_0 _BCM1480_INT_MASK1(K_BCM1480_INT_DM_CH_0)
183 #define M_BCM1480_INT_DM_CH_1 _BCM1480_INT_MASK1(K_BCM1480_INT_DM_CH_1)
184 #define M_BCM1480_INT_DM_CH_2 _BCM1480_INT_MASK1(K_BCM1480_INT_DM_CH_2)
185 #define M_BCM1480_INT_DM_CH_3 _BCM1480_INT_MASK1(K_BCM1480_INT_DM_CH_3)
186 #define M_BCM1480_INT_MAC_0 _BCM1480_INT_MASK1(K_BCM1480_INT_MAC_0)
187 #define M_BCM1480_INT_MAC_0_CH1 _BCM1480_INT_MASK1(K_BCM1480_INT_MAC_0_CH1)
188 #define M_BCM1480_INT_MAC_1 _BCM1480_INT_MASK1(K_BCM1480_INT_MAC_1)
189 #define M_BCM1480_INT_MAC_1_CH1 _BCM1480_INT_MASK1(K_BCM1480_INT_MAC_1_CH1)
190 #define M_BCM1480_INT_MAC_2 _BCM1480_INT_MASK1(K_BCM1480_INT_MAC_2)
191 #define M_BCM1480_INT_MAC_2_CH1 _BCM1480_INT_MASK1(K_BCM1480_INT_MAC_2_CH1)
192 #define M_BCM1480_INT_MAC_3 _BCM1480_INT_MASK1(K_BCM1480_INT_MAC_3)
193 #define M_BCM1480_INT_MAC_3_CH1 _BCM1480_INT_MASK1(K_BCM1480_INT_MAC_3_CH1)
194 #define M_BCM1480_INT_PMI_LOW _BCM1480_INT_MASK1(K_BCM1480_INT_PMI_LOW)
195 #define M_BCM1480_INT_PMI_HIGH _BCM1480_INT_MASK1(K_BCM1480_INT_PMI_HIGH)
196 #define M_BCM1480_INT_PMO_LOW _BCM1480_INT_MASK1(K_BCM1480_INT_PMO_LOW)
197 #define M_BCM1480_INT_PMO_HIGH _BCM1480_INT_MASK1(K_BCM1480_INT_PMO_HIGH)
198 #define M_BCM1480_INT_MBOX_0_0 _BCM1480_INT_MASK1(K_BCM1480_INT_MBOX_0_0)
199 #define M_BCM1480_INT_MBOX_0_1 _BCM1480_INT_MASK1(K_BCM1480_INT_MBOX_0_1)
200 #define M_BCM1480_INT_MBOX_0_2 _BCM1480_INT_MASK1(K_BCM1480_INT_MBOX_0_2)
201 #define M_BCM1480_INT_MBOX_0_3 _BCM1480_INT_MASK1(K_BCM1480_INT_MBOX_0_3)
202 #define M_BCM1480_INT_MBOX_1_0 _BCM1480_INT_MASK1(K_BCM1480_INT_MBOX_1_0)
203 #define M_BCM1480_INT_MBOX_1_1 _BCM1480_INT_MASK1(K_BCM1480_INT_MBOX_1_1)
204 #define M_BCM1480_INT_MBOX_1_2 _BCM1480_INT_MASK1(K_BCM1480_INT_MBOX_1_2)
205 #define M_BCM1480_INT_MBOX_1_3 _BCM1480_INT_MASK1(K_BCM1480_INT_MBOX_1_3)
206 #define M_BCM1480_INT_BAD_ECC _BCM1480_INT_MASK1(K_BCM1480_INT_BAD_ECC)
207 #define M_BCM1480_INT_COR_ECC _BCM1480_INT_MASK1(K_BCM1480_INT_COR_ECC)
208 #define M_BCM1480_INT_IO_BUS _BCM1480_INT_MASK1(K_BCM1480_INT_IO_BUS)
209 #define M_BCM1480_INT_PERF_CNT _BCM1480_INT_MASK1(K_BCM1480_INT_PERF_CNT)
210 #define M_BCM1480_INT_SW_PERF_CNT _BCM1480_INT_MASK1(K_BCM1480_INT_SW_PERF_CNT)
211 #define M_BCM1480_INT_TRACE_FREEZE _BCM1480_INT_MASK1(K_BCM1480_INT_TRACE_FREEZE)
212 #define M_BCM1480_INT_SW_TRACE_FREEZE _BCM1480_INT_MASK1(K_BCM1480_INT_SW_TRACE_FREEZE)
213 #define M_BCM1480_INT_WATCHDOG_TIMER_0 _BCM1480_INT_MASK1(K_BCM1480_INT_WATCHDOG_TIMER_0)
214 #define M_BCM1480_INT_WATCHDOG_TIMER_1 _BCM1480_INT_MASK1(K_BCM1480_INT_WATCHDOG_TIMER_1)
215 #define M_BCM1480_INT_WATCHDOG_TIMER_2 _BCM1480_INT_MASK1(K_BCM1480_INT_WATCHDOG_TIMER_2)
216 #define M_BCM1480_INT_WATCHDOG_TIMER_3 _BCM1480_INT_MASK1(K_BCM1480_INT_WATCHDOG_TIMER_3)
217 #define M_BCM1480_INT_PCI_ERROR _BCM1480_INT_MASK1(K_BCM1480_INT_PCI_ERROR)
218 #define M_BCM1480_INT_PCI_RESET _BCM1480_INT_MASK1(K_BCM1480_INT_PCI_RESET)
219 #define M_BCM1480_INT_NODE_CONTROLLER _BCM1480_INT_MASK1(K_BCM1480_INT_NODE_CONTROLLER)
220 #define M_BCM1480_INT_HOST_BRIDGE _BCM1480_INT_MASK1(K_BCM1480_INT_HOST_BRIDGE)
221 #define M_BCM1480_INT_PORT_0_FATAL _BCM1480_INT_MASK1(K_BCM1480_INT_PORT_0_FATAL)
222 #define M_BCM1480_INT_PORT_0_NONFATAL _BCM1480_INT_MASK1(K_BCM1480_INT_PORT_0_NONFATAL)
223 #define M_BCM1480_INT_PORT_1_FATAL _BCM1480_INT_MASK1(K_BCM1480_INT_PORT_1_FATAL)
224 #define M_BCM1480_INT_PORT_1_NONFATAL _BCM1480_INT_MASK1(K_BCM1480_INT_PORT_1_NONFATAL)
225 #define M_BCM1480_INT_PORT_2_FATAL _BCM1480_INT_MASK1(K_BCM1480_INT_PORT_2_FATAL)
226 #define M_BCM1480_INT_PORT_2_NONFATAL _BCM1480_INT_MASK1(K_BCM1480_INT_PORT_2_NONFATAL)
227 #define M_BCM1480_INT_LDT_SMI _BCM1480_INT_MASK1(K_BCM1480_INT_LDT_SMI)
228 #define M_BCM1480_INT_LDT_NMI _BCM1480_INT_MASK1(K_BCM1480_INT_LDT_NMI)
229 #define M_BCM1480_INT_LDT_INIT _BCM1480_INT_MASK1(K_BCM1480_INT_LDT_INIT)
230 #define M_BCM1480_INT_LDT_STARTUP _BCM1480_INT_MASK1(K_BCM1480_INT_LDT_STARTUP)
231 #define M_BCM1480_INT_LDT_EXT _BCM1480_INT_MASK1(K_BCM1480_INT_LDT_EXT)
232 #define M_BCM1480_INT_SMB_0 _BCM1480_INT_MASK1(K_BCM1480_INT_SMB_0)
233 #define M_BCM1480_INT_SMB_1 _BCM1480_INT_MASK1(K_BCM1480_INT_SMB_1)
234 #define M_BCM1480_INT_PCMCIA _BCM1480_INT_MASK1(K_BCM1480_INT_PCMCIA)
235 #define M_BCM1480_INT_UART_0 _BCM1480_INT_MASK1(K_BCM1480_INT_UART_0)
236 #define M_BCM1480_INT_UART_1 _BCM1480_INT_MASK1(K_BCM1480_INT_UART_1)
237 #define M_BCM1480_INT_UART_2 _BCM1480_INT_MASK1(K_BCM1480_INT_UART_2)
238 #define M_BCM1480_INT_UART_3 _BCM1480_INT_MASK1(K_BCM1480_INT_UART_3)
239 #define M_BCM1480_INT_GPIO_4 _BCM1480_INT_MASK1(K_BCM1480_INT_GPIO_4)
240 #define M_BCM1480_INT_GPIO_5 _BCM1480_INT_MASK1(K_BCM1480_INT_GPIO_5)
241 #define M_BCM1480_INT_GPIO_6 _BCM1480_INT_MASK1(K_BCM1480_INT_GPIO_6)
242 #define M_BCM1480_INT_GPIO_7 _BCM1480_INT_MASK1(K_BCM1480_INT_GPIO_7)
243 #define M_BCM1480_INT_GPIO_8 _BCM1480_INT_MASK1(K_BCM1480_INT_GPIO_8)
244 #define M_BCM1480_INT_GPIO_9 _BCM1480_INT_MASK1(K_BCM1480_INT_GPIO_9)
245 #define M_BCM1480_INT_GPIO_10 _BCM1480_INT_MASK1(K_BCM1480_INT_GPIO_10)
246 #define M_BCM1480_INT_GPIO_11 _BCM1480_INT_MASK1(K_BCM1480_INT_GPIO_11)
247 #define M_BCM1480_INT_GPIO_12 _BCM1480_INT_MASK1(K_BCM1480_INT_GPIO_12)
248 #define M_BCM1480_INT_GPIO_13 _BCM1480_INT_MASK1(K_BCM1480_INT_GPIO_13)
249 #define M_BCM1480_INT_GPIO_14 _BCM1480_INT_MASK1(K_BCM1480_INT_GPIO_14)
250 #define M_BCM1480_INT_GPIO_15 _BCM1480_INT_MASK1(K_BCM1480_INT_GPIO_15)
253 * Interrupt mappings (Table 18)
256 #define K_BCM1480_INT_MAP_I0 0 /* interrupt pins on processor */
257 #define K_BCM1480_INT_MAP_I1 1
258 #define K_BCM1480_INT_MAP_I2 2
259 #define K_BCM1480_INT_MAP_I3 3
260 #define K_BCM1480_INT_MAP_I4 4
261 #define K_BCM1480_INT_MAP_I5 5
262 #define K_BCM1480_INT_MAP_NMI 6 /* nonmaskable */
263 #define K_BCM1480_INT_MAP_DINT 7 /* debug interrupt */
266 * Interrupt LDT Set Register (Table 19)
269 #define S_BCM1480_INT_HT_INTMSG 0
270 #define M_BCM1480_INT_HT_INTMSG _SB_MAKEMASK(3,S_BCM1480_INT_HT_INTMSG)
271 #define V_BCM1480_INT_HT_INTMSG(x) _SB_MAKEVALUE(x,S_BCM1480_INT_HT_INTMSG)
272 #define G_BCM1480_INT_HT_INTMSG(x) _SB_GETVALUE(x,S_BCM1480_INT_HT_INTMSG,M_BCM1480_INT_HT_INTMSG)
274 #define K_BCM1480_INT_HT_INTMSG_FIXED 0
275 #define K_BCM1480_INT_HT_INTMSG_ARBITRATED 1
276 #define K_BCM1480_INT_HT_INTMSG_SMI 2
277 #define K_BCM1480_INT_HT_INTMSG_NMI 3
278 #define K_BCM1480_INT_HT_INTMSG_INIT 4
279 #define K_BCM1480_INT_HT_INTMSG_STARTUP 5
280 #define K_BCM1480_INT_HT_INTMSG_EXTINT 6
281 #define K_BCM1480_INT_HT_INTMSG_RESERVED 7
283 #define M_BCM1480_INT_HT_TRIGGERMODE _SB_MAKEMASK1(3)
284 #define V_BCM1480_INT_HT_EDGETRIGGER 0
285 #define V_BCM1480_INT_HT_LEVELTRIGGER M_BCM1480_INT_HT_TRIGGERMODE
287 #define M_BCM1480_INT_HT_DESTMODE _SB_MAKEMASK1(4)
288 #define V_BCM1480_INT_HT_PHYSICALDEST 0
289 #define V_BCM1480_INT_HT_LOGICALDEST M_BCM1480_INT_HT_DESTMODE
291 #define S_BCM1480_INT_HT_INTDEST 5
292 #define M_BCM1480_INT_HT_INTDEST _SB_MAKEMASK(8,S_BCM1480_INT_HT_INTDEST)
293 #define V_BCM1480_INT_HT_INTDEST(x) _SB_MAKEVALUE(x,S_BCM1480_INT_HT_INTDEST)
294 #define G_BCM1480_INT_HT_INTDEST(x) _SB_GETVALUE(x,S_BCM1480_INT_HT_INTDEST,M_BCM1480_INT_HT_INTDEST)
296 #define S_BCM1480_INT_HT_VECTOR 13
297 #define M_BCM1480_INT_HT_VECTOR _SB_MAKEMASK(8,S_BCM1480_INT_HT_VECTOR)
298 #define V_BCM1480_INT_HT_VECTOR(x) _SB_MAKEVALUE(x,S_BCM1480_INT_HT_VECTOR)
299 #define G_BCM1480_INT_HT_VECTOR(x) _SB_GETVALUE(x,S_BCM1480_INT_HT_VECTOR,M_BCM1480_INT_HT_VECTOR)
302 * Vector prefix (Table 4-7)
305 #define M_BCM1480_HTVECT_RAISE_INTLDT_HIGH 0x00
306 #define M_BCM1480_HTVECT_RAISE_MBOX_0 0x40
307 #define M_BCM1480_HTVECT_RAISE_INTLDT_LO 0x80
308 #define M_BCM1480_HTVECT_RAISE_MBOX_1 0xC0
310 #endif /* _BCM1480_INT_H */