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