xref: /original-bsd/sys/hp300/stand/conf.c (revision 698bcc85)
1 /*
2  * Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)conf.c	7.3 (Berkeley) 05/05/91
8  */
9 
10 #include <sys/param.h>
11 #include "saio.h"
12 
13 extern int	nullsys(), nodev(), noioctl();
14 
15 #ifndef BOOT
16 int	ctstrategy(), ctopen(), ctclose();
17 #define	ctioctl	noioctl
18 #endif
19 
20 int	rdstrategy(), rdopen();
21 #define	rdioctl	noioctl
22 
23 int	sdstrategy(), sdopen();
24 #define	sdioctl	noioctl
25 
26 
27 struct devsw devsw[] = {
28 	{ "rd",	rdstrategy,	rdopen,	nullsys, noioctl },	/* 0 = rd */
29 	{ "sd",	sdstrategy,	sdopen,	nullsys, noioctl },	/* 1 = sd */
30 #ifndef BOOT
31 	{ "ct",	ctstrategy,	ctopen,	ctclose, noioctl },	/* 2 = ct */
32 #endif
33 	{ NULL },
34 };
35 
36 int	ndevs = (sizeof(devsw)/sizeof(devsw[0]));
37