xref: /csrg-svn/sys/vax/stand/conf.c (revision 6970)
1*6970Ssam /*	conf.c	4.10	82/05/27	*/
2318Sbill 
3318Sbill #include "../h/param.h"
4318Sbill #include "../h/inode.h"
5421Sbill #include "../h/pte.h"
63261Swnj #include "../h/mbareg.h"
7318Sbill #include "saio.h"
8318Sbill 
9318Sbill devread(io)
103261Swnj 	register struct iob *io;
11318Sbill {
12318Sbill 
133261Swnj 	return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, READ) );
14318Sbill }
15318Sbill 
16318Sbill devwrite(io)
173261Swnj 	register struct iob *io;
18318Sbill {
193261Swnj 
20318Sbill 	return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, WRITE) );
21318Sbill }
22318Sbill 
23318Sbill devopen(io)
243261Swnj 	register struct iob *io;
25318Sbill {
263261Swnj 
27318Sbill 	(*devsw[io->i_ino.i_dev].dv_open)(io);
28318Sbill }
29318Sbill 
30318Sbill devclose(io)
313261Swnj 	register struct iob *io;
32318Sbill {
333261Swnj 
34318Sbill 	(*devsw[io->i_ino.i_dev].dv_close)(io);
35318Sbill }
36318Sbill 
37318Sbill nullsys()
383261Swnj {
39318Sbill 
403261Swnj 	;
413261Swnj }
423261Swnj 
43318Sbill int	nullsys();
44*6970Ssam #if defined(VAX780) || defined(VAX750)
45318Sbill int	hpstrategy(), hpopen();
46318Sbill int	htstrategy(), htopen(), htclose();
47*6970Ssam #endif
48318Sbill int	upstrategy(), upopen();
491812Sbill int	tmstrategy(), tmopen(), tmclose();
503261Swnj int	tsstrategy(), tsopen(), tsclose();
51*6970Ssam #if defined(VAX780) || defined(VAX750)
524868Sroot int	mtstrategy(), mtopen(), mtclose();
53*6970Ssam #endif
544868Sroot int	rkstrategy(), rkopen();
554868Sroot int	udstrategy(), udopen();
565156Ssam int	utstrategy(), utopen(), utclose();
57*6970Ssam int	idcstrategy(), idcopen();
58318Sbill 
59318Sbill struct devsw devsw[] = {
60*6970Ssam #if defined(VAX780) || defined(VAX750)
61318Sbill 	"hp",	hpstrategy,	hpopen,		nullsys,
62318Sbill 	"ht",	htstrategy,	htopen,		htclose,
63*6970Ssam #endif
64318Sbill 	"up",	upstrategy,	upopen,		nullsys,
651812Sbill 	"tm",	tmstrategy,	tmopen,		tmclose,
663261Swnj 	"hk",	rkstrategy,	rkopen,		nullsys,
673274Swnj 	"ts",	tsstrategy,	tsopen,		tsclose,
68*6970Ssam #if defined(VAX780) || defined(VAX750)
694868Sroot 	"mt",	mtstrategy,	mtopen,		mtclose,
70*6970Ssam #endif
714868Sroot 	"ra",	udstrategy,	udopen,		nullsys,
72*6970Ssam 	"ut",	utstrategy,	utopen		utclose,
73*6970Ssam 	"rb",	idcstrategy,	idcopen,	nullsys,
74318Sbill 	0,0,0,0
75318Sbill };
76