xref: /illumos-gate/usr/src/uts/i86pc/sys/psm_modctl.h (revision dd72704bd9e794056c558153663c739e2012d721)
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_PSM_MODCTL_H
27 #define	_SYS_PSM_MODCTL_H
28 
29 /*
30  * loadable module support.
31  */
32 
33 #ifdef	__cplusplus
34 extern "C" {
35 #endif
36 
37 struct psm_sw {
38 	struct psm_sw	*psw_forw;
39 	struct psm_sw	*psw_back;
40 	struct psm_info *psw_infop;
41 	int	psw_flag;
42 };
43 
44 #define	PSM_MOD_INSTALL		0x0001
45 #define	PSM_MOD_IDENTIFY	0x0002
46 
47 /* For psm */
48 struct modlpsm {
49 	struct mod_ops		*psm_modops;
50 	char			*psm_linkinfo;
51 	struct psm_sw		*psm_swp;
52 };
53 
54 extern struct psm_sw *psmsw;
55 extern kmutex_t psmsw_lock;
56 
57 #ifdef	__cplusplus
58 }
59 #endif
60 
61 #endif	/* _SYS_PSM_MODCTL_H */
62