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