1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _SB1250_INT_H 20 #define _SB1250_INT_H 21 #include "sb1250_defs.h" 22 #define K_INT_SOURCES 64 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #define K_INT_WATCHDOG_TIMER_0 0 25 #define K_INT_WATCHDOG_TIMER_1 1 26 #define K_INT_TIMER_0 2 27 #define K_INT_TIMER_1 3 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 #define K_INT_TIMER_2 4 30 #define K_INT_TIMER_3 5 31 #define K_INT_SMB_0 6 32 #define K_INT_SMB_1 7 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 #define K_INT_UART_0 8 35 #define K_INT_UART_1 9 36 #define K_INT_SER_0 10 37 #define K_INT_SER_1 11 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 #define K_INT_PCMCIA 12 40 #define K_INT_ADDR_TRAP 13 41 #define K_INT_PERF_CNT 14 42 #define K_INT_TRACE_FREEZE 15 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 #define K_INT_BAD_ECC 16 45 #define K_INT_COR_ECC 17 46 #define K_INT_IO_BUS 18 47 #define K_INT_MAC_0 19 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 #define K_INT_MAC_1 20 50 #define K_INT_MAC_2 21 51 #define K_INT_DM_CH_0 22 52 #define K_INT_DM_CH_1 23 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 #define K_INT_DM_CH_2 24 55 #define K_INT_DM_CH_3 25 56 #define K_INT_MBOX_0 26 57 #define K_INT_MBOX_1 27 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 #define K_INT_MBOX_2 28 60 #define K_INT_MBOX_3 29 61 #if ??? || ??? 62 #define K_INT_CYCLE_CP0_INT 30 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 #define K_INT_CYCLE_CP1_INT 31 65 #endif 66 #define K_INT_GPIO_0 32 67 #define K_INT_GPIO_1 33 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 #define K_INT_GPIO_2 34 70 #define K_INT_GPIO_3 35 71 #define K_INT_GPIO_4 36 72 #define K_INT_GPIO_5 37 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 #define K_INT_GPIO_6 38 75 #define K_INT_GPIO_7 39 76 #define K_INT_GPIO_8 40 77 #define K_INT_GPIO_9 41 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 #define K_INT_GPIO_10 42 80 #define K_INT_GPIO_11 43 81 #define K_INT_GPIO_12 44 82 #define K_INT_GPIO_13 45 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 #define K_INT_GPIO_14 46 85 #define K_INT_GPIO_15 47 86 #define K_INT_LDT_FATAL 48 87 #define K_INT_LDT_NONFATAL 49 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 #define K_INT_LDT_SMI 50 90 #define K_INT_LDT_NMI 51 91 #define K_INT_LDT_INIT 52 92 #define K_INT_LDT_STARTUP 53 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 #define K_INT_LDT_EXT 54 95 #define K_INT_PCI_ERROR 55 96 #define K_INT_PCI_INTA 56 97 #define K_INT_PCI_INTB 57 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 #define K_INT_PCI_INTC 58 100 #define K_INT_PCI_INTD 59 101 #define K_INT_SPARE_2 60 102 #if ??? || ??? 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 #define K_INT_MAC_0_CH1 61 105 #define K_INT_MAC_1_CH1 62 106 #define K_INT_MAC_2_CH1 63 107 #endif 108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 #define M_INT_WATCHDOG_TIMER_0 _SB_MAKEMASK1(K_INT_WATCHDOG_TIMER_0) 110 #define M_INT_WATCHDOG_TIMER_1 _SB_MAKEMASK1(K_INT_WATCHDOG_TIMER_1) 111 #define M_INT_TIMER_0 _SB_MAKEMASK1(K_INT_TIMER_0) 112 #define M_INT_TIMER_1 _SB_MAKEMASK1(K_INT_TIMER_1) 113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 #define M_INT_TIMER_2 _SB_MAKEMASK1(K_INT_TIMER_2) 115 #define M_INT_TIMER_3 _SB_MAKEMASK1(K_INT_TIMER_3) 116 #define M_INT_SMB_0 _SB_MAKEMASK1(K_INT_SMB_0) 117 #define M_INT_SMB_1 _SB_MAKEMASK1(K_INT_SMB_1) 118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119 #define M_INT_UART_0 _SB_MAKEMASK1(K_INT_UART_0) 120 #define M_INT_UART_1 _SB_MAKEMASK1(K_INT_UART_1) 121 #define M_INT_SER_0 _SB_MAKEMASK1(K_INT_SER_0) 122 #define M_INT_SER_1 _SB_MAKEMASK1(K_INT_SER_1) 123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124 #define M_INT_PCMCIA _SB_MAKEMASK1(K_INT_PCMCIA) 125 #define M_INT_ADDR_TRAP _SB_MAKEMASK1(K_INT_ADDR_TRAP) 126 #define M_INT_PERF_CNT _SB_MAKEMASK1(K_INT_PERF_CNT) 127 #define M_INT_TRACE_FREEZE _SB_MAKEMASK1(K_INT_TRACE_FREEZE) 128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 129 #define M_INT_BAD_ECC _SB_MAKEMASK1(K_INT_BAD_ECC) 130 #define M_INT_COR_ECC _SB_MAKEMASK1(K_INT_COR_ECC) 131 #define M_INT_IO_BUS _SB_MAKEMASK1(K_INT_IO_BUS) 132 #define M_INT_MAC_0 _SB_MAKEMASK1(K_INT_MAC_0) 133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134 #define M_INT_MAC_1 _SB_MAKEMASK1(K_INT_MAC_1) 135 #define M_INT_MAC_2 _SB_MAKEMASK1(K_INT_MAC_2) 136 #define M_INT_DM_CH_0 _SB_MAKEMASK1(K_INT_DM_CH_0) 137 #define M_INT_DM_CH_1 _SB_MAKEMASK1(K_INT_DM_CH_1) 138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 139 #define M_INT_DM_CH_2 _SB_MAKEMASK1(K_INT_DM_CH_2) 140 #define M_INT_DM_CH_3 _SB_MAKEMASK1(K_INT_DM_CH_3) 141 #define M_INT_MBOX_0 _SB_MAKEMASK1(K_INT_MBOX_0) 142 #define M_INT_MBOX_1 _SB_MAKEMASK1(K_INT_MBOX_1) 143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 144 #define M_INT_MBOX_2 _SB_MAKEMASK1(K_INT_MBOX_2) 145 #define M_INT_MBOX_3 _SB_MAKEMASK1(K_INT_MBOX_3) 146 #define M_INT_MBOX_ALL _SB_MAKEMASK(4, K_INT_MBOX_0) 147 #if ??? || ??? 148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 149 #define M_INT_CYCLE_CP0_INT _SB_MAKEMASK1(K_INT_CYCLE_CP0_INT) 150 #define M_INT_CYCLE_CP1_INT _SB_MAKEMASK1(K_INT_CYCLE_CP1_INT) 151 #endif 152 #define M_INT_GPIO_0 _SB_MAKEMASK1(K_INT_GPIO_0) 153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 154 #define M_INT_GPIO_1 _SB_MAKEMASK1(K_INT_GPIO_1) 155 #define M_INT_GPIO_2 _SB_MAKEMASK1(K_INT_GPIO_2) 156 #define M_INT_GPIO_3 _SB_MAKEMASK1(K_INT_GPIO_3) 157 #define M_INT_GPIO_4 _SB_MAKEMASK1(K_INT_GPIO_4) 158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 159 #define M_INT_GPIO_5 _SB_MAKEMASK1(K_INT_GPIO_5) 160 #define M_INT_GPIO_6 _SB_MAKEMASK1(K_INT_GPIO_6) 161 #define M_INT_GPIO_7 _SB_MAKEMASK1(K_INT_GPIO_7) 162 #define M_INT_GPIO_8 _SB_MAKEMASK1(K_INT_GPIO_8) 163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 164 #define M_INT_GPIO_9 _SB_MAKEMASK1(K_INT_GPIO_9) 165 #define M_INT_GPIO_10 _SB_MAKEMASK1(K_INT_GPIO_10) 166 #define M_INT_GPIO_11 _SB_MAKEMASK1(K_INT_GPIO_11) 167 #define M_INT_GPIO_12 _SB_MAKEMASK1(K_INT_GPIO_12) 168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 169 #define M_INT_GPIO_13 _SB_MAKEMASK1(K_INT_GPIO_13) 170 #define M_INT_GPIO_14 _SB_MAKEMASK1(K_INT_GPIO_14) 171 #define M_INT_GPIO_15 _SB_MAKEMASK1(K_INT_GPIO_15) 172 #define M_INT_LDT_FATAL _SB_MAKEMASK1(K_INT_LDT_FATAL) 173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 174 #define M_INT_LDT_NONFATAL _SB_MAKEMASK1(K_INT_LDT_NONFATAL) 175 #define M_INT_LDT_SMI _SB_MAKEMASK1(K_INT_LDT_SMI) 176 #define M_INT_LDT_NMI _SB_MAKEMASK1(K_INT_LDT_NMI) 177 #define M_INT_LDT_INIT _SB_MAKEMASK1(K_INT_LDT_INIT) 178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 179 #define M_INT_LDT_STARTUP _SB_MAKEMASK1(K_INT_LDT_STARTUP) 180 #define M_INT_LDT_EXT _SB_MAKEMASK1(K_INT_LDT_EXT) 181 #define M_INT_PCI_ERROR _SB_MAKEMASK1(K_INT_PCI_ERROR) 182 #define M_INT_PCI_INTA _SB_MAKEMASK1(K_INT_PCI_INTA) 183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 184 #define M_INT_PCI_INTB _SB_MAKEMASK1(K_INT_PCI_INTB) 185 #define M_INT_PCI_INTC _SB_MAKEMASK1(K_INT_PCI_INTC) 186 #define M_INT_PCI_INTD _SB_MAKEMASK1(K_INT_PCI_INTD) 187 #define M_INT_SPARE_2 _SB_MAKEMASK1(K_INT_SPARE_2) 188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 189 #if ??? || ??? 190 #define M_INT_MAC_0_CH1 _SB_MAKEMASK1(K_INT_MAC_0_CH1) 191 #define M_INT_MAC_1_CH1 _SB_MAKEMASK1(K_INT_MAC_1_CH1) 192 #define M_INT_MAC_2_CH1 _SB_MAKEMASK1(K_INT_MAC_2_CH1) 193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 194 #endif 195 #define K_INT_MAP_I0 0 196 #define K_INT_MAP_I1 1 197 #define K_INT_MAP_I2 2 198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 199 #define K_INT_MAP_I3 3 200 #define K_INT_MAP_I4 4 201 #define K_INT_MAP_I5 5 202 #define K_INT_MAP_NMI 6 203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 204 #define K_INT_MAP_DINT 7 205 #define S_INT_LDT_INTMSG 0 206 #define M_INT_LDT_INTMSG _SB_MAKEMASK(3, S_INT_LDT_INTMSG) 207 #define V_INT_LDT_INTMSG(x) _SB_MAKEVALUE(x, S_INT_LDT_INTMSG) 208 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 209 #define G_INT_LDT_INTMSG(x) _SB_GETVALUE(x, S_INT_LDT_INTMSG, M_INT_LDT_INTMSG) 210 #define K_INT_LDT_INTMSG_FIXED 0 211 #define K_INT_LDT_INTMSG_ARBITRATED 1 212 #define K_INT_LDT_INTMSG_SMI 2 213 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 214 #define K_INT_LDT_INTMSG_NMI 3 215 #define K_INT_LDT_INTMSG_INIT 4 216 #define K_INT_LDT_INTMSG_STARTUP 5 217 #define K_INT_LDT_INTMSG_EXTINT 6 218 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 219 #define K_INT_LDT_INTMSG_RESERVED 7 220 #define M_INT_LDT_EDGETRIGGER 0 221 #define M_INT_LDT_LEVELTRIGGER _SB_MAKEMASK1(3) 222 #define M_INT_LDT_PHYSICALDEST 0 223 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 224 #define M_INT_LDT_LOGICALDEST _SB_MAKEMASK1(4) 225 #define S_INT_LDT_INTDEST 5 226 #define M_INT_LDT_INTDEST _SB_MAKEMASK(10, S_INT_LDT_INTDEST) 227 #define V_INT_LDT_INTDEST(x) _SB_MAKEVALUE(x, S_INT_LDT_INTDEST) 228 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 229 #define G_INT_LDT_INTDEST(x) _SB_GETVALUE(x, S_INT_LDT_INTDEST, M_INT_LDT_INTDEST) 230 #define S_INT_LDT_VECTOR 13 231 #define M_INT_LDT_VECTOR _SB_MAKEMASK(8, S_INT_LDT_VECTOR) 232 #define V_INT_LDT_VECTOR(x) _SB_MAKEVALUE(x, S_INT_LDT_VECTOR) 233 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 234 #define G_INT_LDT_VECTOR(x) _SB_GETVALUE(x, S_INT_LDT_VECTOR, M_INT_LDT_VECTOR) 235 #define M_LDTVECT_RAISEINT 0x00 236 #define M_LDTVECT_RAISEMBOX 0x40 237 #endif 238 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 239