1*68fe5b6fSgarbled /* $NetBSD: conf.c,v 1.1 2007/12/17 19:09:47 garbled Exp $ */ 2*68fe5b6fSgarbled 3*68fe5b6fSgarbled /* 4*68fe5b6fSgarbled * Copyright (c) 1982, 1986, 1990, 1993 5*68fe5b6fSgarbled * The Regents of the University of California. All rights reserved. 6*68fe5b6fSgarbled * 7*68fe5b6fSgarbled * Redistribution and use in source and binary forms, with or without 8*68fe5b6fSgarbled * modification, are permitted provided that the following conditions 9*68fe5b6fSgarbled * are met: 10*68fe5b6fSgarbled * 1. Redistributions of source code must retain the above copyright 11*68fe5b6fSgarbled * notice, this list of conditions and the following disclaimer. 12*68fe5b6fSgarbled * 2. Redistributions in binary form must reproduce the above copyright 13*68fe5b6fSgarbled * notice, this list of conditions and the following disclaimer in the 14*68fe5b6fSgarbled * documentation and/or other materials provided with the distribution. 15*68fe5b6fSgarbled * 3. Neither the name of the University nor the names of its contributors 16*68fe5b6fSgarbled * may be used to endorse or promote products derived from this software 17*68fe5b6fSgarbled * without specific prior written permission. 18*68fe5b6fSgarbled * 19*68fe5b6fSgarbled * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 20*68fe5b6fSgarbled * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21*68fe5b6fSgarbled * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22*68fe5b6fSgarbled * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 23*68fe5b6fSgarbled * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24*68fe5b6fSgarbled * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25*68fe5b6fSgarbled * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26*68fe5b6fSgarbled * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27*68fe5b6fSgarbled * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28*68fe5b6fSgarbled * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29*68fe5b6fSgarbled * SUCH DAMAGE. 30*68fe5b6fSgarbled * 31*68fe5b6fSgarbled * @(#)conf.c 8.1 (Berkeley) 6/10/93 32*68fe5b6fSgarbled */ 33*68fe5b6fSgarbled 34*68fe5b6fSgarbled #include <lib/libsa/stand.h> 35*68fe5b6fSgarbled 36*68fe5b6fSgarbled int instrategy(void *, int , daddr_t, size_t, void *, size_t *); 37*68fe5b6fSgarbled int inopen(struct open_file *, ...); 38*68fe5b6fSgarbled int inclose(struct open_file *); 39*68fe5b6fSgarbled 40*68fe5b6fSgarbled struct devsw devsw[] = { 41*68fe5b6fSgarbled { "in", instrategy, inopen, inclose, noioctl }, 42*68fe5b6fSgarbled }; 43*68fe5b6fSgarbled 44*68fe5b6fSgarbled int ndevs = (sizeof (devsw) / sizeof (devsw[0])); 45