1*6d3ceb1dSskrll /* $NetBSD: conf.c,v 1.1 2014/02/24 07:23:43 skrll Exp $ */ 2*6d3ceb1dSskrll 3*6d3ceb1dSskrll /* $OpenBSD: conf.c,v 1.12 2000/05/30 22:02:28 mickey Exp $ */ 4*6d3ceb1dSskrll 5*6d3ceb1dSskrll /* 6*6d3ceb1dSskrll * Copyright (c) 1998-2004 Michael Shalayeff 7*6d3ceb1dSskrll * All rights reserved. 8*6d3ceb1dSskrll * 9*6d3ceb1dSskrll * Redistribution and use in source and binary forms, with or without 10*6d3ceb1dSskrll * modification, are permitted provided that the following conditions 11*6d3ceb1dSskrll * are met: 12*6d3ceb1dSskrll * 1. Redistributions of source code must retain the above copyright 13*6d3ceb1dSskrll * notice, this list of conditions and the following disclaimer. 14*6d3ceb1dSskrll * 2. Redistributions in binary form must reproduce the above copyright 15*6d3ceb1dSskrll * notice, this list of conditions and the following disclaimer in the 16*6d3ceb1dSskrll * documentation and/or other materials provided with the distribution. 17*6d3ceb1dSskrll * 18*6d3ceb1dSskrll * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 19*6d3ceb1dSskrll * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 20*6d3ceb1dSskrll * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21*6d3ceb1dSskrll * IN NO EVENT SHALL THE AUTHOR OR HIS RELATIVES BE LIABLE FOR ANY DIRECT, 22*6d3ceb1dSskrll * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23*6d3ceb1dSskrll * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24*6d3ceb1dSskrll * SERVICES; LOSS OF MIND, USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25*6d3ceb1dSskrll * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 26*6d3ceb1dSskrll * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 27*6d3ceb1dSskrll * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 28*6d3ceb1dSskrll * THE POSSIBILITY OF SUCH DAMAGE. 29*6d3ceb1dSskrll */ 30*6d3ceb1dSskrll 31*6d3ceb1dSskrll #include <sys/types.h> 32*6d3ceb1dSskrll #include <arch/hppa/stand/common/libsa.h> 33*6d3ceb1dSskrll #include <lib/libsa/ufs.h> 34*6d3ceb1dSskrll #include <lib/libsa/cd9660.h> 35*6d3ceb1dSskrll #include <dev/cons.h> 36*6d3ceb1dSskrll 37*6d3ceb1dSskrll const char version[] = "0.6"; 38*6d3ceb1dSskrll int debug = 0; 39*6d3ceb1dSskrll 40*6d3ceb1dSskrll struct fs_ops file_system[] = { 41*6d3ceb1dSskrll FS_OPS(lif), 42*6d3ceb1dSskrll FS_OPS(ffsv1), 43*6d3ceb1dSskrll FS_OPS(ffsv2), 44*6d3ceb1dSskrll FS_OPS(cd9660), 45*6d3ceb1dSskrll }; 46*6d3ceb1dSskrll int nfsys = NENTS(file_system); 47*6d3ceb1dSskrll 48*6d3ceb1dSskrll struct devsw devsw[] = { 49*6d3ceb1dSskrll { "dk", iodcstrategy, dkopen, dkclose, noioctl }, 50*6d3ceb1dSskrll { "ct", iodcstrategy, ctopen, ctclose, noioctl }, 51*6d3ceb1dSskrll { "lf", iodcstrategy, lfopen, lfclose, noioctl } 52*6d3ceb1dSskrll }; 53*6d3ceb1dSskrll int ndevs = NENTS(devsw); 54*6d3ceb1dSskrll 55*6d3ceb1dSskrll struct consdev constab[] = { 56*6d3ceb1dSskrll { ite_probe, ite_init, ite_getc, ite_putc }, 57*6d3ceb1dSskrll { NULL } 58*6d3ceb1dSskrll }; 59*6d3ceb1dSskrll struct consdev *cn_tab; 60*6d3ceb1dSskrll 61