xref: /openbmc/qemu/target/sparc/asi.h (revision 535ad16c5d668f6185be2f88c6c82bf8e452c45d)
1a8b991b5SMarkus Armbruster #ifndef SPARC_ASI_H
2a8b991b5SMarkus Armbruster #define SPARC_ASI_H
3fcf5ef2aSThomas Huth 
4fcf5ef2aSThomas Huth /* asi.h:  Address Space Identifier values for the sparc.
5fcf5ef2aSThomas Huth  *
6fcf5ef2aSThomas Huth  * Copyright (C) 1995,1996 David S. Miller (davem@caip.rutgers.edu)
7fcf5ef2aSThomas Huth  *
8fcf5ef2aSThomas Huth  * Pioneer work for sun4m: Paul Hatchman (paul@sfe.com.au)
9fcf5ef2aSThomas Huth  * Joint edition for sun4c+sun4m: Pete A. Zaitcev <zaitcev@ipmce.su>
10fcf5ef2aSThomas Huth  */
11fcf5ef2aSThomas Huth 
12fcf5ef2aSThomas Huth /* The first batch are for the sun4c. */
13fcf5ef2aSThomas Huth 
14fcf5ef2aSThomas Huth #define ASI_NULL1           0x00
15fcf5ef2aSThomas Huth #define ASI_NULL2           0x01
16fcf5ef2aSThomas Huth 
17fcf5ef2aSThomas Huth /* sun4c and sun4 control registers and mmu/vac ops */
18fcf5ef2aSThomas Huth #define ASI_CONTROL         0x02
19fcf5ef2aSThomas Huth #define ASI_SEGMAP          0x03
20fcf5ef2aSThomas Huth #define ASI_PTE             0x04
21fcf5ef2aSThomas Huth #define ASI_HWFLUSHSEG      0x05
22fcf5ef2aSThomas Huth #define ASI_HWFLUSHPAGE     0x06
23fcf5ef2aSThomas Huth #define ASI_REGMAP          0x06
24fcf5ef2aSThomas Huth #define ASI_HWFLUSHCONTEXT  0x07
25fcf5ef2aSThomas Huth 
26fcf5ef2aSThomas Huth #define ASI_USERTXT         0x08
27fcf5ef2aSThomas Huth #define ASI_KERNELTXT       0x09
28fcf5ef2aSThomas Huth #define ASI_USERDATA        0x0a
29fcf5ef2aSThomas Huth #define ASI_KERNELDATA      0x0b
30fcf5ef2aSThomas Huth 
31fcf5ef2aSThomas Huth /* VAC Cache flushing on sun4c and sun4 */
32fcf5ef2aSThomas Huth #define ASI_FLUSHSEG        0x0c
33fcf5ef2aSThomas Huth #define ASI_FLUSHPG         0x0d
34fcf5ef2aSThomas Huth #define ASI_FLUSHCTX        0x0e
35fcf5ef2aSThomas Huth 
36fcf5ef2aSThomas Huth /* SPARCstation-5: only 6 bits are decoded. */
37fcf5ef2aSThomas Huth /* wo = Write Only, rw = Read Write;        */
38fcf5ef2aSThomas Huth /* ss = Single Size, as = All Sizes;        */
39fcf5ef2aSThomas Huth #define ASI_M_RES00         0x00   /* Don't touch... */
40fcf5ef2aSThomas Huth #define ASI_M_UNA01         0x01   /* Same here... */
41fcf5ef2aSThomas Huth #define ASI_M_MXCC          0x02   /* Access to TI VIKING MXCC registers */
42fcf5ef2aSThomas Huth #define ASI_M_FLUSH_PROBE   0x03   /* Reference MMU Flush/Probe; rw, ss */
43fcf5ef2aSThomas Huth #define ASI_M_MMUREGS       0x04   /* MMU Registers; rw, ss */
44fcf5ef2aSThomas Huth #define ASI_M_TLBDIAG       0x05   /* MMU TLB only Diagnostics */
45fcf5ef2aSThomas Huth #define ASI_M_DIAGS         0x06   /* Reference MMU Diagnostics */
46fcf5ef2aSThomas Huth #define ASI_M_IODIAG        0x07   /* MMU I/O TLB only Diagnostics */
47fcf5ef2aSThomas Huth #define ASI_M_USERTXT       0x08   /* Same as ASI_USERTXT; rw, as */
48fcf5ef2aSThomas Huth #define ASI_M_KERNELTXT     0x09   /* Same as ASI_KERNELTXT; rw, as */
49fcf5ef2aSThomas Huth #define ASI_M_USERDATA      0x0A   /* Same as ASI_USERDATA; rw, as */
50fcf5ef2aSThomas Huth #define ASI_M_KERNELDATA    0x0B   /* Same as ASI_KERNELDATA; rw, as */
51fcf5ef2aSThomas Huth #define ASI_M_TXTC_TAG      0x0C   /* Instruction Cache Tag; rw, ss */
52fcf5ef2aSThomas Huth #define ASI_M_TXTC_DATA     0x0D   /* Instruction Cache Data; rw, ss */
53fcf5ef2aSThomas Huth #define ASI_M_DATAC_TAG     0x0E   /* Data Cache Tag; rw, ss */
54fcf5ef2aSThomas Huth #define ASI_M_DATAC_DATA    0x0F   /* Data Cache Data; rw, ss */
55fcf5ef2aSThomas Huth 
56fcf5ef2aSThomas Huth /* The following cache flushing ASIs work only with the 'sta'
57fcf5ef2aSThomas Huth  * instruction. Results are unpredictable for 'swap' and 'ldstuba',
58fcf5ef2aSThomas Huth  * so don't do it.
59fcf5ef2aSThomas Huth  */
60fcf5ef2aSThomas Huth 
61fcf5ef2aSThomas Huth /* These ASI flushes affect external caches too. */
62fcf5ef2aSThomas Huth #define ASI_M_FLUSH_PAGE    0x10   /* Flush I&D Cache Line (page); wo, ss */
63fcf5ef2aSThomas Huth #define ASI_M_FLUSH_SEG     0x11   /* Flush I&D Cache Line (seg); wo, ss */
64fcf5ef2aSThomas Huth #define ASI_M_FLUSH_REGION  0x12   /* Flush I&D Cache Line (region); wo, ss */
65fcf5ef2aSThomas Huth #define ASI_M_FLUSH_CTX     0x13   /* Flush I&D Cache Line (context); wo, ss */
66fcf5ef2aSThomas Huth #define ASI_M_FLUSH_USER    0x14   /* Flush I&D Cache Line (user); wo, ss */
67fcf5ef2aSThomas Huth 
68fcf5ef2aSThomas Huth /* Block-copy operations are available only on certain V8 cpus. */
69fcf5ef2aSThomas Huth #define ASI_M_BCOPY         0x17   /* Block copy */
70fcf5ef2aSThomas Huth 
71fcf5ef2aSThomas Huth /* These affect only the ICACHE and are Ross HyperSparc and TurboSparc specific. */
72fcf5ef2aSThomas Huth #define ASI_M_IFLUSH_PAGE   0x18   /* Flush I Cache Line (page); wo, ss */
73fcf5ef2aSThomas Huth #define ASI_M_IFLUSH_SEG    0x19   /* Flush I Cache Line (seg); wo, ss */
74fcf5ef2aSThomas Huth #define ASI_M_IFLUSH_REGION 0x1A   /* Flush I Cache Line (region); wo, ss */
75fcf5ef2aSThomas Huth #define ASI_M_IFLUSH_CTX    0x1B   /* Flush I Cache Line (context); wo, ss */
76fcf5ef2aSThomas Huth #define ASI_M_IFLUSH_USER   0x1C   /* Flush I Cache Line (user); wo, ss */
77fcf5ef2aSThomas Huth 
78fcf5ef2aSThomas Huth /* Block-fill operations are available on certain V8 cpus */
79fcf5ef2aSThomas Huth #define ASI_M_BFILL         0x1F
80fcf5ef2aSThomas Huth 
81fcf5ef2aSThomas Huth /* This allows direct access to main memory, actually 0x20 to 0x2f are
82fcf5ef2aSThomas Huth  * the available ASI's for physical ram pass-through, but I don't have
83fcf5ef2aSThomas Huth  * any idea what the other ones do....
84fcf5ef2aSThomas Huth  */
85fcf5ef2aSThomas Huth 
86fcf5ef2aSThomas Huth #define ASI_M_BYPASS       0x20   /* Reference MMU bypass; rw, as */
87fcf5ef2aSThomas Huth #define ASI_M_FBMEM        0x29   /* Graphics card frame buffer access */
88fcf5ef2aSThomas Huth #define ASI_M_VMEUS        0x2A   /* VME user 16-bit access */
89fcf5ef2aSThomas Huth #define ASI_M_VMEPS        0x2B   /* VME priv 16-bit access */
90fcf5ef2aSThomas Huth #define ASI_M_VMEUT        0x2C   /* VME user 32-bit access */
91fcf5ef2aSThomas Huth #define ASI_M_VMEPT        0x2D   /* VME priv 32-bit access */
92fcf5ef2aSThomas Huth #define ASI_M_SBUS         0x2E   /* Direct SBus access */
93fcf5ef2aSThomas Huth #define ASI_M_CTL          0x2F   /* Control Space (ECC and MXCC are here) */
94fcf5ef2aSThomas Huth 
95fcf5ef2aSThomas Huth 
96fcf5ef2aSThomas Huth /* This is ROSS HyperSparc only. */
97fcf5ef2aSThomas Huth #define ASI_M_FLUSH_IWHOLE 0x31   /* Flush entire ICACHE; wo, ss */
98fcf5ef2aSThomas Huth 
99fcf5ef2aSThomas Huth /* Tsunami/Viking/TurboSparc i/d cache flash clear. */
100fcf5ef2aSThomas Huth #define ASI_M_IC_FLCLEAR   0x36
101fcf5ef2aSThomas Huth #define ASI_M_DC_FLCLEAR   0x37
102fcf5ef2aSThomas Huth 
103fcf5ef2aSThomas Huth #define ASI_M_DCDR         0x39   /* Data Cache Diagnostics Register rw, ss */
104fcf5ef2aSThomas Huth 
105fcf5ef2aSThomas Huth #define ASI_M_VIKING_TMP1  0x40	  /* Emulation temporary 1 on Viking */
106fcf5ef2aSThomas Huth /* only available on SuperSparc I */
107fcf5ef2aSThomas Huth /* #define ASI_M_VIKING_TMP2  0x41 */  /* Emulation temporary 2 on Viking */
108fcf5ef2aSThomas Huth 
109fcf5ef2aSThomas Huth #define ASI_M_ACTION       0x4c   /* Breakpoint Action Register (GNU/Viking) */
110fcf5ef2aSThomas Huth 
111fcf5ef2aSThomas Huth /* LEON ASI */
112fcf5ef2aSThomas Huth #define ASI_LEON_NOCACHE        0x01
113fcf5ef2aSThomas Huth 
114fcf5ef2aSThomas Huth #define ASI_LEON_DCACHE_MISS    0x01
115fcf5ef2aSThomas Huth 
116fcf5ef2aSThomas Huth #define ASI_LEON_CACHEREGS      0x02
117fcf5ef2aSThomas Huth #define ASI_LEON_IFLUSH         0x10
118fcf5ef2aSThomas Huth #define ASI_LEON_DFLUSH         0x11
119fcf5ef2aSThomas Huth 
120fcf5ef2aSThomas Huth #define ASI_LEON_MMUFLUSH       0x18
121fcf5ef2aSThomas Huth #define ASI_LEON_MMUREGS        0x19
122fcf5ef2aSThomas Huth #define ASI_LEON_BYPASS         0x1c
123fcf5ef2aSThomas Huth #define ASI_LEON_FLUSH_PAGE     0x10
124fcf5ef2aSThomas Huth 
125fcf5ef2aSThomas Huth /* V9 Architecture mandary ASIs. */
126fcf5ef2aSThomas Huth #define ASI_N			0x04 /* Nucleus				*/
127fcf5ef2aSThomas Huth #define ASI_NL			0x0c /* Nucleus, little endian		*/
128fcf5ef2aSThomas Huth #define ASI_AIUP		0x10 /* Primary, user			*/
129fcf5ef2aSThomas Huth #define ASI_AIUS		0x11 /* Secondary, user			*/
130fcf5ef2aSThomas Huth #define ASI_AIUPL		0x18 /* Primary, user, little endian	*/
131fcf5ef2aSThomas Huth #define ASI_AIUSL		0x19 /* Secondary, user, little endian	*/
132fcf5ef2aSThomas Huth #define ASI_P			0x80 /* Primary, implicit		*/
133fcf5ef2aSThomas Huth #define ASI_S			0x81 /* Secondary, implicit		*/
134fcf5ef2aSThomas Huth #define ASI_PNF			0x82 /* Primary, no fault		*/
135fcf5ef2aSThomas Huth #define ASI_SNF			0x83 /* Secondary, no fault		*/
136fcf5ef2aSThomas Huth #define ASI_PL			0x88 /* Primary, implicit, l-endian	*/
137fcf5ef2aSThomas Huth #define ASI_SL			0x89 /* Secondary, implicit, l-endian	*/
138fcf5ef2aSThomas Huth #define ASI_PNFL		0x8a /* Primary, no fault, l-endian	*/
139fcf5ef2aSThomas Huth #define ASI_SNFL		0x8b /* Secondary, no fault, l-endian	*/
140fcf5ef2aSThomas Huth 
141fcf5ef2aSThomas Huth /* SpitFire and later extended ASIs.  The "(III)" marker designates
142fcf5ef2aSThomas Huth  * UltraSparc-III and later specific ASIs.  The "(CMT)" marker designates
143fcf5ef2aSThomas Huth  * Chip Multi Threading specific ASIs.  "(NG)" designates Niagara specific
144fcf5ef2aSThomas Huth  * ASIs, "(4V)" designates SUN4V specific ASIs.  "(NG4)" designates SPARC-T4
145fcf5ef2aSThomas Huth  * and later ASIs.
146fcf5ef2aSThomas Huth  */
147*eeb3f592SRichard Henderson #define ASI_MON_AIUP            0x12 /* (VIS4) Primary, user, monitor   */
148*eeb3f592SRichard Henderson #define ASI_MON_AIUS            0x13 /* (VIS4) Secondary, user, monitor */
1498b81968cSMichael Tokarev #define ASI_REAL                0x14 /* Real address, cacheable          */
150690f50c2SManos Pitsidianakis #define ASI_PHYS_USE_EC		0x14 /* PADDR, E-cacheable		*/
151690f50c2SManos Pitsidianakis #define ASI_REAL_IO             0x15 /* Real address, non-cacheable      */
152fcf5ef2aSThomas Huth #define ASI_PHYS_BYPASS_EC_E	0x15 /* PADDR, E-bit			*/
153fcf5ef2aSThomas Huth #define ASI_BLK_AIUP_4V		0x16 /* (4V) Prim, user, block ld/st	*/
154fcf5ef2aSThomas Huth #define ASI_BLK_AIUS_4V		0x17 /* (4V) Sec, user, block ld/st	*/
1558b81968cSMichael Tokarev #define ASI_REAL_L              0x1c /* Real address, cacheable, LE      */
156690f50c2SManos Pitsidianakis #define ASI_PHYS_USE_EC_L	0x1c /* PADDR, E-cacheable, little endian*/
157690f50c2SManos Pitsidianakis #define ASI_REAL_IO_L           0x1d /* Real address, non-cacheable, LE  */
158fcf5ef2aSThomas Huth #define ASI_PHYS_BYPASS_EC_E_L	0x1d /* PADDR, E-bit, little endian	*/
159fcf5ef2aSThomas Huth #define ASI_BLK_AIUP_L_4V	0x1e /* (4V) Prim, user, block, l-endian*/
160fcf5ef2aSThomas Huth #define ASI_BLK_AIUS_L_4V	0x1f /* (4V) Sec, user, block, l-endian	*/
161fcf5ef2aSThomas Huth #define ASI_SCRATCHPAD		0x20 /* (4V) Scratch Pad Registers	*/
162fcf5ef2aSThomas Huth #define ASI_MMU			0x21 /* (4V) MMU Context Registers	*/
163fcf5ef2aSThomas Huth #define ASI_TWINX_AIUP          0x22 /* twin load, primary user         */
164fcf5ef2aSThomas Huth #define ASI_TWINX_AIUS          0x23 /* twin load, secondary user       */
165fcf5ef2aSThomas Huth #define ASI_BLK_INIT_QUAD_LDD_AIUS 0x23 /* (NG) init-store, twin load,
166fcf5ef2aSThomas Huth 					 * secondary, user
167fcf5ef2aSThomas Huth 					 */
1688b81968cSMichael Tokarev #define ASI_NUCLEUS_QUAD_LDD	0x24 /* Cacheable, qword load		*/
169fcf5ef2aSThomas Huth #define ASI_QUEUE		0x25 /* (4V) Interrupt Queue Registers	*/
1708b81968cSMichael Tokarev #define ASI_TWINX_REAL          0x26 /* twin load, real, cacheable	*/
171fcf5ef2aSThomas Huth #define ASI_QUAD_LDD_PHYS_4V	0x26 /* (4V) Physical, qword load	*/
172fcf5ef2aSThomas Huth #define ASI_TWINX_N             0x27 /* twin load, nucleus              */
173fcf5ef2aSThomas Huth #define ASI_TWINX_AIUP_L        0x2a /* twin load, primary user, LE     */
174fcf5ef2aSThomas Huth #define ASI_TWINX_AIUS_L        0x2b /* twin load, secondary user, LE   */
1758b81968cSMichael Tokarev #define ASI_NUCLEUS_QUAD_LDD_L	0x2c /* Cacheable, qword load, l-endian */
1768b81968cSMichael Tokarev #define ASI_TWINX_REAL_L        0x2e /* twin load, real, cacheable, LE	*/
177fcf5ef2aSThomas Huth #define ASI_QUAD_LDD_PHYS_L_4V	0x2e /* (4V) Phys, qword load, l-endian	*/
178fcf5ef2aSThomas Huth #define ASI_TWINX_NL            0x2f /* twin load, nucleus, LE          */
179fcf5ef2aSThomas Huth #define ASI_PCACHE_DATA_STATUS	0x30 /* (III) PCache data stat RAM diag	*/
180fcf5ef2aSThomas Huth #define ASI_PCACHE_DATA		0x31 /* (III) PCache data RAM diag	*/
181fcf5ef2aSThomas Huth #define ASI_PCACHE_TAG		0x32 /* (III) PCache tag RAM diag	*/
182fcf5ef2aSThomas Huth #define ASI_PCACHE_SNOOP_TAG	0x33 /* (III) PCache snoop tag RAM diag	*/
183fcf5ef2aSThomas Huth #define ASI_QUAD_LDD_PHYS	0x34 /* (III+) PADDR, qword load	*/
184fcf5ef2aSThomas Huth #define ASI_WCACHE_VALID_BITS	0x38 /* (III) WCache Valid Bits diag	*/
185fcf5ef2aSThomas Huth #define ASI_WCACHE_DATA		0x39 /* (III) WCache data RAM diag	*/
186fcf5ef2aSThomas Huth #define ASI_WCACHE_TAG		0x3a /* (III) WCache tag RAM diag	*/
187fcf5ef2aSThomas Huth #define ASI_WCACHE_SNOOP_TAG	0x3b /* (III) WCache snoop tag RAM diag	*/
188fcf5ef2aSThomas Huth #define ASI_QUAD_LDD_PHYS_L	0x3c /* (III+) PADDR, qw-load, l-endian	*/
189fcf5ef2aSThomas Huth #define ASI_SRAM_FAST_INIT	0x40 /* (III+) Fast SRAM init		*/
190fcf5ef2aSThomas Huth #define ASI_CORE_AVAILABLE	0x41 /* (CMT) LP Available		*/
191fcf5ef2aSThomas Huth #define ASI_CORE_ENABLE_STAT	0x41 /* (CMT) LP Enable Status		*/
192fcf5ef2aSThomas Huth #define ASI_CORE_ENABLE		0x41 /* (CMT) LP Enable RW		*/
193fcf5ef2aSThomas Huth #define ASI_XIR_STEERING	0x41 /* (CMT) XIR Steering RW		*/
194fcf5ef2aSThomas Huth #define ASI_CORE_RUNNING_RW	0x41 /* (CMT) LP Running RW		*/
195fcf5ef2aSThomas Huth #define ASI_CORE_RUNNING_W1S	0x41 /* (CMT) LP Running Write-One Set	*/
196fcf5ef2aSThomas Huth #define ASI_CORE_RUNNING_W1C	0x41 /* (CMT) LP Running Write-One Clr	*/
197fcf5ef2aSThomas Huth #define ASI_CORE_RUNNING_STAT	0x41 /* (CMT) LP Running Status		*/
198fcf5ef2aSThomas Huth #define ASI_CMT_ERROR_STEERING	0x41 /* (CMT) Error Steering RW		*/
199fcf5ef2aSThomas Huth #define ASI_DCACHE_INVALIDATE	0x42 /* (III) DCache Invalidate diag	*/
200fcf5ef2aSThomas Huth #define ASI_DCACHE_UTAG		0x43 /* (III) DCache uTag diag		*/
201fcf5ef2aSThomas Huth #define ASI_DCACHE_SNOOP_TAG	0x44 /* (III) DCache snoop tag RAM diag	*/
202fcf5ef2aSThomas Huth #define ASI_LSU_CONTROL		0x45 /* Load-store control unit		*/
203fcf5ef2aSThomas Huth #define ASI_DCU_CONTROL_REG	0x45 /* (III) DCache Unit Control reg	*/
204fcf5ef2aSThomas Huth #define ASI_DCACHE_DATA		0x46 /* DCache data-ram diag access	*/
205fcf5ef2aSThomas Huth #define ASI_DCACHE_TAG		0x47 /* Dcache tag/valid ram diag access*/
206fcf5ef2aSThomas Huth #define ASI_INTR_DISPATCH_STAT	0x48 /* IRQ vector dispatch status	*/
207fcf5ef2aSThomas Huth #define ASI_INTR_RECEIVE	0x49 /* IRQ vector receive status	*/
208fcf5ef2aSThomas Huth #define ASI_UPA_CONFIG		0x4a /* UPA config space		*/
209fcf5ef2aSThomas Huth #define ASI_JBUS_CONFIG		0x4a /* (IIIi) JBUS Config Register	*/
210fcf5ef2aSThomas Huth #define ASI_SAFARI_CONFIG	0x4a /* (III) Safari Config Register	*/
211fcf5ef2aSThomas Huth #define ASI_SAFARI_ADDRESS	0x4a /* (III) Safari Address Register	*/
212fcf5ef2aSThomas Huth #define ASI_ESTATE_ERROR_EN	0x4b /* E-cache error enable space	*/
213fcf5ef2aSThomas Huth #define ASI_AFSR		0x4c /* Async fault status register	*/
214fcf5ef2aSThomas Huth #define ASI_AFAR		0x4d /* Async fault address register	*/
215fcf5ef2aSThomas Huth #define ASI_EC_TAG_DATA		0x4e /* E-cache tag/valid ram diag acc	*/
2164ec3e346SArtyom Tarasenko #define ASI_HYP_SCRATCHPAD	0x4f /* (4V) Hypervisor scratchpad	*/
217fcf5ef2aSThomas Huth #define ASI_IMMU		0x50 /* Insn-MMU main register space	*/
218fcf5ef2aSThomas Huth #define ASI_IMMU_TSB_8KB_PTR	0x51 /* Insn-MMU 8KB TSB pointer reg	*/
219fcf5ef2aSThomas Huth #define ASI_IMMU_TSB_64KB_PTR	0x52 /* Insn-MMU 64KB TSB pointer reg	*/
220fcf5ef2aSThomas Huth #define ASI_ITLB_DATA_IN	0x54 /* Insn-MMU TLB data in reg	*/
221fcf5ef2aSThomas Huth #define ASI_ITLB_DATA_ACCESS	0x55 /* Insn-MMU TLB data access reg	*/
222fcf5ef2aSThomas Huth #define ASI_ITLB_TAG_READ	0x56 /* Insn-MMU TLB tag read reg	*/
223fcf5ef2aSThomas Huth #define ASI_IMMU_DEMAP		0x57 /* Insn-MMU TLB demap		*/
224fcf5ef2aSThomas Huth #define ASI_DMMU		0x58 /* Data-MMU main register space	*/
225fcf5ef2aSThomas Huth #define ASI_DMMU_TSB_8KB_PTR	0x59 /* Data-MMU 8KB TSB pointer reg	*/
226fcf5ef2aSThomas Huth #define ASI_DMMU_TSB_64KB_PTR	0x5a /* Data-MMU 16KB TSB pointer reg	*/
227fcf5ef2aSThomas Huth #define ASI_DMMU_TSB_DIRECT_PTR	0x5b /* Data-MMU TSB direct pointer reg	*/
228fcf5ef2aSThomas Huth #define ASI_DTLB_DATA_IN	0x5c /* Data-MMU TLB data in reg	*/
229fcf5ef2aSThomas Huth #define ASI_DTLB_DATA_ACCESS	0x5d /* Data-MMU TLB data access reg	*/
230fcf5ef2aSThomas Huth #define ASI_DTLB_TAG_READ	0x5e /* Data-MMU TLB tag read reg	*/
231fcf5ef2aSThomas Huth #define ASI_DMMU_DEMAP		0x5f /* Data-MMU TLB demap		*/
232fcf5ef2aSThomas Huth #define ASI_IIU_INST_TRAP	0x60 /* (III) Instruction Breakpoint	*/
233fcf5ef2aSThomas Huth #define ASI_INTR_ID		0x63 /* (CMT) Interrupt ID register	*/
234fcf5ef2aSThomas Huth #define ASI_CORE_ID		0x63 /* (CMT) LP ID register		*/
235fcf5ef2aSThomas Huth #define ASI_CESR_ID		0x63 /* (CMT) CESR ID register		*/
2368b81968cSMichael Tokarev #define ASI_IC_INSTR		0x66 /* Insn cache instruction ram diag	*/
237fcf5ef2aSThomas Huth #define ASI_IC_TAG		0x67 /* Insn cache tag/valid ram diag 	*/
238fcf5ef2aSThomas Huth #define ASI_IC_STAG		0x68 /* (III) Insn cache snoop tag ram	*/
239fcf5ef2aSThomas Huth #define ASI_IC_PRE_DECODE	0x6e /* Insn cache pre-decode ram diag	*/
240fcf5ef2aSThomas Huth #define ASI_IC_NEXT_FIELD	0x6f /* Insn cache next-field ram diag	*/
241fcf5ef2aSThomas Huth #define ASI_BRPRED_ARRAY	0x6f /* (III) Branch Prediction RAM diag*/
242fcf5ef2aSThomas Huth #define ASI_BLK_AIUP		0x70 /* Primary, user, block load/store	*/
243fcf5ef2aSThomas Huth #define ASI_BLK_AIUS		0x71 /* Secondary, user, block ld/st	*/
244fcf5ef2aSThomas Huth #define ASI_MCU_CTRL_REG	0x72 /* (III) Memory controller regs	*/
245fcf5ef2aSThomas Huth #define ASI_EC_DATA		0x74 /* (III) E-cache data staging reg	*/
246fcf5ef2aSThomas Huth #define ASI_EC_CTRL		0x75 /* (III) E-cache control reg	*/
247fcf5ef2aSThomas Huth #define ASI_EC_W		0x76 /* E-cache diag write access	*/
248fcf5ef2aSThomas Huth #define ASI_UDB_ERROR_W		0x77 /* External UDB error regs W	*/
249fcf5ef2aSThomas Huth #define ASI_UDB_CONTROL_W	0x77 /* External UDB control regs W	*/
250fcf5ef2aSThomas Huth #define ASI_INTR_W		0x77 /* IRQ vector dispatch write	*/
251fcf5ef2aSThomas Huth #define ASI_INTR_DATAN_W	0x77 /* (III) Out irq vector data reg N	*/
252fcf5ef2aSThomas Huth #define ASI_INTR_DISPATCH_W	0x77 /* (III) Interrupt vector dispatch	*/
253fcf5ef2aSThomas Huth #define ASI_BLK_AIUPL		0x78 /* Primary, user, little, blk ld/st*/
254fcf5ef2aSThomas Huth #define ASI_BLK_AIUSL		0x79 /* Secondary, user, little, blk ld/st*/
255fcf5ef2aSThomas Huth #define ASI_EC_R		0x7e /* E-cache diag read access	*/
256fcf5ef2aSThomas Huth #define ASI_UDBH_ERROR_R	0x7f /* External UDB error regs rd hi	*/
257fcf5ef2aSThomas Huth #define ASI_UDBL_ERROR_R	0x7f /* External UDB error regs rd low	*/
258fcf5ef2aSThomas Huth #define ASI_UDBH_CONTROL_R	0x7f /* External UDB control regs rd hi	*/
259fcf5ef2aSThomas Huth #define ASI_UDBL_CONTROL_R	0x7f /* External UDB control regs rd low*/
260fcf5ef2aSThomas Huth #define ASI_INTR_R		0x7f /* IRQ vector dispatch read	*/
261fcf5ef2aSThomas Huth #define ASI_INTR_DATAN_R	0x7f /* (III) In irq vector data reg N	*/
262*eeb3f592SRichard Henderson #define ASI_MON_P               0x84 /* (VIS4) Primary, monitor         */
263*eeb3f592SRichard Henderson #define ASI_MON_S               0x85 /* (VIS4) Secondary, monitor       */
264fcf5ef2aSThomas Huth #define ASI_PIC			0xb0 /* (NG4) PIC registers		*/
265fcf5ef2aSThomas Huth #define ASI_PST8_P		0xc0 /* Primary, 8 8-bit, partial	*/
266fcf5ef2aSThomas Huth #define ASI_PST8_S		0xc1 /* Secondary, 8 8-bit, partial	*/
267fcf5ef2aSThomas Huth #define ASI_PST16_P		0xc2 /* Primary, 4 16-bit, partial	*/
268fcf5ef2aSThomas Huth #define ASI_PST16_S		0xc3 /* Secondary, 4 16-bit, partial	*/
269fcf5ef2aSThomas Huth #define ASI_PST32_P		0xc4 /* Primary, 2 32-bit, partial	*/
270fcf5ef2aSThomas Huth #define ASI_PST32_S		0xc5 /* Secondary, 2 32-bit, partial	*/
271fcf5ef2aSThomas Huth #define ASI_PST8_PL		0xc8 /* Primary, 8 8-bit, partial, L	*/
272fcf5ef2aSThomas Huth #define ASI_PST8_SL		0xc9 /* Secondary, 8 8-bit, partial, L	*/
273fcf5ef2aSThomas Huth #define ASI_PST16_PL		0xca /* Primary, 4 16-bit, partial, L	*/
274fcf5ef2aSThomas Huth #define ASI_PST16_SL		0xcb /* Secondary, 4 16-bit, partial, L	*/
275fcf5ef2aSThomas Huth #define ASI_PST32_PL		0xcc /* Primary, 2 32-bit, partial, L	*/
276fcf5ef2aSThomas Huth #define ASI_PST32_SL		0xcd /* Secondary, 2 32-bit, partial, L	*/
277fcf5ef2aSThomas Huth #define ASI_FL8_P		0xd0 /* Primary, 1 8-bit, fpu ld/st	*/
278fcf5ef2aSThomas Huth #define ASI_FL8_S		0xd1 /* Secondary, 1 8-bit, fpu ld/st	*/
279fcf5ef2aSThomas Huth #define ASI_FL16_P		0xd2 /* Primary, 1 16-bit, fpu ld/st	*/
280fcf5ef2aSThomas Huth #define ASI_FL16_S		0xd3 /* Secondary, 1 16-bit, fpu ld/st	*/
281fcf5ef2aSThomas Huth #define ASI_FL8_PL		0xd8 /* Primary, 1 8-bit, fpu ld/st, L	*/
282fcf5ef2aSThomas Huth #define ASI_FL8_SL		0xd9 /* Secondary, 1 8-bit, fpu ld/st, L*/
283fcf5ef2aSThomas Huth #define ASI_FL16_PL		0xda /* Primary, 1 16-bit, fpu ld/st, L	*/
284fcf5ef2aSThomas Huth #define ASI_FL16_SL		0xdb /* Secondary, 1 16-bit, fpu ld/st,L*/
285fcf5ef2aSThomas Huth #define ASI_BLK_COMMIT_P	0xe0 /* Primary, blk store commit	*/
286fcf5ef2aSThomas Huth #define ASI_BLK_COMMIT_S	0xe1 /* Secondary, blk store commit	*/
287fcf5ef2aSThomas Huth #define ASI_TWINX_P             0xe2 /* twin load, primary implicit     */
288fcf5ef2aSThomas Huth #define ASI_BLK_INIT_QUAD_LDD_P	0xe2 /* (NG) init-store, twin load,
289fcf5ef2aSThomas Huth 				      * primary, implicit */
290fcf5ef2aSThomas Huth #define ASI_TWINX_S             0xe3 /* twin load, secondary implicit   */
291fcf5ef2aSThomas Huth #define ASI_BLK_INIT_QUAD_LDD_S	0xe3 /* (NG) init-store, twin load,
292fcf5ef2aSThomas Huth 				      * secondary, implicit */
293fcf5ef2aSThomas Huth #define ASI_TWINX_PL            0xea /* twin load, primary implicit, LE */
294fcf5ef2aSThomas Huth #define ASI_TWINX_SL            0xeb /* twin load, secondary implicit, LE */
295fcf5ef2aSThomas Huth #define ASI_BLK_P		0xf0 /* Primary, blk ld/st		*/
296fcf5ef2aSThomas Huth #define ASI_BLK_S		0xf1 /* Secondary, blk ld/st		*/
297fcf5ef2aSThomas Huth #define ASI_ST_BLKINIT_MRU_P	0xf2 /* (NG4) init-store, twin load,
298fcf5ef2aSThomas Huth 				      * Most-Recently-Used, primary,
299fcf5ef2aSThomas Huth 				      * implicit
300fcf5ef2aSThomas Huth 				      */
301fcf5ef2aSThomas Huth #define ASI_ST_BLKINIT_MRU_S	0xf2 /* (NG4) init-store, twin load,
302fcf5ef2aSThomas Huth 				      * Most-Recently-Used, secondary,
303fcf5ef2aSThomas Huth 				      * implicit
304fcf5ef2aSThomas Huth 				      */
305fcf5ef2aSThomas Huth #define ASI_BLK_PL		0xf8 /* Primary, blk ld/st, little	*/
306fcf5ef2aSThomas Huth #define ASI_BLK_SL		0xf9 /* Secondary, blk ld/st, little	*/
307fcf5ef2aSThomas Huth #define ASI_ST_BLKINIT_MRU_PL	0xfa /* (NG4) init-store, twin load,
308fcf5ef2aSThomas Huth 				      * Most-Recently-Used, primary,
309fcf5ef2aSThomas Huth 				      * implicit, little-endian
310fcf5ef2aSThomas Huth 				      */
311fcf5ef2aSThomas Huth #define ASI_ST_BLKINIT_MRU_SL	0xfb /* (NG4) init-store, twin load,
312fcf5ef2aSThomas Huth 				      * Most-Recently-Used, secondary,
313fcf5ef2aSThomas Huth 				      * implicit, little-endian
314fcf5ef2aSThomas Huth 				      */
315fcf5ef2aSThomas Huth 
316a8b991b5SMarkus Armbruster #endif /* SPARC_ASI_H */
317