xref: /csrg-svn/sys/tahoe/stand/conf.c (revision 44532)
133653Sbostic /*
233653Sbostic  * Copyright (c) 1988 Regents of the University of California.
333653Sbostic  * All rights reserved.
433653Sbostic  *
5*44532Sbostic  * %sccs.include.redist.c%
633653Sbostic  *
7*44532Sbostic  *	@(#)conf.c	1.9 (Berkeley) 06/28/90
833653Sbostic  */
925866Ssam 
1043457Sroot #include "sys/param.h"
1143457Sroot #include "sys/time.h"
1243457Sroot #include "sys/vnode.h"
1343457Sroot #include "ufs/inode.h"
1443457Sroot #include "ufs/fs.h"
1525866Ssam #include "saio.h"
1625866Ssam 
1733653Sbostic extern int	nullsys(), nodev(), noioctl();
1825866Ssam 
1929566Ssam int	vdstrategy(), vdopen();
2032555Sbostic int	hdstrategy(), hdopen();
2129566Ssam int	cystrategy(), cyopen(), cyclose();
2225866Ssam 
2325866Ssam struct devsw devsw[] = {
2433655Sbostic 	{ "ud",	nodev,		nodev,	nullsys, noioctl },  /* 0 = ud */
2533653Sbostic 	{ "dk",	vdstrategy,	vdopen,	nullsys, noioctl },  /* 1 = ht */
2633653Sbostic 	{ "hd",	hdstrategy,	hdopen,	nullsys, noioctl },  /* 2 = hd */
2729566Ssam #ifdef notdef
2833653Sbostic 	{ "xp",	xpstrategy,	xpopen,	nullsys, noioctl },  /* 3 = xp */
2929566Ssam #else
3033653Sbostic 	{ "xp",	nodev,		nodev,	nullsys, noioctl },
3129566Ssam #endif
3233653Sbostic 	{ "cy",	cystrategy,	cyopen,	cyclose, noioctl },  /* 4 = cy */
3329566Ssam 	{ 0 }
3425866Ssam };
3533653Sbostic int	ndevs = (sizeof(devsw)/sizeof(devsw[0]));
36