xref: /illumos-gate/usr/src/uts/common/sys/pppt_ioctl.h (revision 45039663)
1*45039663SJohn Forte /*
2*45039663SJohn Forte  * CDDL HEADER START
3*45039663SJohn Forte  *
4*45039663SJohn Forte  * The contents of this file are subject to the terms of the
5*45039663SJohn Forte  * Common Development and Distribution License (the "License").
6*45039663SJohn Forte  * You may not use this file except in compliance with the License.
7*45039663SJohn Forte  *
8*45039663SJohn Forte  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*45039663SJohn Forte  * or http://www.opensolaris.org/os/licensing.
10*45039663SJohn Forte  * See the License for the specific language governing permissions
11*45039663SJohn Forte  * and limitations under the License.
12*45039663SJohn Forte  *
13*45039663SJohn Forte  * When distributing Covered Code, include this CDDL HEADER in each
14*45039663SJohn Forte  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*45039663SJohn Forte  * If applicable, add the following below this CDDL HEADER, with the
16*45039663SJohn Forte  * fields enclosed by brackets "[]" replaced with your own identifying
17*45039663SJohn Forte  * information: Portions Copyright [yyyy] [name of copyright owner]
18*45039663SJohn Forte  *
19*45039663SJohn Forte  * CDDL HEADER END
20*45039663SJohn Forte  */
21*45039663SJohn Forte /*
22*45039663SJohn Forte  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*45039663SJohn Forte  * Use is subject to license terms.
24*45039663SJohn Forte  */
25*45039663SJohn Forte 
26*45039663SJohn Forte #ifndef	_SYS_PPPT_IOCTL_H
27*45039663SJohn Forte #define	_SYS_PPPT_IOCTL_H
28*45039663SJohn Forte 
29*45039663SJohn Forte #ifdef	__cplusplus
30*45039663SJohn Forte extern "C" {
31*45039663SJohn Forte #endif
32*45039663SJohn Forte 
33*45039663SJohn Forte #define	PPPT_VERSION_1	1
34*45039663SJohn Forte 
35*45039663SJohn Forte /*
36*45039663SJohn Forte  * map ioctls
37*45039663SJohn Forte  */
38*45039663SJohn Forte #define	PPPT_IOC (('P' << 24) | ('P' << 16) | ('P' << 8))
39*45039663SJohn Forte #define	PPPT_INSTALL_DOOR	(PPPT_IOC|1)	/* to talk to daemon */
40*45039663SJohn Forte #define	PPPT_MESSAGE		(PPPT_IOC|2)	/* data from peer */
41*45039663SJohn Forte 
42*45039663SJohn Forte 
43*45039663SJohn Forte typedef struct _pppt_iocdata {
44*45039663SJohn Forte 	uint32_t	pppt_version;
45*45039663SJohn Forte 	uint32_t	pppt_error;
46*45039663SJohn Forte 	uint32_t	pppt_door_fd;
47*45039663SJohn Forte 	uint32_t	pppt_buf_size;
48*45039663SJohn Forte 	uint64_t	pppt_buf;
49*45039663SJohn Forte } pppt_iocdata_t;
50*45039663SJohn Forte 
51*45039663SJohn Forte #ifdef	__cplusplus
52*45039663SJohn Forte }
53*45039663SJohn Forte #endif
54*45039663SJohn Forte 
55*45039663SJohn Forte #endif	/* _SYS_PPPT_IOCTL_H */
56