xref: /csrg-svn/sys/vax/stand/conf.c (revision 9186)
1*9186Ssam /*	conf.c	4.13	82/11/13	*/
2318Sbill 
3318Sbill #include "../h/param.h"
4318Sbill #include "../h/inode.h"
5421Sbill #include "../h/pte.h"
67444Sroot #include "../h/fs.h"
7*9186Ssam 
8*9186Ssam #include "../vaxmba/mbareg.h"
9*9186Ssam 
10318Sbill #include "saio.h"
11318Sbill 
12318Sbill devread(io)
133261Swnj 	register struct iob *io;
14318Sbill {
15318Sbill 
163261Swnj 	return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, READ) );
17318Sbill }
18318Sbill 
19318Sbill devwrite(io)
203261Swnj 	register struct iob *io;
21318Sbill {
223261Swnj 
23318Sbill 	return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, WRITE) );
24318Sbill }
25318Sbill 
26318Sbill devopen(io)
273261Swnj 	register struct iob *io;
28318Sbill {
293261Swnj 
30318Sbill 	(*devsw[io->i_ino.i_dev].dv_open)(io);
31318Sbill }
32318Sbill 
33318Sbill devclose(io)
343261Swnj 	register struct iob *io;
35318Sbill {
363261Swnj 
37318Sbill 	(*devsw[io->i_ino.i_dev].dv_close)(io);
38318Sbill }
39318Sbill 
40318Sbill nullsys()
413261Swnj {
42318Sbill 
433261Swnj 	;
443261Swnj }
453261Swnj 
46318Sbill int	nullsys();
476970Ssam #if defined(VAX780) || defined(VAX750)
48318Sbill int	hpstrategy(), hpopen();
496970Ssam #endif
50318Sbill int	upstrategy(), upopen();
517277Swnj int	rkstrategy(), rkopen();
527277Swnj int	udstrategy(), udopen();
537277Swnj int	idcstrategy(), idcopen();
547277Swnj #ifndef BOOT
551812Sbill int	tmstrategy(), tmopen(), tmclose();
563261Swnj int	tsstrategy(), tsopen(), tsclose();
576970Ssam #if defined(VAX780) || defined(VAX750)
587277Swnj int	htstrategy(), htopen(), htclose();
594868Sroot int	mtstrategy(), mtopen(), mtclose();
606970Ssam #endif
615156Ssam int	utstrategy(), utopen(), utclose();
627277Swnj #endif
63318Sbill 
64318Sbill struct devsw devsw[] = {
656970Ssam #if defined(VAX780) || defined(VAX750)
66318Sbill 	"hp",	hpstrategy,	hpopen,		nullsys,
676970Ssam #endif
68318Sbill 	"up",	upstrategy,	upopen,		nullsys,
693261Swnj 	"hk",	rkstrategy,	rkopen,		nullsys,
707277Swnj 	"ra",	udstrategy,	udopen,		nullsys,
717277Swnj 	"rb",	idcstrategy,	idcopen,	nullsys,
727277Swnj #ifndef BOOT
733274Swnj 	"ts",	tsstrategy,	tsopen,		tsclose,
746970Ssam #if defined(VAX780) || defined(VAX750)
757277Swnj 	"ht",	htstrategy,	htopen,		htclose,
764868Sroot 	"mt",	mtstrategy,	mtopen,		mtclose,
776970Ssam #endif
787277Swnj 	"tm",	tmstrategy,	tmopen,		tmclose,
797277Swnj 	"ut",	utstrategy,	utopen,		utclose,
807277Swnj #endif
81318Sbill 	0,0,0,0
82318Sbill };
83