xref: /csrg-svn/sys/vax/stand/conf.c (revision 7444)
1*7444Sroot /*	conf.c	4.12	82/07/15	*/
2318Sbill 
3318Sbill #include "../h/param.h"
4318Sbill #include "../h/inode.h"
5421Sbill #include "../h/pte.h"
63261Swnj #include "../h/mbareg.h"
7*7444Sroot #include "../h/fs.h"
8318Sbill #include "saio.h"
9318Sbill 
10318Sbill devread(io)
113261Swnj 	register struct iob *io;
12318Sbill {
13318Sbill 
143261Swnj 	return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, READ) );
15318Sbill }
16318Sbill 
17318Sbill devwrite(io)
183261Swnj 	register struct iob *io;
19318Sbill {
203261Swnj 
21318Sbill 	return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, WRITE) );
22318Sbill }
23318Sbill 
24318Sbill devopen(io)
253261Swnj 	register struct iob *io;
26318Sbill {
273261Swnj 
28318Sbill 	(*devsw[io->i_ino.i_dev].dv_open)(io);
29318Sbill }
30318Sbill 
31318Sbill devclose(io)
323261Swnj 	register struct iob *io;
33318Sbill {
343261Swnj 
35318Sbill 	(*devsw[io->i_ino.i_dev].dv_close)(io);
36318Sbill }
37318Sbill 
38318Sbill nullsys()
393261Swnj {
40318Sbill 
413261Swnj 	;
423261Swnj }
433261Swnj 
44318Sbill int	nullsys();
456970Ssam #if defined(VAX780) || defined(VAX750)
46318Sbill int	hpstrategy(), hpopen();
476970Ssam #endif
48318Sbill int	upstrategy(), upopen();
497277Swnj int	rkstrategy(), rkopen();
507277Swnj int	udstrategy(), udopen();
517277Swnj int	idcstrategy(), idcopen();
527277Swnj #ifndef BOOT
531812Sbill int	tmstrategy(), tmopen(), tmclose();
543261Swnj int	tsstrategy(), tsopen(), tsclose();
556970Ssam #if defined(VAX780) || defined(VAX750)
567277Swnj int	htstrategy(), htopen(), htclose();
574868Sroot int	mtstrategy(), mtopen(), mtclose();
586970Ssam #endif
595156Ssam int	utstrategy(), utopen(), utclose();
607277Swnj #endif
61318Sbill 
62318Sbill struct devsw devsw[] = {
636970Ssam #if defined(VAX780) || defined(VAX750)
64318Sbill 	"hp",	hpstrategy,	hpopen,		nullsys,
656970Ssam #endif
66318Sbill 	"up",	upstrategy,	upopen,		nullsys,
673261Swnj 	"hk",	rkstrategy,	rkopen,		nullsys,
687277Swnj 	"ra",	udstrategy,	udopen,		nullsys,
697277Swnj 	"rb",	idcstrategy,	idcopen,	nullsys,
707277Swnj #ifndef BOOT
713274Swnj 	"ts",	tsstrategy,	tsopen,		tsclose,
726970Ssam #if defined(VAX780) || defined(VAX750)
737277Swnj 	"ht",	htstrategy,	htopen,		htclose,
744868Sroot 	"mt",	mtstrategy,	mtopen,		mtclose,
756970Ssam #endif
767277Swnj 	"tm",	tmstrategy,	tmopen,		tmclose,
777277Swnj 	"ut",	utstrategy,	utopen,		utclose,
787277Swnj #endif
79318Sbill 	0,0,0,0
80318Sbill };
81