xref: /illumos-gate/usr/src/uts/i86pc/sys/cpr_impl.h (revision 2d6eb4a5)
1*2df1fe9cSrandyf /*
2*2df1fe9cSrandyf  * CDDL HEADER START
3*2df1fe9cSrandyf  *
4*2df1fe9cSrandyf  * The contents of this file are subject to the terms of the
5*2df1fe9cSrandyf  * Common Development and Distribution License (the "License").
6*2df1fe9cSrandyf  * You may not use this file except in compliance with the License.
7*2df1fe9cSrandyf  *
8*2df1fe9cSrandyf  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*2df1fe9cSrandyf  * or http://www.opensolaris.org/os/licensing.
10*2df1fe9cSrandyf  * See the License for the specific language governing permissions
11*2df1fe9cSrandyf  * and limitations under the License.
12*2df1fe9cSrandyf  *
13*2df1fe9cSrandyf  * When distributing Covered Code, include this CDDL HEADER in each
14*2df1fe9cSrandyf  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*2df1fe9cSrandyf  * If applicable, add the following below this CDDL HEADER, with the
16*2df1fe9cSrandyf  * fields enclosed by brackets "[]" replaced with your own identifying
17*2df1fe9cSrandyf  * information: Portions Copyright [yyyy] [name of copyright owner]
18*2df1fe9cSrandyf  *
19*2df1fe9cSrandyf  * CDDL HEADER END
20*2df1fe9cSrandyf  */
21*2df1fe9cSrandyf /*
22*2df1fe9cSrandyf  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*2df1fe9cSrandyf  * Use is subject to license terms.
24*2df1fe9cSrandyf  */
25*2df1fe9cSrandyf 
26*2df1fe9cSrandyf #ifndef	_SYS_CPR_IMPL_H
27*2df1fe9cSrandyf #define	_SYS_CPR_IMPL_H
28*2df1fe9cSrandyf 
29*2df1fe9cSrandyf #ifdef	__cplusplus
30*2df1fe9cSrandyf extern "C" {
31*2df1fe9cSrandyf #endif
32*2df1fe9cSrandyf 
33*2df1fe9cSrandyf 
34*2df1fe9cSrandyf #ifndef _ASM
35*2df1fe9cSrandyf 
36*2df1fe9cSrandyf #include <sys/processor.h>
37*2df1fe9cSrandyf #include <sys/machparam.h>
38*2df1fe9cSrandyf #include <sys/vnode.h>
39*2df1fe9cSrandyf #include <sys/pte.h>
40*2df1fe9cSrandyf 
41*2df1fe9cSrandyf /*
42*2df1fe9cSrandyf  * This file contains machine dependent information for CPR
43*2df1fe9cSrandyf  */
44*2df1fe9cSrandyf #define	CPR_MACHTYPE_X86	0x5856		/* 'X'0t86 */
45*2df1fe9cSrandyf typedef uint64_t cpr_ptr;
46*2df1fe9cSrandyf typedef uint64_t cpr_ext;
47*2df1fe9cSrandyf 
48*2df1fe9cSrandyf 
49*2df1fe9cSrandyf /*
50*2df1fe9cSrandyf  * processor info
51*2df1fe9cSrandyf  */
52*2df1fe9cSrandyf struct i86pc_cpu_info {
53*2df1fe9cSrandyf 	pnode_t node;
54*2df1fe9cSrandyf 	processorid_t cpu_id;
55*2df1fe9cSrandyf };
56*2df1fe9cSrandyf 
57*2df1fe9cSrandyf extern void i_cpr_machdep_setup(void);
58*2df1fe9cSrandyf extern void i_cpr_enable_intr(void);
59*2df1fe9cSrandyf extern void i_cpr_stop_intr(void);
60*2df1fe9cSrandyf extern void i_cpr_handle_xc(int);
61*2df1fe9cSrandyf extern int i_cpr_check_cprinfo(void);
62*2df1fe9cSrandyf extern int i_cpr_reusable_supported(void);
63*2df1fe9cSrandyf 
64*2df1fe9cSrandyf #endif /* _ASM */
65*2df1fe9cSrandyf 
66*2df1fe9cSrandyf #ifdef	__cplusplus
67*2df1fe9cSrandyf }
68*2df1fe9cSrandyf #endif
69*2df1fe9cSrandyf 
70*2df1fe9cSrandyf #endif	/* _SYS_CPR_IMPL_H */
71