141681Sdfr/* 08 Nov 1998*/ 241681Sdfr/* 341681Sdfr * cdev.h - header for sample kld module implementing a character device 441681Sdfr * driver. 541681Sdfr * 641681Sdfr * 08 Nov 1998 Rajesh Vaidheeswarran 741681Sdfr * 841681Sdfr * Copyright (c) 1998 Rajesh Vaidheeswarran 941681Sdfr * All rights reserved. 1041681Sdfr * 1141681Sdfr * Redistribution and use in source and binary forms, with or without 1241681Sdfr * modification, are permitted provided that the following conditions 1341681Sdfr * are met: 1441681Sdfr * 1. Redistributions of source code must retain the above copyright 1541681Sdfr * notice, this list of conditions and the following disclaimer. 1641681Sdfr * 2. Redistributions in binary form must reproduce the above copyright 1741681Sdfr * notice, this list of conditions and the following disclaimer in the 1841681Sdfr * documentation and/or other materials provided with the distribution. 1941681Sdfr * 3. All advertising materials mentioning features or use of this software 2041681Sdfr * must display the following acknowledgement: 2141681Sdfr * This product includes software developed by Rajesh Vaidheeswarran. 2241681Sdfr * 4. The name Rajesh Vaidheeswarran may not be used to endorse or promote 2341681Sdfr * products derived from this software without specific prior written 2441681Sdfr * permission. 2541681Sdfr * 2641681Sdfr * THIS SOFTWARE IS PROVIDED BY RAJESH VAIDHEESWARRAN ``AS IS'' AND ANY 2741681Sdfr * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2841681Sdfr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2941681Sdfr * ARE DISCLAIMED. IN NO EVENT SHALL THE RAJESH VAIDHEESWARRAN BE LIABLE 3041681Sdfr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3141681Sdfr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3241681Sdfr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3341681Sdfr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3441681Sdfr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3541681Sdfr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3641681Sdfr * SUCH DAMAGE. 3741681Sdfr * 3841681Sdfr * Copyright (c) 1993 Terrence R. Lambert. 3941681Sdfr * All rights reserved. 4041681Sdfr * 4141681Sdfr * Redistribution and use in source and binary forms, with or without 4241681Sdfr * modification, are permitted provided that the following conditions 4341681Sdfr * are met: 4441681Sdfr * 1. Redistributions of source code must retain the above copyright 4541681Sdfr * notice, this list of conditions and the following disclaimer. 4641681Sdfr * 2. Redistributions in binary form must reproduce the above copyright 4741681Sdfr * notice, this list of conditions and the following disclaimer in the 4841681Sdfr * documentation and/or other materials provided with the distribution. 4941681Sdfr * 3. All advertising materials mentioning features or use of this software 5041681Sdfr * must display the following acknowledgement: 5141681Sdfr * This product includes software developed by Terrence R. Lambert. 5241681Sdfr * 4. The name Terrence R. Lambert may not be used to endorse or promote 5341681Sdfr * products derived from this software without specific prior written 5441681Sdfr * permission. 5541681Sdfr * 5641681Sdfr * THIS SOFTWARE IS PROVIDED BY TERRENCE R. LAMBERT ``AS IS'' AND ANY 5741681Sdfr * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 5841681Sdfr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 5941681Sdfr * ARE DISCLAIMED. IN NO EVENT SHALL THE TERRENCE R. LAMBERT BE LIABLE 6041681Sdfr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 6141681Sdfr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 6241681Sdfr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 6341681Sdfr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 6441681Sdfr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 6541681Sdfr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 6641681Sdfr * SUCH DAMAGE. 6741681Sdfr * 6866549Ssobomax * 6966549Ssobomax * $FreeBSD: releng/10.3/share/examples/kld/cdev/module/cdev.h 66549 2000-10-02 14:14:07Z sobomax $ 7041681Sdfr */ 7141681Sdfr 7241681Sdfr#ifndef __CDEV_H_ 7341681Sdfr#define __CDEV_H_ 7441681Sdfr 7566549Ssobomaxd_open_t mydev_open; 7666549Ssobomaxd_close_t mydev_close; 7766549Ssobomaxd_ioctl_t mydev_ioctl; 7866549Ssobomaxd_read_t mydev_read; 7966549Ssobomaxd_write_t mydev_write; 8041681Sdfr 8141681Sdfr#endif 82