conf.c revision 1.1
11.1Suwe/*	$NetBSD: conf.c,v 1.1 2006/09/01 21:26:18 uwe 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.1Suwe#if defined(SUPPORT_UFS)
461.1Suwe{ "hd", biosdisk_strategy, biosdisk_open, biosdisk_close, biosdisk_ioctl},
471.1Suwe#endif
481.1Suwe};
491.1Suweint ndevs = sizeof(devsw) / sizeof(devsw[0]);
501.1Suwe
511.1Suwestruct fs_ops file_system[] = {
521.1Suwe#ifdef SUPPORT_UFS
531.1Suwe{ ufs_open, ufs_close, ufs_read, ufs_write, ufs_seek, ufs_stat },
541.1Suwe#endif
551.1Suwe#ifdef SUPPORT_DOSFS
561.1Suwe{ dosfs_open, dosfs_close, dosfs_read, dosfs_write, dosfs_seek, dosfs_stat },
571.1Suwe#endif
581.1Suwe};
591.1Suweint nfsys = sizeof(file_system) / sizeof(file_system[0]);
60