xref: /titanic_51/usr/src/uts/common/ipp/ippctl.h (revision 6f45ec7b0b964c3be967c4880e8867ac1e7763a5)
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 2002 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_IPP_IPPCTL_H
28 #define	_IPP_IPPCTL_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 /*
33  * Header file for the IPP Policy Framework Configuration Driver
34  *
35  * WARNING: Everything in this file is private, belonging to the IPP
36  * subsystem.  The interfaces and declarations made here are subject
37  * to change.
38  */
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
44 /*
45  * nvpair keys
46  */
47 
48 #define	IPPCTL_OP		"ippctl.op"
49 #define	IPPCTL_MODNAME		"ippctl.modname"
50 #define	IPPCTL_MODNAME_ARRAY	"ippctl.modname_array"
51 #define	IPPCTL_ANAME		"ippctl.aname"
52 #define	IPPCTL_ANAME_ARRAY	"ippctl.aname_array"
53 #define	IPPCTL_FLAGS		"ippctl.flags"
54 #define	IPPCTL_RC		"ippctl.rc"
55 
56 /*
57  * ioctl values
58  */
59 
60 #define	IPPCTL_BASE	('I' << 24 | 'P' << 16 | 'P' << 8)
61 
62 #define	IPPCTL_CMD	(IPPCTL_BASE | 0x01)
63 #define	IPPCTL_DATA	(IPPCTL_BASE | 0x02)
64 
65 /*
66  * op values
67  */
68 
69 #define	IPPCTL_OP_ACTION_CREATE		0x00
70 #define	IPPCTL_OP_ACTION_MODIFY		0x01
71 #define	IPPCTL_OP_ACTION_DESTROY	0x02
72 #define	IPPCTL_OP_ACTION_INFO		0x03
73 #define	IPPCTL_OP_ACTION_MOD		0x04
74 #define	IPPCTL_OP_LIST_MODS		0x05
75 #define	IPPCTL_OP_MOD_LIST_ACTIONS	0x06
76 
77 /*
78  * ioctl structure
79  */
80 
81 typedef	struct ippctl_ioctl {
82 	caddr_t		ii_buf;
83 	size_t		ii_buflen;
84 } ippctl_ioctl_t;
85 
86 #ifdef	_SYSCALL32
87 typedef	struct ippctl_ioctl32 {
88 	caddr32_t	ii32_buf;
89 	size32_t	ii32_buflen;
90 } ippctl_ioctl32_t;
91 #endif /* _SYSCALL32 */
92 
93 #ifdef __cplusplus
94 }
95 #endif
96 
97 #endif /* _IPP_IPPCTL_H */
98