xref: /titanic_44/usr/src/uts/sparc/v9/sys/asi.h (revision b7f45089ccbe01bab3d7c7377b49d80d2ae18a69)
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 (c) 1993 by Sun Microsystems, Inc.
24  */
25 
26 #ifndef	_SYS_ASI_H
27 #define	_SYS_ASI_H
28 
29 #pragma ident	"%Z%%M%	%I%	%E% SMI"
30 
31 #ifdef	__cplusplus
32 extern "C" {
33 #endif
34 
35 /*
36  * alternate address space identifiers
37  *
38  * 0x00 - 0x7F are privileged
39  * 0x80 - 0xFF can be used by users
40  */
41 
42 /*
43  * V9 asis
44  */
45 #define	ASI_N			0x04	/* nucleus */
46 #define	ASI_NL			0x0C	/* nucleus little */
47 #define	ASI_AIUP		0x10	/* as if user primary */
48 #define	ASI_AIUS		0x11	/* as if user secondary */
49 #define	ASI_AIUPL		0x18	/* as if user primary little */
50 #define	ASI_AIUSL		0x19	/* as if user secondary little */
51 #define	ASI_P			0x80	/* primary */
52 #define	ASI_S			0x81	/* secondary */
53 #define	ASI_PNF			0x82	/* primary no fault */
54 #define	ASI_SNF			0x83	/* secondary no fault */
55 #define	ASI_PL			0x88	/* primary little */
56 #define	ASI_SL			0x89	/* secondary little */
57 #define	ASI_PNFL		0x8A	/* primary no fault little */
58 #define	ASI_SNFL		0x8B	/* secondary no fault little */
59 
60 /*
61  * Mnemonic asis
62  */
63 #define	ASI_USER	ASI_AIUS
64 
65 #ifdef	__cplusplus
66 }
67 #endif
68 
69 #endif	/* _SYS_ASI_H */
70