conf.c revision 1.3
11.3Stsutsui/*	$NetBSD: conf.c,v 1.3 2009/04/22 17:13:36 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.3Stsutsui#include <lib/libsa/ustarfs.h>
421.1Suwe
431.1Suwe#include "biosdisk.h"
441.1Suwe
451.1Suwestruct devsw devsw[] = {
461.2Stsutsui	{ "hd", biosdisk_strategy, biosdisk_open, biosdisk_close,
471.2Stsutsui	    biosdisk_ioctl},
481.1Suwe};
491.1Suweint ndevs = sizeof(devsw) / sizeof(devsw[0]);
501.1Suwe
511.1Suwestruct fs_ops file_system[] = {
521.2Stsutsui#ifdef SUPPORT_FFSv1
531.2Stsutsui	FS_OPS(ffsv1),
541.2Stsutsui#endif
551.2Stsutsui#ifdef SUPPORT_FFSv2
561.2Stsutsui	FS_OPS(ffsv2),
571.1Suwe#endif
581.1Suwe#ifdef SUPPORT_DOSFS
591.2Stsutsui	FS_OPS(dosfs),
601.1Suwe#endif
611.3Stsutsui#ifdef SUPPORT_USTARFS
621.3Stsutsui	FS_OPS(ustarfs),
631.3Stsutsui#endif
641.1Suwe};
651.1Suweint nfsys = sizeof(file_system) / sizeof(file_system[0]);
66