xref: /onnv-gate/usr/src/uts/sun4/sys/sun4asi.h (revision 0:68f95e015346)
1*0Sstevel@tonic-gate /*
2*0Sstevel@tonic-gate  * CDDL HEADER START
3*0Sstevel@tonic-gate  *
4*0Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*0Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*0Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*0Sstevel@tonic-gate  * with the License.
8*0Sstevel@tonic-gate  *
9*0Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*0Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*0Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*0Sstevel@tonic-gate  * and limitations under the License.
13*0Sstevel@tonic-gate  *
14*0Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*0Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*0Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*0Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*0Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*0Sstevel@tonic-gate  *
20*0Sstevel@tonic-gate  * CDDL HEADER END
21*0Sstevel@tonic-gate  */
22*0Sstevel@tonic-gate /*
23*0Sstevel@tonic-gate  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24*0Sstevel@tonic-gate  * Use is subject to license terms.
25*0Sstevel@tonic-gate  */
26*0Sstevel@tonic-gate 
27*0Sstevel@tonic-gate #ifndef	_SYS_SUN4ASI_H
28*0Sstevel@tonic-gate #define	_SYS_SUN4ASI_H
29*0Sstevel@tonic-gate 
30*0Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
31*0Sstevel@tonic-gate 
32*0Sstevel@tonic-gate #ifdef	__cplusplus
33*0Sstevel@tonic-gate extern "C" {
34*0Sstevel@tonic-gate #endif
35*0Sstevel@tonic-gate 
36*0Sstevel@tonic-gate /*
37*0Sstevel@tonic-gate  * alternate address space identifiers
38*0Sstevel@tonic-gate  *
39*0Sstevel@tonic-gate  * 0x00 - 0x7F are privileged or hyperprivileged
40*0Sstevel@tonic-gate  * 0x80 - 0xFF can be used by users
41*0Sstevel@tonic-gate  */
42*0Sstevel@tonic-gate 
43*0Sstevel@tonic-gate /*
44*0Sstevel@tonic-gate  * ASIs common to all UltraSPARC processors in the sun4 machine classes.
45*0Sstevel@tonic-gate  */
46*0Sstevel@tonic-gate #define	ASI_MEM			0x14	/* memory (e$, no d$) */
47*0Sstevel@tonic-gate #define	ASI_IO			0x15	/* I/O (uncached, side effect) */
48*0Sstevel@tonic-gate #define	ASI_MEML		0x1C	/* memory little */
49*0Sstevel@tonic-gate #define	ASI_IOL			0x1D	/* I/O little */
50*0Sstevel@tonic-gate 
51*0Sstevel@tonic-gate #define	ASI_PST8_P		0xC0	/* primary 8bit partial store */
52*0Sstevel@tonic-gate #define	ASI_PST8_S		0xC1	/* secondary 8bit partial store */
53*0Sstevel@tonic-gate #define	ASI_PST16_P		0xC2	/* primary 16bit partial store */
54*0Sstevel@tonic-gate #define	ASI_PST16_S		0xC3	/* secondary 16bit partial store */
55*0Sstevel@tonic-gate #define	ASI_PST32_P		0xC4	/* primary 32bit partial store */
56*0Sstevel@tonic-gate #define	ASI_PST32_S		0xC5	/* secondary 32bit partial store */
57*0Sstevel@tonic-gate #define	ASI_PST8_PL		0xC8	/* primary 8bit partial little */
58*0Sstevel@tonic-gate #define	ASI_PST8_SL		0xC9	/* secondary 8bit partial little */
59*0Sstevel@tonic-gate #define	ASI_PST16_PL		0xCA	/* primary 16bit partial little */
60*0Sstevel@tonic-gate #define	ASI_PST16_SL		0xCB	/* secondary 16bit partial little */
61*0Sstevel@tonic-gate #define	ASI_PST32_PL		0xCC	/* primary 32bit partial little */
62*0Sstevel@tonic-gate #define	ASI_PST32_SL		0xCD	/* secondary 32bit partial little */
63*0Sstevel@tonic-gate 
64*0Sstevel@tonic-gate #define	ASI_FL8_P		0xD0	/* primary 8bit floating store */
65*0Sstevel@tonic-gate #define	ASI_FL8_S		0xD1	/* secondary 8bit floating store */
66*0Sstevel@tonic-gate #define	ASI_FL16_P		0xD2	/* primary 16bit floating store */
67*0Sstevel@tonic-gate #define	ASI_FL16_S		0xD3	/* secondary 16bit floating store */
68*0Sstevel@tonic-gate #define	ASI_FL8_PL		0xD8	/* primary 8bit floating little */
69*0Sstevel@tonic-gate #define	ASI_FL8_SL		0xD9	/* secondary 8bit floating little */
70*0Sstevel@tonic-gate #define	ASI_FL16_PL		0xDA	/* primary 16bit floating little */
71*0Sstevel@tonic-gate #define	ASI_FL16_SL		0xDB	/* secondary 16bit floating little */
72*0Sstevel@tonic-gate 
73*0Sstevel@tonic-gate #define	ASI_BLK_COMMIT_P	0xE0	/* block commit primary */
74*0Sstevel@tonic-gate #define	ASI_BLK_COMMIT_S	0xE1	/* block commit secondary */
75*0Sstevel@tonic-gate #define	ASI_BLK_P		0xF0	/* block primary */
76*0Sstevel@tonic-gate #define	ASI_BLK_S		0xF1	/* block secondary */
77*0Sstevel@tonic-gate #define	ASI_BLK_PL		0xF8	/* block primary little */
78*0Sstevel@tonic-gate #define	ASI_BLK_SL		0xF9	/* block secondary little */
79*0Sstevel@tonic-gate 
80*0Sstevel@tonic-gate #ifdef	__cplusplus
81*0Sstevel@tonic-gate }
82*0Sstevel@tonic-gate #endif
83*0Sstevel@tonic-gate 
84*0Sstevel@tonic-gate #endif	/* _SYS_SUN4ASI_H */
85