xref: /csrg-svn/sys/tahoe/stand/conf.c (revision 33655)
133653Sbostic /*
233653Sbostic  * Copyright (c) 1988 Regents of the University of California.
333653Sbostic  * All rights reserved.
433653Sbostic  *
533653Sbostic  * Redistribution and use in source and binary forms are permitted
633653Sbostic  * provided that this notice is preserved and that due credit is given
733653Sbostic  * to the University of California at Berkeley. The name of the University
833653Sbostic  * may not be used to endorse or promote products derived from this
933653Sbostic  * software without specific prior written permission. This software
1033653Sbostic  * is provided ``as is'' without express or implied warranty.
1133653Sbostic  *
12*33655Sbostic  *	@(#)conf.c	1.6 (Berkeley) 03/04/88
1333653Sbostic  */
1425866Ssam 
1525866Ssam #include "param.h"
1625866Ssam #include "inode.h"
1725866Ssam #include "fs.h"
1825866Ssam #include "saio.h"
1925866Ssam 
2033653Sbostic extern int	nullsys(), nodev(), noioctl();
2125866Ssam 
2229566Ssam int	vdstrategy(), vdopen();
2332555Sbostic int	hdstrategy(), hdopen();
2429566Ssam int	cystrategy(), cyopen(), cyclose();
2525866Ssam 
2625866Ssam struct devsw devsw[] = {
27*33655Sbostic 	{ "ud",	nodev,		nodev,	nullsys, noioctl },  /* 0 = ud */
2833653Sbostic 	{ "dk",	vdstrategy,	vdopen,	nullsys, noioctl },  /* 1 = ht */
2933653Sbostic 	{ "hd",	hdstrategy,	hdopen,	nullsys, noioctl },  /* 2 = hd */
3029566Ssam #ifdef notdef
3133653Sbostic 	{ "xp",	xpstrategy,	xpopen,	nullsys, noioctl },  /* 3 = xp */
3229566Ssam #else
3333653Sbostic 	{ "xp",	nodev,		nodev,	nullsys, noioctl },
3429566Ssam #endif
3533653Sbostic 	{ "cy",	cystrategy,	cyopen,	cyclose, noioctl },  /* 4 = cy */
3629566Ssam 	{ 0 }
3725866Ssam };
3833653Sbostic int	ndevs = (sizeof(devsw)/sizeof(devsw[0]));
39