diff options
Diffstat (limited to 'include/asm-sparc')
-rw-r--r-- | include/asm-sparc/asi.h | 153 |
1 files changed, 152 insertions, 1 deletions
diff --git a/include/asm-sparc/asi.h b/include/asm-sparc/asi.h index 158f9b00d43f..74703c5ef985 100644 --- a/include/asm-sparc/asi.h +++ b/include/asm-sparc/asi.h | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | /* asi.h: Address Space Identifier values for the sparc. | 4 | /* asi.h: Address Space Identifier values for the sparc. |
5 | * | 5 | * |
6 | * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) | 6 | * Copyright (C) 1995,1996 David S. Miller (davem@caip.rutgers.edu) |
7 | * | 7 | * |
8 | * Pioneer work for sun4m: Paul Hatchman (paul@sfe.com.au) | 8 | * Pioneer work for sun4m: Paul Hatchman (paul@sfe.com.au) |
9 | * Joint edition for sun4c+sun4m: Pete A. Zaitcev <zaitcev@ipmce.su> | 9 | * Joint edition for sun4c+sun4m: Pete A. Zaitcev <zaitcev@ipmce.su> |
@@ -108,4 +108,155 @@ | |||
108 | 108 | ||
109 | #define ASI_M_ACTION 0x4c /* Breakpoint Action Register (GNU/Viking) */ | 109 | #define ASI_M_ACTION 0x4c /* Breakpoint Action Register (GNU/Viking) */ |
110 | 110 | ||
111 | /* V9 Architecture mandary ASIs. */ | ||
112 | #define ASI_N 0x04 /* Nucleus */ | ||
113 | #define ASI_NL 0x0c /* Nucleus, little endian */ | ||
114 | #define ASI_AIUP 0x10 /* Primary, user */ | ||
115 | #define ASI_AIUS 0x11 /* Secondary, user */ | ||
116 | #define ASI_AIUPL 0x18 /* Primary, user, little endian */ | ||
117 | #define ASI_AIUSL 0x19 /* Secondary, user, little endian */ | ||
118 | #define ASI_P 0x80 /* Primary, implicit */ | ||
119 | #define ASI_S 0x81 /* Secondary, implicit */ | ||
120 | #define ASI_PNF 0x82 /* Primary, no fault */ | ||
121 | #define ASI_SNF 0x83 /* Secondary, no fault */ | ||
122 | #define ASI_PL 0x88 /* Primary, implicit, l-endian */ | ||
123 | #define ASI_SL 0x89 /* Secondary, implicit, l-endian */ | ||
124 | #define ASI_PNFL 0x8a /* Primary, no fault, l-endian */ | ||
125 | #define ASI_SNFL 0x8b /* Secondary, no fault, l-endian */ | ||
126 | |||
127 | /* SpitFire and later extended ASIs. The "(III)" marker designates | ||
128 | * UltraSparc-III and later specific ASIs. The "(CMT)" marker designates | ||
129 | * Chip Multi Threading specific ASIs. "(NG)" designates Niagara specific | ||
130 | * ASIs, "(4V)" designates SUN4V specific ASIs. | ||
131 | */ | ||
132 | #define ASI_PHYS_USE_EC 0x14 /* PADDR, E-cachable */ | ||
133 | #define ASI_PHYS_BYPASS_EC_E 0x15 /* PADDR, E-bit */ | ||
134 | #define ASI_BLK_AIUP_4V 0x16 /* (4V) Prim, user, block ld/st */ | ||
135 | #define ASI_BLK_AIUS_4V 0x17 /* (4V) Sec, user, block ld/st */ | ||
136 | #define ASI_PHYS_USE_EC_L 0x1c /* PADDR, E-cachable, little endian*/ | ||
137 | #define ASI_PHYS_BYPASS_EC_E_L 0x1d /* PADDR, E-bit, little endian */ | ||
138 | #define ASI_BLK_AIUP_L_4V 0x1e /* (4V) Prim, user, block, l-endian*/ | ||
139 | #define ASI_BLK_AIUS_L_4V 0x1f /* (4V) Sec, user, block, l-endian */ | ||
140 | #define ASI_SCRATCHPAD 0x20 /* (4V) Scratch Pad Registers */ | ||
141 | #define ASI_MMU 0x21 /* (4V) MMU Context Registers */ | ||
142 | #define ASI_BLK_INIT_QUAD_LDD_AIUS 0x23 /* (NG) init-store, twin load, | ||
143 | * secondary, user | ||
144 | */ | ||
145 | #define ASI_NUCLEUS_QUAD_LDD 0x24 /* Cachable, qword load */ | ||
146 | #define ASI_QUEUE 0x25 /* (4V) Interrupt Queue Registers */ | ||
147 | #define ASI_QUAD_LDD_PHYS_4V 0x26 /* (4V) Physical, qword load */ | ||
148 | #define ASI_NUCLEUS_QUAD_LDD_L 0x2c /* Cachable, qword load, l-endian */ | ||
149 | #define ASI_QUAD_LDD_PHYS_L_4V 0x2e /* (4V) Phys, qword load, l-endian */ | ||
150 | #define ASI_PCACHE_DATA_STATUS 0x30 /* (III) PCache data stat RAM diag */ | ||
151 | #define ASI_PCACHE_DATA 0x31 /* (III) PCache data RAM diag */ | ||
152 | #define ASI_PCACHE_TAG 0x32 /* (III) PCache tag RAM diag */ | ||
153 | #define ASI_PCACHE_SNOOP_TAG 0x33 /* (III) PCache snoop tag RAM diag */ | ||
154 | #define ASI_QUAD_LDD_PHYS 0x34 /* (III+) PADDR, qword load */ | ||
155 | #define ASI_WCACHE_VALID_BITS 0x38 /* (III) WCache Valid Bits diag */ | ||
156 | #define ASI_WCACHE_DATA 0x39 /* (III) WCache data RAM diag */ | ||
157 | #define ASI_WCACHE_TAG 0x3a /* (III) WCache tag RAM diag */ | ||
158 | #define ASI_WCACHE_SNOOP_TAG 0x3b /* (III) WCache snoop tag RAM diag */ | ||
159 | #define ASI_QUAD_LDD_PHYS_L 0x3c /* (III+) PADDR, qw-load, l-endian */ | ||
160 | #define ASI_SRAM_FAST_INIT 0x40 /* (III+) Fast SRAM init */ | ||
161 | #define ASI_CORE_AVAILABLE 0x41 /* (CMT) LP Available */ | ||
162 | #define ASI_CORE_ENABLE_STAT 0x41 /* (CMT) LP Enable Status */ | ||
163 | #define ASI_CORE_ENABLE 0x41 /* (CMT) LP Enable RW */ | ||
164 | #define ASI_XIR_STEERING 0x41 /* (CMT) XIR Steering RW */ | ||
165 | #define ASI_CORE_RUNNING_RW 0x41 /* (CMT) LP Running RW */ | ||
166 | #define ASI_CORE_RUNNING_W1S 0x41 /* (CMT) LP Running Write-One Set */ | ||
167 | #define ASI_CORE_RUNNING_W1C 0x41 /* (CMT) LP Running Write-One Clr */ | ||
168 | #define ASI_CORE_RUNNING_STAT 0x41 /* (CMT) LP Running Status */ | ||
169 | #define ASI_CMT_ERROR_STEERING 0x41 /* (CMT) Error Steering RW */ | ||
170 | #define ASI_DCACHE_INVALIDATE 0x42 /* (III) DCache Invalidate diag */ | ||
171 | #define ASI_DCACHE_UTAG 0x43 /* (III) DCache uTag diag */ | ||
172 | #define ASI_DCACHE_SNOOP_TAG 0x44 /* (III) DCache snoop tag RAM diag */ | ||
173 | #define ASI_LSU_CONTROL 0x45 /* Load-store control unit */ | ||
174 | #define ASI_DCU_CONTROL_REG 0x45 /* (III) DCache Unit Control reg */ | ||
175 | #define ASI_DCACHE_DATA 0x46 /* DCache data-ram diag access */ | ||
176 | #define ASI_DCACHE_TAG 0x47 /* Dcache tag/valid ram diag access*/ | ||
177 | #define ASI_INTR_DISPATCH_STAT 0x48 /* IRQ vector dispatch status */ | ||
178 | #define ASI_INTR_RECEIVE 0x49 /* IRQ vector receive status */ | ||
179 | #define ASI_UPA_CONFIG 0x4a /* UPA config space */ | ||
180 | #define ASI_JBUS_CONFIG 0x4a /* (IIIi) JBUS Config Register */ | ||
181 | #define ASI_SAFARI_CONFIG 0x4a /* (III) Safari Config Register */ | ||
182 | #define ASI_SAFARI_ADDRESS 0x4a /* (III) Safari Address Register */ | ||
183 | #define ASI_ESTATE_ERROR_EN 0x4b /* E-cache error enable space */ | ||
184 | #define ASI_AFSR 0x4c /* Async fault status register */ | ||
185 | #define ASI_AFAR 0x4d /* Async fault address register */ | ||
186 | #define ASI_EC_TAG_DATA 0x4e /* E-cache tag/valid ram diag acc */ | ||
187 | #define ASI_IMMU 0x50 /* Insn-MMU main register space */ | ||
188 | #define ASI_IMMU_TSB_8KB_PTR 0x51 /* Insn-MMU 8KB TSB pointer reg */ | ||
189 | #define ASI_IMMU_TSB_64KB_PTR 0x52 /* Insn-MMU 64KB TSB pointer reg */ | ||
190 | #define ASI_ITLB_DATA_IN 0x54 /* Insn-MMU TLB data in reg */ | ||
191 | #define ASI_ITLB_DATA_ACCESS 0x55 /* Insn-MMU TLB data access reg */ | ||
192 | #define ASI_ITLB_TAG_READ 0x56 /* Insn-MMU TLB tag read reg */ | ||
193 | #define ASI_IMMU_DEMAP 0x57 /* Insn-MMU TLB demap */ | ||
194 | #define ASI_DMMU 0x58 /* Data-MMU main register space */ | ||
195 | #define ASI_DMMU_TSB_8KB_PTR 0x59 /* Data-MMU 8KB TSB pointer reg */ | ||
196 | #define ASI_DMMU_TSB_64KB_PTR 0x5a /* Data-MMU 16KB TSB pointer reg */ | ||
197 | #define ASI_DMMU_TSB_DIRECT_PTR 0x5b /* Data-MMU TSB direct pointer reg */ | ||
198 | #define ASI_DTLB_DATA_IN 0x5c /* Data-MMU TLB data in reg */ | ||
199 | #define ASI_DTLB_DATA_ACCESS 0x5d /* Data-MMU TLB data access reg */ | ||
200 | #define ASI_DTLB_TAG_READ 0x5e /* Data-MMU TLB tag read reg */ | ||
201 | #define ASI_DMMU_DEMAP 0x5f /* Data-MMU TLB demap */ | ||
202 | #define ASI_IIU_INST_TRAP 0x60 /* (III) Instruction Breakpoint */ | ||
203 | #define ASI_INTR_ID 0x63 /* (CMT) Interrupt ID register */ | ||
204 | #define ASI_CORE_ID 0x63 /* (CMT) LP ID register */ | ||
205 | #define ASI_CESR_ID 0x63 /* (CMT) CESR ID register */ | ||
206 | #define ASI_IC_INSTR 0x66 /* Insn cache instrucion ram diag */ | ||
207 | #define ASI_IC_TAG 0x67 /* Insn cache tag/valid ram diag */ | ||
208 | #define ASI_IC_STAG 0x68 /* (III) Insn cache snoop tag ram */ | ||
209 | #define ASI_IC_PRE_DECODE 0x6e /* Insn cache pre-decode ram diag */ | ||
210 | #define ASI_IC_NEXT_FIELD 0x6f /* Insn cache next-field ram diag */ | ||
211 | #define ASI_BRPRED_ARRAY 0x6f /* (III) Branch Prediction RAM diag*/ | ||
212 | #define ASI_BLK_AIUP 0x70 /* Primary, user, block load/store */ | ||
213 | #define ASI_BLK_AIUS 0x71 /* Secondary, user, block ld/st */ | ||
214 | #define ASI_MCU_CTRL_REG 0x72 /* (III) Memory controller regs */ | ||
215 | #define ASI_EC_DATA 0x74 /* (III) E-cache data staging reg */ | ||
216 | #define ASI_EC_CTRL 0x75 /* (III) E-cache control reg */ | ||
217 | #define ASI_EC_W 0x76 /* E-cache diag write access */ | ||
218 | #define ASI_UDB_ERROR_W 0x77 /* External UDB error regs W */ | ||
219 | #define ASI_UDB_CONTROL_W 0x77 /* External UDB control regs W */ | ||
220 | #define ASI_INTR_W 0x77 /* IRQ vector dispatch write */ | ||
221 | #define ASI_INTR_DATAN_W 0x77 /* (III) Out irq vector data reg N */ | ||
222 | #define ASI_INTR_DISPATCH_W 0x77 /* (III) Interrupt vector dispatch */ | ||
223 | #define ASI_BLK_AIUPL 0x78 /* Primary, user, little, blk ld/st*/ | ||
224 | #define ASI_BLK_AIUSL 0x79 /* Secondary, user, little, blk ld/st*/ | ||
225 | #define ASI_EC_R 0x7e /* E-cache diag read access */ | ||
226 | #define ASI_UDBH_ERROR_R 0x7f /* External UDB error regs rd hi */ | ||
227 | #define ASI_UDBL_ERROR_R 0x7f /* External UDB error regs rd low */ | ||
228 | #define ASI_UDBH_CONTROL_R 0x7f /* External UDB control regs rd hi */ | ||
229 | #define ASI_UDBL_CONTROL_R 0x7f /* External UDB control regs rd low*/ | ||
230 | #define ASI_INTR_R 0x7f /* IRQ vector dispatch read */ | ||
231 | #define ASI_INTR_DATAN_R 0x7f /* (III) In irq vector data reg N */ | ||
232 | #define ASI_PST8_P 0xc0 /* Primary, 8 8-bit, partial */ | ||
233 | #define ASI_PST8_S 0xc1 /* Secondary, 8 8-bit, partial */ | ||
234 | #define ASI_PST16_P 0xc2 /* Primary, 4 16-bit, partial */ | ||
235 | #define ASI_PST16_S 0xc3 /* Secondary, 4 16-bit, partial */ | ||
236 | #define ASI_PST32_P 0xc4 /* Primary, 2 32-bit, partial */ | ||
237 | #define ASI_PST32_S 0xc5 /* Secondary, 2 32-bit, partial */ | ||
238 | #define ASI_PST8_PL 0xc8 /* Primary, 8 8-bit, partial, L */ | ||
239 | #define ASI_PST8_SL 0xc9 /* Secondary, 8 8-bit, partial, L */ | ||
240 | #define ASI_PST16_PL 0xca /* Primary, 4 16-bit, partial, L */ | ||
241 | #define ASI_PST16_SL 0xcb /* Secondary, 4 16-bit, partial, L */ | ||
242 | #define ASI_PST32_PL 0xcc /* Primary, 2 32-bit, partial, L */ | ||
243 | #define ASI_PST32_SL 0xcd /* Secondary, 2 32-bit, partial, L */ | ||
244 | #define ASI_FL8_P 0xd0 /* Primary, 1 8-bit, fpu ld/st */ | ||
245 | #define ASI_FL8_S 0xd1 /* Secondary, 1 8-bit, fpu ld/st */ | ||
246 | #define ASI_FL16_P 0xd2 /* Primary, 1 16-bit, fpu ld/st */ | ||
247 | #define ASI_FL16_S 0xd3 /* Secondary, 1 16-bit, fpu ld/st */ | ||
248 | #define ASI_FL8_PL 0xd8 /* Primary, 1 8-bit, fpu ld/st, L */ | ||
249 | #define ASI_FL8_SL 0xd9 /* Secondary, 1 8-bit, fpu ld/st, L*/ | ||
250 | #define ASI_FL16_PL 0xda /* Primary, 1 16-bit, fpu ld/st, L */ | ||
251 | #define ASI_FL16_SL 0xdb /* Secondary, 1 16-bit, fpu ld/st,L*/ | ||
252 | #define ASI_BLK_COMMIT_P 0xe0 /* Primary, blk store commit */ | ||
253 | #define ASI_BLK_COMMIT_S 0xe1 /* Secondary, blk store commit */ | ||
254 | #define ASI_BLK_INIT_QUAD_LDD_P 0xe2 /* (NG) init-store, twin load, | ||
255 | * primary, implicit | ||
256 | */ | ||
257 | #define ASI_BLK_P 0xf0 /* Primary, blk ld/st */ | ||
258 | #define ASI_BLK_S 0xf1 /* Secondary, blk ld/st */ | ||
259 | #define ASI_BLK_PL 0xf8 /* Primary, blk ld/st, little */ | ||
260 | #define ASI_BLK_SL 0xf9 /* Secondary, blk ld/st, little */ | ||
261 | |||
111 | #endif /* _SPARC_ASI_H */ | 262 | #endif /* _SPARC_ASI_H */ |