conf.c revision 1.2
11.2Stsutsui/* $NetBSD: conf.c,v 1.2 2009/04/21 15:17:58 tsutsui Exp $ */ 21.1Suwe 31.1Suwe/* 41.1Suwe * Copyright (c) 1996 51.1Suwe * Matthias Drochner. All rights reserved. 61.1Suwe * 71.1Suwe * Redistribution and use in source and binary forms, with or without 81.1Suwe * modification, are permitted provided that the following conditions 91.1Suwe * are met: 101.1Suwe * 1. Redistributions of source code must retain the above copyright 111.1Suwe * notice, this list of conditions and the following disclaimer. 121.1Suwe * 2. Redistributions in binary form must reproduce the above copyright 131.1Suwe * notice, this list of conditions and the following disclaimer in the 141.1Suwe * documentation and/or other materials provided with the distribution. 151.1Suwe * 3. All advertising materials mentioning features or use of this software 161.1Suwe * must display the following acknowledgement: 171.1Suwe * This product includes software developed for the NetBSD Project 181.1Suwe * by Matthias Drochner. 191.1Suwe * 4. The name of the author may not be used to endorse or promote products 201.1Suwe * derived from this software without specific prior written permission. 211.1Suwe * 221.1Suwe * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 231.1Suwe * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 241.1Suwe * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 251.1Suwe * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 261.1Suwe * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 271.1Suwe * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 281.1Suwe * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 291.1Suwe * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 301.1Suwe * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 311.1Suwe * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 321.1Suwe * 331.1Suwe */ 341.1Suwe 351.1Suwe#include <sys/types.h> 361.1Suwe 371.1Suwe#include <lib/libsa/stand.h> 381.1Suwe 391.1Suwe#include <lib/libsa/ufs.h> 401.1Suwe#include <lib/libsa/dosfs.h> 411.1Suwe 421.1Suwe#include "biosdisk.h" 431.1Suwe 441.1Suwestruct devsw devsw[] = { 451.2Stsutsui { "hd", biosdisk_strategy, biosdisk_open, biosdisk_close, 461.2Stsutsui biosdisk_ioctl}, 471.1Suwe}; 481.1Suweint ndevs = sizeof(devsw) / sizeof(devsw[0]); 491.1Suwe 501.1Suwestruct fs_ops file_system[] = { 511.2Stsutsui#ifdef SUPPORT_FFSv1 521.2Stsutsui FS_OPS(ffsv1), 531.2Stsutsui#endif 541.2Stsutsui#ifdef SUPPORT_FFSv2 551.2Stsutsui FS_OPS(ffsv2), 561.1Suwe#endif 571.1Suwe#ifdef SUPPORT_DOSFS 581.2Stsutsui FS_OPS(dosfs), 591.1Suwe#endif 601.1Suwe}; 611.1Suweint nfsys = sizeof(file_system) / sizeof(file_system[0]); 62