xref: /csrg-svn/sys/tahoe/stand/conf.c (revision 33653)
1*33653Sbostic /*
2*33653Sbostic  * Copyright (c) 1988 Regents of the University of California.
3*33653Sbostic  * All rights reserved.
4*33653Sbostic  *
5*33653Sbostic  * Redistribution and use in source and binary forms are permitted
6*33653Sbostic  * provided that this notice is preserved and that due credit is given
7*33653Sbostic  * to the University of California at Berkeley. The name of the University
8*33653Sbostic  * may not be used to endorse or promote products derived from this
9*33653Sbostic  * software without specific prior written permission. This software
10*33653Sbostic  * is provided ``as is'' without express or implied warranty.
11*33653Sbostic  *
12*33653Sbostic  *	@(#)conf.c	1.5 (Berkeley) 03/04/88
13*33653Sbostic  */
1425866Ssam 
1525866Ssam #include "param.h"
1625866Ssam #include "inode.h"
1725866Ssam #include "fs.h"
1825866Ssam #include "saio.h"
1925866Ssam 
20*33653Sbostic extern int	nullsys(), nodev(), noioctl();
2125866Ssam 
2229566Ssam int	udstrategy(), udopen();
2329566Ssam int	vdstrategy(), vdopen();
2432555Sbostic int	hdstrategy(), hdopen();
2529566Ssam int	cystrategy(), cyopen(), cyclose();
2625866Ssam 
2725866Ssam struct devsw devsw[] = {
28*33653Sbostic 	{ "ud",	udstrategy,	udopen,	nullsys, noioctl },  /* 0 = ud */
29*33653Sbostic 	{ "dk",	vdstrategy,	vdopen,	nullsys, noioctl },  /* 1 = ht */
30*33653Sbostic 	{ "hd",	hdstrategy,	hdopen,	nullsys, noioctl },  /* 2 = hd */
3129566Ssam #ifdef notdef
32*33653Sbostic 	{ "xp",	xpstrategy,	xpopen,	nullsys, noioctl },  /* 3 = xp */
3329566Ssam #else
34*33653Sbostic 	{ "xp",	nodev,		nodev,	nullsys, noioctl },
3529566Ssam #endif
36*33653Sbostic 	{ "cy",	cystrategy,	cyopen,	cyclose, noioctl },  /* 4 = cy */
3729566Ssam 	{ 0 }
3825866Ssam };
39*33653Sbostic int	ndevs = (sizeof(devsw)/sizeof(devsw[0]));
40