xref: /titanic_41/usr/src/uts/sparc/v9/sys/membar.h (revision b3697b90e692e3e5d859fb77d285d4c056d99eda)
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) 1994 by Sun Microsystems, Inc.
24  */
25 
26 #ifndef	_SYS_MEMBAR_H
27 #define	_SYS_MEMBAR_H
28 
29 #pragma ident	"%Z%%M%	%I%	%E% SMI"
30 
31 #ifdef	__cplusplus
32 extern "C" {
33 #endif
34 
35 #if defined(_KERNEL)
36 extern void membar_ldld(void);
37 extern void membar_stld(void);
38 extern void membar_ldst(void);
39 extern void membar_stst(void);
40 
41 extern void membar_ldld_ldst(void);
42 extern void membar_ldld_stld(void);
43 extern void membar_ldld_stst(void);
44 
45 extern void membar_stld_ldld(void);
46 extern void membar_stld_ldst(void);
47 extern void membar_stld_stst(void);
48 
49 extern void membar_ldst_ldld(void);
50 extern void membar_ldst_stld(void);
51 extern void membar_ldst_stst(void);
52 
53 extern void membar_stst_ldld(void);
54 extern void membar_stst_stld(void);
55 extern void membar_stst_ldst(void);
56 
57 extern void membar_lookaside(void);
58 extern void membar_memissue(void);
59 extern void membar_sync(void);
60 #endif	/* _KERNEL */
61 
62 #ifdef	__cplusplus
63 }
64 #endif
65 
66 #endif	/* _SYS_MEMBAR_H */
67