1145171Sdas/*- 2145171Sdas * Copyright (c) 2003 Tim J. Robbins. 3145171Sdas * All rights reserved. 4145171Sdas * 5145171Sdas * Redistribution and use in source and binary forms, with or without 6145171Sdas * modification, are permitted provided that the following conditions 7145171Sdas * are met: 8145171Sdas * 1. Redistributions of source code must retain the above copyright 9145171Sdas * notice, this list of conditions and the following disclaimer. 10145171Sdas * 2. Redistributions in binary form must reproduce the above copyright 11145171Sdas * notice, this list of conditions and the following disclaimer in the 12145171Sdas * documentation and/or other materials provided with the distribution. 13145171Sdas * 14145171Sdas * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15145171Sdas * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16145171Sdas * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17145171Sdas * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18145171Sdas * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19145171Sdas * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20145171Sdas * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21145171Sdas * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22145171Sdas * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23145171Sdas * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24145171Sdas * SUCH DAMAGE. 25145171Sdas * 26145171Sdas * $FreeBSD$ 27145171Sdas */ 28145171Sdas 29145171Sdas#ifndef _NETNCP_NCPIO_H_ 30145171Sdas#define _NETNCP_NCPIO_H_ 31145171Sdas 32145171Sdas#ifndef _KERNEL 33145171Sdas#include <sys/types.h> 34145171Sdas#endif 35145171Sdas#include <sys/ioccom.h> 36145171Sdas 37192760Sattilio#define NCP_NAME "ncp" 38217108Skib 39217108Skibstruct ncp_conn_args; 40struct ncp_buf; 41 42struct ncpioc_connect { 43 struct ncp_conn_args *ioc_li; 44 int *ioc_connhandle; 45}; 46 47struct ncpioc_request { 48 int ioc_connhandle; 49 int ioc_fn; 50 struct ncp_buf *ioc_ncpbuf; 51}; 52 53struct ncpioc_connscan { 54 struct ncp_conn_args *ioc_li; 55 int *ioc_connhandle; 56}; 57 58#define NCPIOC_CONNECT _IOW('N', 100, struct ncpioc_connect) 59#define NCPIOC_REQUEST _IOW('N', 101, struct ncpioc_request) 60#define NCPIOC_CONNSCAN _IOW('N', 102, struct ncpioc_connscan) 61 62#endif /* _NETNCP_NCPIO_H_ */ 63