xref: /openbsd/sys/arch/landisk/stand/boot/conf.c (revision d415bd75)
1 /*	$OpenBSD: conf.c,v 1.18 2022/09/02 10:15:35 miod Exp $	*/
2 
3 /*
4  * Copyright (c) 2006 Michael Shalayeff
5  * All rights reserved.
6  *
7  * Permission to use, copy, modify, and distribute this software for any
8  * purpose with or without fee is hereby granted, provided that the above
9  * copyright notice and this permission notice appear in all copies.
10  *
11  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15  * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER IN
16  * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
17  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 #include <sys/param.h>
21 #include <libsa.h>
22 #include <lib/libsa/ufs.h>
23 #include <lib/libsa/ufs2.h>
24 #include <dev/cons.h>
25 
26 const char version[] = "1.11";
27 #ifdef DEBUG
28 int	debug = 1;
29 #endif
30 
31 struct fs_ops file_system[] = {
32 	{ ufs_open,    ufs_close,    ufs_read,    ufs_write,    ufs_seek,
33 	  ufs_stat,    ufs_readdir,  ufs_fchmod },
34 	{ ufs2_open,   ufs2_close,   ufs2_read,   ufs2_write,   ufs2_seek,
35 	  ufs2_stat,   ufs2_readdir, ufs2_fchmod }
36 };
37 int nfsys = nitems(file_system);
38 
39 struct devsw	devsw[] = {
40 	{ "dk", blkdevstrategy, blkdevopen, blkdevclose, noioctl }
41 };
42 int ndevs = nitems(devsw);
43 
44 struct consdev constab[] = {
45 	{ scif_cnprobe, scif_cninit, scif_cngetc, scif_cnputc },
46 	{ NULL }
47 };
48 struct consdev *cn_tab;
49