xref: /original-bsd/sys/pmax/stand/conf.c (revision d4dae11c)
1 /*
2  * Copyright (c) 1992 Regents of the University of California.
3  * All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Ralph Campbell.
7  *
8  * %sccs.include.redist.c%
9  *
10  *	@(#)conf.c	7.4 (Berkeley) 10/24/92
11  */
12 
13 #include <stand/stand.h>
14 #include <pmax/stand/samachdep.h>
15 
16 extern int	nullsys(), nodev(), noioctl();
17 
18 #if NRZ > 0
19 int	rzstrategy(), rzopen(), rzclose();
20 #else
21 #define	rzstrategy	nodev
22 #define	rzopen		nodev
23 #define	rzclose		nodev
24 #endif
25 #define	rzioctl		noioctl
26 
27 #if NTZ > 0 && !defined(BOOT)
28 int	tzstrategy(), tzopen(), tzclose();
29 #else
30 #define	tzstrategy	nodev
31 #define	tzopen		nodev
32 #define	tzclose		nodev
33 #endif
34 #define	tzioctl		noioctl
35 
36 
37 struct devsw devsw[] = {
38 	{ "rz",	rzstrategy,	rzopen,	rzclose,	rzioctl }, /*0*/
39 	{ "tz",	tzstrategy,	tzopen,	tzclose,	tzioctl }, /*1*/
40 };
41 
42 int	ndevs = (sizeof(devsw)/sizeof(devsw[0]));
43