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