xref: /onnv-gate/usr/src/uts/intel/sys/machbrand.h (revision 12613:4c5722bc28dc)
12712Snn35248 /*
22712Snn35248  * CDDL HEADER START
32712Snn35248  *
42712Snn35248  * The contents of this file are subject to the terms of the
52712Snn35248  * Common Development and Distribution License (the "License").
62712Snn35248  * You may not use this file except in compliance with the License.
72712Snn35248  *
82712Snn35248  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92712Snn35248  * or http://www.opensolaris.org/os/licensing.
102712Snn35248  * See the License for the specific language governing permissions
112712Snn35248  * and limitations under the License.
122712Snn35248  *
132712Snn35248  * When distributing Covered Code, include this CDDL HEADER in each
142712Snn35248  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152712Snn35248  * If applicable, add the following below this CDDL HEADER, with the
162712Snn35248  * fields enclosed by brackets "[]" replaced with your own identifying
172712Snn35248  * information: Portions Copyright [yyyy] [name of copyright owner]
182712Snn35248  *
192712Snn35248  * CDDL HEADER END
202712Snn35248  */
212712Snn35248 /*
22*12613SSurya.Prakki@Sun.COM  * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
232712Snn35248  */
242712Snn35248 
252712Snn35248 #ifndef _SYS_MACHBRAND_H
262712Snn35248 #define	_SYS_MACHBRAND_H
272712Snn35248 
282712Snn35248 #ifdef	__cplusplus
292712Snn35248 extern "C" {
302712Snn35248 #endif
312712Snn35248 
322712Snn35248 #ifndef	_ASM
332712Snn35248 
342712Snn35248 #include <sys/model.h>
352712Snn35248 
362712Snn35248 struct brand_mach_ops {
372712Snn35248 	void	(*b_sysenter)(void);
382712Snn35248 	void	(*b_int91)(void);
392712Snn35248 	void	(*b_syscall)(void);
402712Snn35248 	void	(*b_syscall32)(void);
412712Snn35248 };
422712Snn35248 
432712Snn35248 #endif	/* _ASM */
442712Snn35248 
452712Snn35248 #define	BRAND_CB_SYSENTER	0
46*12613SSurya.Prakki@Sun.COM #define	BRAND_CB_INT91		1
47*12613SSurya.Prakki@Sun.COM #define	BRAND_CB_SYSCALL	2
48*12613SSurya.Prakki@Sun.COM #define	BRAND_CB_SYSCALL32	3
492712Snn35248 
502712Snn35248 #ifdef	__cplusplus
512712Snn35248 }
522712Snn35248 #endif
532712Snn35248 
542712Snn35248 #endif	/* _SYS_MACHBRAND_H */
55