xref: /onnv-gate/usr/src/uts/sun4u/sys/machasi.h (revision 5037:13b3807acc31)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * CDDL HEADER START
30Sstevel@tonic-gate  *
40Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
51772Sjl139090  * Common Development and Distribution License (the "License").
61772Sjl139090  * You may not use this file except in compliance with the License.
70Sstevel@tonic-gate  *
80Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate  * See the License for the specific language governing permissions
110Sstevel@tonic-gate  * and limitations under the License.
120Sstevel@tonic-gate  *
130Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate  *
190Sstevel@tonic-gate  * CDDL HEADER END
200Sstevel@tonic-gate  */
210Sstevel@tonic-gate /*
22*5037Sjl139090  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate  * Use is subject to license terms.
240Sstevel@tonic-gate  */
250Sstevel@tonic-gate 
260Sstevel@tonic-gate #ifndef	_SYS_MACHASI_H
270Sstevel@tonic-gate #define	_SYS_MACHASI_H
280Sstevel@tonic-gate 
290Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
300Sstevel@tonic-gate 
310Sstevel@tonic-gate #ifdef	__cplusplus
320Sstevel@tonic-gate extern "C" {
330Sstevel@tonic-gate #endif
340Sstevel@tonic-gate 
350Sstevel@tonic-gate /*
360Sstevel@tonic-gate  * Spitfire ancillary state registers, for asrset_t
370Sstevel@tonic-gate  */
380Sstevel@tonic-gate #define	ASR_GSR	(3)
390Sstevel@tonic-gate 
400Sstevel@tonic-gate /*
410Sstevel@tonic-gate  * alternate address space identifiers
420Sstevel@tonic-gate  *
430Sstevel@tonic-gate  * 0x00 - 0x7F are privileged
440Sstevel@tonic-gate  * 0x80 - 0xFF can be used by users
450Sstevel@tonic-gate  */
460Sstevel@tonic-gate 
470Sstevel@tonic-gate 
480Sstevel@tonic-gate /*
490Sstevel@tonic-gate  * UltraSPARC ASIs
500Sstevel@tonic-gate  */
510Sstevel@tonic-gate #define	ASI_NQUAD_LD		0x24	/* 128-bit atomic load */
520Sstevel@tonic-gate #define	ASI_NQUAD_LD_L		0x2c	/* 128-bit atomic load little */
530Sstevel@tonic-gate 
540Sstevel@tonic-gate #define	ASI_QUAD_LDD_PHYS	0x34	/* 128-bit physical atomic load */
550Sstevel@tonic-gate #define	ASI_QUAD_LDD_PHYS_L	0x3C	/* 128-bit phys. atomic load little */
560Sstevel@tonic-gate 
570Sstevel@tonic-gate #define	ASI_INTR_DISPATCH_STATUS 0x48	/* interrupt vector dispatch status */
580Sstevel@tonic-gate #define	ASI_INTR_RECEIVE_STATUS	0x49	/* interrupt vector receive status */
590Sstevel@tonic-gate 
601772Sjl139090 #define	ASI_SCRATCHPAD		0x4F	/* Scratchpad registers ASI */
611772Sjl139090 
620Sstevel@tonic-gate #define	ASI_BLK_AIUP		0x70	/* block as if user primary */
630Sstevel@tonic-gate #define	ASI_BLK_AIUS		0x71	/* block as if user secondary */
640Sstevel@tonic-gate 
650Sstevel@tonic-gate #define	ASI_SDB_INTR_W		0x77	/* interrupt vector dispatch */
660Sstevel@tonic-gate #define	ASI_SDB_INTR_R		0x7F	/* incoming interrupt vector */
670Sstevel@tonic-gate #define	ASI_INTR_DISPATCH	ASI_SDB_INTR_W
680Sstevel@tonic-gate #define	ASI_INTR_RECEIVE	ASI_SDB_INTR_R
690Sstevel@tonic-gate 
700Sstevel@tonic-gate #define	ASI_BLK_AIUPL		0x78	/* block as if user primary little */
710Sstevel@tonic-gate #define	ASI_BLK_AIUSL		0x79	/* block as if user secondary little */
720Sstevel@tonic-gate 
730Sstevel@tonic-gate /*
740Sstevel@tonic-gate  * Spitfire asis
750Sstevel@tonic-gate  */
760Sstevel@tonic-gate #define	ASI_LSU			0x45	/* load-store unit control */
770Sstevel@tonic-gate #define	ASI_DC_INVAL		0x42	/* d$ invalidate */
780Sstevel@tonic-gate 
790Sstevel@tonic-gate 
800Sstevel@tonic-gate #define	ASI_DC_DATA		0x46	/* d$ data */
810Sstevel@tonic-gate #define	ASI_DC_TAG		0x47	/* d$ tag */
820Sstevel@tonic-gate 
830Sstevel@tonic-gate #define	ASI_UPA_CONFIG		0x4A	/* upa configuration reg */
840Sstevel@tonic-gate 
850Sstevel@tonic-gate #define	ASI_ESTATE_ERR		0x4B	/* estate error enable reg */
860Sstevel@tonic-gate 
870Sstevel@tonic-gate #define	ASI_AFSR		0x4C	/* asynchronous fault status */
880Sstevel@tonic-gate #define	ASI_AFAR		0x4D	/* asynchronous fault address */
890Sstevel@tonic-gate 
900Sstevel@tonic-gate #define	ASI_IMMU		0x50	/* instruction mmu */
910Sstevel@tonic-gate #define	ASI_IMMU_TSB_8K		0x51	/* immu tsb 8k ptr */
920Sstevel@tonic-gate #define	ASI_IMMU_TSB_64K	0x52	/* immu tsb 64k ptr */
930Sstevel@tonic-gate #define	ASI_DEVICE_SERIAL_ID	0x53	/* device serial id */
940Sstevel@tonic-gate #define	ASI_ITLB_IN		0x54	/* immu tlb data in */
950Sstevel@tonic-gate #define	ASI_ITLB_ACCESS		0x55	/* immu tlb data access */
960Sstevel@tonic-gate #define	ASI_ITLB_TAGREAD	0x56	/* immu tlb tag read */
970Sstevel@tonic-gate #define	ASI_ITLB_DEMAP		0x57	/* immu tlb demap */
980Sstevel@tonic-gate 
990Sstevel@tonic-gate #define	ASI_DMMU		0x58	/* data mmu */
1000Sstevel@tonic-gate #define	ASI_MMU_CTX		ASI_DMMU
1010Sstevel@tonic-gate #define	ASI_DMMU_TSB_8K		0x59	/* dmmu tsb 8k ptr */
1020Sstevel@tonic-gate #define	ASI_DMMU_TSB_64K	0x5A	/* dmmu tsb 64k ptr */
1030Sstevel@tonic-gate #define	ASI_DMMU_TSB_DIRECT	0x5B	/* dmmu tsb direct ptr */
1040Sstevel@tonic-gate #define	ASI_DTLB_IN		0x5C	/* dmmu tlb data in */
1050Sstevel@tonic-gate #define	ASI_DTLB_ACCESS		0x5D	/* dmmu tlb data access */
1060Sstevel@tonic-gate #define	ASI_DTLB_TAGREAD	0x5E	/* dmmu tlb tag read */
1070Sstevel@tonic-gate #define	ASI_DTLB_DEMAP		0x5F	/* dmmu tlb demap */
108*5037Sjl139090 #define	ASI_ITSB_PREFETCH	0x61	/* IMMU tsb prefetch */
109*5037Sjl139090 #define	ASI_DTSB_PREFETCH	0x62	/* DMMU tsb prefetch */
1100Sstevel@tonic-gate 
1110Sstevel@tonic-gate #define	ASI_IC_DATA		0x66	/* i$ data */
1120Sstevel@tonic-gate #define	ASI_IC_TAG		0x67	/* i$ tag */
1130Sstevel@tonic-gate #define	ASI_IC_DECODE		0x6E	/* i$ pre-decode */
1140Sstevel@tonic-gate #define	ASI_IC_NEXT		0x6F	/* i$ next field */
1150Sstevel@tonic-gate 
1160Sstevel@tonic-gate #define	ASI_EC_W		0x76	/* e$ access write */
1170Sstevel@tonic-gate #define	ASI_EC_R		0x7E	/* e$ access read */
1180Sstevel@tonic-gate #define	ASI_EC_DIAG		0x4E	/* e$ diagnostic reg */
1190Sstevel@tonic-gate 					/* PRM calls this ASI_ECACHE_TAG */
1200Sstevel@tonic-gate 
1210Sstevel@tonic-gate #ifdef	__cplusplus
1220Sstevel@tonic-gate }
1230Sstevel@tonic-gate #endif
1240Sstevel@tonic-gate 
1250Sstevel@tonic-gate #endif	/* _SYS_MACHASI_H */
126