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