conf.c revision 1.1 1 1.1 dsl /* $NetBSD: conf.c,v 1.1 2003/04/16 22:36:14 dsl Exp $ */
2 1.1 dsl
3 1.1 dsl /*
4 1.1 dsl * Copyright (c) 1997
5 1.1 dsl * Matthias Drochner. All rights reserved.
6 1.1 dsl *
7 1.1 dsl * Redistribution and use in source and binary forms, with or without
8 1.1 dsl * modification, are permitted provided that the following conditions
9 1.1 dsl * are met:
10 1.1 dsl * 1. Redistributions of source code must retain the above copyright
11 1.1 dsl * notice, this list of conditions and the following disclaimer.
12 1.1 dsl * 2. Redistributions in binary form must reproduce the above copyright
13 1.1 dsl * notice, this list of conditions and the following disclaimer in the
14 1.1 dsl * documentation and/or other materials provided with the distribution.
15 1.1 dsl * 3. All advertising materials mentioning features or use of this software
16 1.1 dsl * must display the following acknowledgement:
17 1.1 dsl * This product includes software developed for the NetBSD Project
18 1.1 dsl * by Matthias Drochner.
19 1.1 dsl * 4. The name of the author may not be used to endorse or promote products
20 1.1 dsl * derived from this software without specific prior written permission.
21 1.1 dsl *
22 1.1 dsl * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
23 1.1 dsl * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24 1.1 dsl * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25 1.1 dsl * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
26 1.1 dsl * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
27 1.1 dsl * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 1.1 dsl * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 1.1 dsl * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 1.1 dsl * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31 1.1 dsl * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 1.1 dsl */
33 1.1 dsl
34 1.1 dsl
35 1.1 dsl #include <sys/cdefs.h>
36 1.1 dsl
37 1.1 dsl #include <sys/types.h>
38 1.1 dsl
39 1.1 dsl #include <lib/libsa/stand.h>
40 1.1 dsl #include <lib/libsa/ufs.h>
41 1.1 dsl #include <lib/libsa/lfs.h>
42 1.1 dsl #ifdef SUPPORT_USTARFS
43 1.1 dsl #include <lib/libsa/ustarfs.h>
44 1.1 dsl #endif
45 1.1 dsl #ifdef SUPPORT_DOSFS
46 1.1 dsl #include <lib/libsa/dosfs.h>
47 1.1 dsl #endif
48 1.1 dsl
49 1.1 dsl #include <biosdisk.h>
50 1.1 dsl
51 1.1 dsl struct devsw devsw[] = {
52 1.1 dsl {"disk", biosdiskstrategy, biosdiskopen, biosdiskclose, biosdiskioctl},
53 1.1 dsl };
54 1.1 dsl int ndevs = sizeof(devsw) / sizeof(struct devsw);
55 1.1 dsl
56 1.1 dsl struct fs_ops file_system[] = {
57 1.1 dsl #ifdef SUPPORT_USTARFS
58 1.1 dsl FS_OPS(ustarfs),
59 1.1 dsl #endif
60 1.1 dsl FS_OPS(ffsv1), FS_OPS(ffsv2),
61 1.1 dsl FS_OPS(lfsv1), FS_OPS(lfsv2),
62 1.1 dsl #ifdef SUPPORT_DOSFS
63 1.1 dsl FS_OPS(dosfs),
64 1.1 dsl #endif
65 1.1 dsl };
66 1.1 dsl int nfsys = sizeof(file_system) / sizeof(struct fs_ops);
67