19acbbeafSnn /*
29acbbeafSnn  * CDDL HEADER START
39acbbeafSnn  *
49acbbeafSnn  * The contents of this file are subject to the terms of the
59acbbeafSnn  * Common Development and Distribution License (the "License").
69acbbeafSnn  * You may not use this file except in compliance with the License.
79acbbeafSnn  *
89acbbeafSnn  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99acbbeafSnn  * or http://www.opensolaris.org/os/licensing.
109acbbeafSnn  * See the License for the specific language governing permissions
119acbbeafSnn  * and limitations under the License.
129acbbeafSnn  *
139acbbeafSnn  * When distributing Covered Code, include this CDDL HEADER in each
149acbbeafSnn  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
159acbbeafSnn  * If applicable, add the following below this CDDL HEADER, with the
169acbbeafSnn  * fields enclosed by brackets "[]" replaced with your own identifying
179acbbeafSnn  * information: Portions Copyright [yyyy] [name of copyright owner]
189acbbeafSnn  *
199acbbeafSnn  * CDDL HEADER END
209acbbeafSnn  */
219acbbeafSnn /*
22*80e2ca85S  * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
239acbbeafSnn  */
249acbbeafSnn 
259acbbeafSnn #ifndef _SN1_BRAND_H
269acbbeafSnn #define	_SN1_BRAND_H
279acbbeafSnn 
289acbbeafSnn #ifdef	__cplusplus
299acbbeafSnn extern "C" {
309acbbeafSnn #endif
319acbbeafSnn 
32*80e2ca85S #include <sys/brand.h>
33628e3cbeSEdward Pilatowicz 
34628e3cbeSEdward Pilatowicz #define	SN1_BRANDNAME		"sn1"
35628e3cbeSEdward Pilatowicz 
36628e3cbeSEdward Pilatowicz #define	SN1_VERSION_1		1
37628e3cbeSEdward Pilatowicz #define	SN1_VERSION		SN1_VERSION_1
38628e3cbeSEdward Pilatowicz 
39628e3cbeSEdward Pilatowicz #define	SN1_LIB_NAME		"sn1_brand.so.1"
40628e3cbeSEdward Pilatowicz #define	SN1_LINKER_NAME		"ld.so.1"
41628e3cbeSEdward Pilatowicz 
42*80e2ca85S #define	SN1_LIB32		BRAND_NATIVE_DIR "usr/lib/" SN1_LIB_NAME
43628e3cbeSEdward Pilatowicz #define	SN1_LINKER32		"/lib/" SN1_LINKER_NAME
44628e3cbeSEdward Pilatowicz 
45*80e2ca85S #define	SN1_LIB64		BRAND_NATIVE_DIR "usr/lib/64/" SN1_LIB_NAME
46628e3cbeSEdward Pilatowicz #define	SN1_LINKER64		"/lib/64/" SN1_LINKER_NAME
47628e3cbeSEdward Pilatowicz 
48628e3cbeSEdward Pilatowicz #if defined(_LP64)
49628e3cbeSEdward Pilatowicz #define	SN1_LIB		SN1_LIB64
50628e3cbeSEdward Pilatowicz #define	SN1_LINKER	SN1_LINKER64
51628e3cbeSEdward Pilatowicz #else /* !_LP64 */
52628e3cbeSEdward Pilatowicz #define	SN1_LIB		SN1_LIB32
53628e3cbeSEdward Pilatowicz #define	SN1_LINKER	SN1_LINKER32
54628e3cbeSEdward Pilatowicz #endif /* !_LP64 */
55628e3cbeSEdward Pilatowicz 
56628e3cbeSEdward Pilatowicz #if defined(_KERNEL)
57628e3cbeSEdward Pilatowicz 
589acbbeafSnn void sn1_brand_syscall_callback(void);
599acbbeafSnn void sn1_brand_syscall32_callback(void);
609acbbeafSnn 
61628e3cbeSEdward Pilatowicz #if !defined(sparc)
62628e3cbeSEdward Pilatowicz void sn1_brand_sysenter_callback(void);
63628e3cbeSEdward Pilatowicz #endif /* !sparc */
64628e3cbeSEdward Pilatowicz 
65628e3cbeSEdward Pilatowicz #if defined(__amd64)
66628e3cbeSEdward Pilatowicz void sn1_brand_int91_callback(void);
67628e3cbeSEdward Pilatowicz #endif /* __amd64 */
68628e3cbeSEdward Pilatowicz #endif /* _KERNEL */
699acbbeafSnn 
709acbbeafSnn #ifdef	__cplusplus
719acbbeafSnn }
729acbbeafSnn #endif
739acbbeafSnn 
749acbbeafSnn #endif	/* _SN1_BRAND_H */
75