1*7c478bd9Sstevel@tonic-gate /* 2*7c478bd9Sstevel@tonic-gate * CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate * 4*7c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate * with the License. 8*7c478bd9Sstevel@tonic-gate * 9*7c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate * and limitations under the License. 13*7c478bd9Sstevel@tonic-gate * 14*7c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate * 20*7c478bd9Sstevel@tonic-gate * CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate */ 22*7c478bd9Sstevel@tonic-gate /* 23*7c478bd9Sstevel@tonic-gate * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24*7c478bd9Sstevel@tonic-gate * Use is subject to license terms. 25*7c478bd9Sstevel@tonic-gate */ 26*7c478bd9Sstevel@tonic-gate 27*7c478bd9Sstevel@tonic-gate #ifndef _SYS_MACHASI_H 28*7c478bd9Sstevel@tonic-gate #define _SYS_MACHASI_H 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 31*7c478bd9Sstevel@tonic-gate 32*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 33*7c478bd9Sstevel@tonic-gate extern "C" { 34*7c478bd9Sstevel@tonic-gate #endif 35*7c478bd9Sstevel@tonic-gate 36*7c478bd9Sstevel@tonic-gate /* 37*7c478bd9Sstevel@tonic-gate * Spitfire ancillary state registers, for asrset_t 38*7c478bd9Sstevel@tonic-gate */ 39*7c478bd9Sstevel@tonic-gate #define ASR_GSR (3) 40*7c478bd9Sstevel@tonic-gate 41*7c478bd9Sstevel@tonic-gate /* 42*7c478bd9Sstevel@tonic-gate * alternate address space identifiers 43*7c478bd9Sstevel@tonic-gate * 44*7c478bd9Sstevel@tonic-gate * 0x00 - 0x7F are privileged 45*7c478bd9Sstevel@tonic-gate * 0x80 - 0xFF can be used by users 46*7c478bd9Sstevel@tonic-gate */ 47*7c478bd9Sstevel@tonic-gate 48*7c478bd9Sstevel@tonic-gate 49*7c478bd9Sstevel@tonic-gate /* 50*7c478bd9Sstevel@tonic-gate * UltraSPARC ASIs 51*7c478bd9Sstevel@tonic-gate */ 52*7c478bd9Sstevel@tonic-gate #define ASI_NQUAD_LD 0x24 /* 128-bit atomic load */ 53*7c478bd9Sstevel@tonic-gate #define ASI_NQUAD_LD_L 0x2c /* 128-bit atomic load little */ 54*7c478bd9Sstevel@tonic-gate 55*7c478bd9Sstevel@tonic-gate #define ASI_QUAD_LDD_PHYS 0x34 /* 128-bit physical atomic load */ 56*7c478bd9Sstevel@tonic-gate #define ASI_QUAD_LDD_PHYS_L 0x3C /* 128-bit phys. atomic load little */ 57*7c478bd9Sstevel@tonic-gate 58*7c478bd9Sstevel@tonic-gate #define ASI_INTR_DISPATCH_STATUS 0x48 /* interrupt vector dispatch status */ 59*7c478bd9Sstevel@tonic-gate #define ASI_INTR_RECEIVE_STATUS 0x49 /* interrupt vector receive status */ 60*7c478bd9Sstevel@tonic-gate 61*7c478bd9Sstevel@tonic-gate #define ASI_BLK_AIUP 0x70 /* block as if user primary */ 62*7c478bd9Sstevel@tonic-gate #define ASI_BLK_AIUS 0x71 /* block as if user secondary */ 63*7c478bd9Sstevel@tonic-gate 64*7c478bd9Sstevel@tonic-gate #define ASI_SDB_INTR_W 0x77 /* interrupt vector dispatch */ 65*7c478bd9Sstevel@tonic-gate #define ASI_SDB_INTR_R 0x7F /* incoming interrupt vector */ 66*7c478bd9Sstevel@tonic-gate #define ASI_INTR_DISPATCH ASI_SDB_INTR_W 67*7c478bd9Sstevel@tonic-gate #define ASI_INTR_RECEIVE ASI_SDB_INTR_R 68*7c478bd9Sstevel@tonic-gate 69*7c478bd9Sstevel@tonic-gate #define ASI_BLK_AIUPL 0x78 /* block as if user primary little */ 70*7c478bd9Sstevel@tonic-gate #define ASI_BLK_AIUSL 0x79 /* block as if user secondary little */ 71*7c478bd9Sstevel@tonic-gate 72*7c478bd9Sstevel@tonic-gate /* 73*7c478bd9Sstevel@tonic-gate * Spitfire asis 74*7c478bd9Sstevel@tonic-gate */ 75*7c478bd9Sstevel@tonic-gate #define ASI_LSU 0x45 /* load-store unit control */ 76*7c478bd9Sstevel@tonic-gate #define ASI_DC_INVAL 0x42 /* d$ invalidate */ 77*7c478bd9Sstevel@tonic-gate 78*7c478bd9Sstevel@tonic-gate 79*7c478bd9Sstevel@tonic-gate #define ASI_DC_DATA 0x46 /* d$ data */ 80*7c478bd9Sstevel@tonic-gate #define ASI_DC_TAG 0x47 /* d$ tag */ 81*7c478bd9Sstevel@tonic-gate 82*7c478bd9Sstevel@tonic-gate #define ASI_UPA_CONFIG 0x4A /* upa configuration reg */ 83*7c478bd9Sstevel@tonic-gate 84*7c478bd9Sstevel@tonic-gate #define ASI_ESTATE_ERR 0x4B /* estate error enable reg */ 85*7c478bd9Sstevel@tonic-gate 86*7c478bd9Sstevel@tonic-gate #define ASI_AFSR 0x4C /* asynchronous fault status */ 87*7c478bd9Sstevel@tonic-gate #define ASI_AFAR 0x4D /* asynchronous fault address */ 88*7c478bd9Sstevel@tonic-gate 89*7c478bd9Sstevel@tonic-gate #define ASI_IMMU 0x50 /* instruction mmu */ 90*7c478bd9Sstevel@tonic-gate #define ASI_IMMU_TSB_8K 0x51 /* immu tsb 8k ptr */ 91*7c478bd9Sstevel@tonic-gate #define ASI_IMMU_TSB_64K 0x52 /* immu tsb 64k ptr */ 92*7c478bd9Sstevel@tonic-gate #define ASI_DEVICE_SERIAL_ID 0x53 /* device serial id */ 93*7c478bd9Sstevel@tonic-gate #define ASI_ITLB_IN 0x54 /* immu tlb data in */ 94*7c478bd9Sstevel@tonic-gate #define ASI_ITLB_ACCESS 0x55 /* immu tlb data access */ 95*7c478bd9Sstevel@tonic-gate #define ASI_ITLB_TAGREAD 0x56 /* immu tlb tag read */ 96*7c478bd9Sstevel@tonic-gate #define ASI_ITLB_DEMAP 0x57 /* immu tlb demap */ 97*7c478bd9Sstevel@tonic-gate 98*7c478bd9Sstevel@tonic-gate #define ASI_DMMU 0x58 /* data mmu */ 99*7c478bd9Sstevel@tonic-gate #define ASI_MMU_CTX ASI_DMMU 100*7c478bd9Sstevel@tonic-gate #define ASI_DMMU_TSB_8K 0x59 /* dmmu tsb 8k ptr */ 101*7c478bd9Sstevel@tonic-gate #define ASI_DMMU_TSB_64K 0x5A /* dmmu tsb 64k ptr */ 102*7c478bd9Sstevel@tonic-gate #define ASI_DMMU_TSB_DIRECT 0x5B /* dmmu tsb direct ptr */ 103*7c478bd9Sstevel@tonic-gate #define ASI_DTLB_IN 0x5C /* dmmu tlb data in */ 104*7c478bd9Sstevel@tonic-gate #define ASI_DTLB_ACCESS 0x5D /* dmmu tlb data access */ 105*7c478bd9Sstevel@tonic-gate #define ASI_DTLB_TAGREAD 0x5E /* dmmu tlb tag read */ 106*7c478bd9Sstevel@tonic-gate #define ASI_DTLB_DEMAP 0x5F /* dmmu tlb demap */ 107*7c478bd9Sstevel@tonic-gate 108*7c478bd9Sstevel@tonic-gate #define ASI_IC_DATA 0x66 /* i$ data */ 109*7c478bd9Sstevel@tonic-gate #define ASI_IC_TAG 0x67 /* i$ tag */ 110*7c478bd9Sstevel@tonic-gate #define ASI_IC_DECODE 0x6E /* i$ pre-decode */ 111*7c478bd9Sstevel@tonic-gate #define ASI_IC_NEXT 0x6F /* i$ next field */ 112*7c478bd9Sstevel@tonic-gate 113*7c478bd9Sstevel@tonic-gate #define ASI_EC_W 0x76 /* e$ access write */ 114*7c478bd9Sstevel@tonic-gate #define ASI_EC_R 0x7E /* e$ access read */ 115*7c478bd9Sstevel@tonic-gate #define ASI_EC_DIAG 0x4E /* e$ diagnostic reg */ 116*7c478bd9Sstevel@tonic-gate /* PRM calls this ASI_ECACHE_TAG */ 117*7c478bd9Sstevel@tonic-gate 118*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 119*7c478bd9Sstevel@tonic-gate } 120*7c478bd9Sstevel@tonic-gate #endif 121*7c478bd9Sstevel@tonic-gate 122*7c478bd9Sstevel@tonic-gate #endif /* _SYS_MACHASI_H */ 123