1*86d7f5d3SJohn Marino /* 08 Nov 1998*/ 2*86d7f5d3SJohn Marino /* 3*86d7f5d3SJohn Marino * cdev.h - header for sample kld module implementing a character device 4*86d7f5d3SJohn Marino * driver. 5*86d7f5d3SJohn Marino * 6*86d7f5d3SJohn Marino * 08 Nov 1998 Rajesh Vaidheeswarran 7*86d7f5d3SJohn Marino * 8*86d7f5d3SJohn Marino * Copyright (c) 1998 Rajesh Vaidheeswarran 9*86d7f5d3SJohn Marino * All rights reserved. 10*86d7f5d3SJohn Marino * 11*86d7f5d3SJohn Marino * Redistribution and use in source and binary forms, with or without 12*86d7f5d3SJohn Marino * modification, are permitted provided that the following conditions 13*86d7f5d3SJohn Marino * are met: 14*86d7f5d3SJohn Marino * 1. Redistributions of source code must retain the above copyright 15*86d7f5d3SJohn Marino * notice, this list of conditions and the following disclaimer. 16*86d7f5d3SJohn Marino * 2. Redistributions in binary form must reproduce the above copyright 17*86d7f5d3SJohn Marino * notice, this list of conditions and the following disclaimer in the 18*86d7f5d3SJohn Marino * documentation and/or other materials provided with the distribution. 19*86d7f5d3SJohn Marino * 3. All advertising materials mentioning features or use of this software 20*86d7f5d3SJohn Marino * must display the following acknowledgement: 21*86d7f5d3SJohn Marino * This product includes software developed by Rajesh Vaidheeswarran. 22*86d7f5d3SJohn Marino * 4. The name Rajesh Vaidheeswarran may not be used to endorse or promote 23*86d7f5d3SJohn Marino * products derived from this software without specific prior written 24*86d7f5d3SJohn Marino * permission. 25*86d7f5d3SJohn Marino * 26*86d7f5d3SJohn Marino * THIS SOFTWARE IS PROVIDED BY RAJESH VAIDHEESWARRAN ``AS IS'' AND ANY 27*86d7f5d3SJohn Marino * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 28*86d7f5d3SJohn Marino * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 29*86d7f5d3SJohn Marino * ARE DISCLAIMED. IN NO EVENT SHALL THE RAJESH VAIDHEESWARRAN BE LIABLE 30*86d7f5d3SJohn Marino * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 31*86d7f5d3SJohn Marino * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32*86d7f5d3SJohn Marino * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33*86d7f5d3SJohn Marino * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34*86d7f5d3SJohn Marino * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35*86d7f5d3SJohn Marino * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36*86d7f5d3SJohn Marino * SUCH DAMAGE. 37*86d7f5d3SJohn Marino * 38*86d7f5d3SJohn Marino * Copyright (c) 1993 Terrence R. Lambert. 39*86d7f5d3SJohn Marino * All rights reserved. 40*86d7f5d3SJohn Marino * 41*86d7f5d3SJohn Marino * Redistribution and use in source and binary forms, with or without 42*86d7f5d3SJohn Marino * modification, are permitted provided that the following conditions 43*86d7f5d3SJohn Marino * are met: 44*86d7f5d3SJohn Marino * 1. Redistributions of source code must retain the above copyright 45*86d7f5d3SJohn Marino * notice, this list of conditions and the following disclaimer. 46*86d7f5d3SJohn Marino * 2. Redistributions in binary form must reproduce the above copyright 47*86d7f5d3SJohn Marino * notice, this list of conditions and the following disclaimer in the 48*86d7f5d3SJohn Marino * documentation and/or other materials provided with the distribution. 49*86d7f5d3SJohn Marino * 3. All advertising materials mentioning features or use of this software 50*86d7f5d3SJohn Marino * must display the following acknowledgement: 51*86d7f5d3SJohn Marino * This product includes software developed by Terrence R. Lambert. 52*86d7f5d3SJohn Marino * 4. The name Terrence R. Lambert may not be used to endorse or promote 53*86d7f5d3SJohn Marino * products derived from this software without specific prior written 54*86d7f5d3SJohn Marino * permission. 55*86d7f5d3SJohn Marino * 56*86d7f5d3SJohn Marino * THIS SOFTWARE IS PROVIDED BY TERRENCE R. LAMBERT ``AS IS'' AND ANY 57*86d7f5d3SJohn Marino * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 58*86d7f5d3SJohn Marino * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 59*86d7f5d3SJohn Marino * ARE DISCLAIMED. IN NO EVENT SHALL THE TERRENCE R. LAMBERT BE LIABLE 60*86d7f5d3SJohn Marino * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 61*86d7f5d3SJohn Marino * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 62*86d7f5d3SJohn Marino * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 63*86d7f5d3SJohn Marino * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 64*86d7f5d3SJohn Marino * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 65*86d7f5d3SJohn Marino * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 66*86d7f5d3SJohn Marino * SUCH DAMAGE. 67*86d7f5d3SJohn Marino * 68*86d7f5d3SJohn Marino * 69*86d7f5d3SJohn Marino * $FreeBSD: src/share/examples/kld/cdev/module/cdev.h,v 1.3.2.1 2000/10/25 09:02:34 sobomax Exp $ 70*86d7f5d3SJohn Marino * $DragonFly: src/share/examples/kld/cdev/module/cdev.h,v 1.2 2003/06/17 04:36:57 dillon Exp $ 71*86d7f5d3SJohn Marino */ 72*86d7f5d3SJohn Marino 73*86d7f5d3SJohn Marino #ifndef __CDEV_H_ 74*86d7f5d3SJohn Marino #define __CDEV_H_ 75*86d7f5d3SJohn Marino 76*86d7f5d3SJohn Marino d_open_t mydev_open; 77*86d7f5d3SJohn Marino d_close_t mydev_close; 78*86d7f5d3SJohn Marino d_ioctl_t mydev_ioctl; 79*86d7f5d3SJohn Marino d_read_t mydev_read; 80*86d7f5d3SJohn Marino d_write_t mydev_write; 81*86d7f5d3SJohn Marino 82*86d7f5d3SJohn Marino #endif 83