xref: /csrg-svn/sys/vax/stand/conf.c (revision 3261)
1*3261Swnj /*	conf.c	4.6	81/03/15	*/
2318Sbill 
3318Sbill #include "../h/param.h"
4318Sbill #include "../h/inode.h"
5421Sbill #include "../h/pte.h"
6*3261Swnj #include "../h/mbareg.h"
7318Sbill #include "saio.h"
8318Sbill 
9318Sbill devread(io)
10*3261Swnj 	register struct iob *io;
11318Sbill {
12318Sbill 
13*3261Swnj 	return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, READ) );
14318Sbill }
15318Sbill 
16318Sbill devwrite(io)
17*3261Swnj 	register struct iob *io;
18318Sbill {
19*3261Swnj 
20318Sbill 	return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, WRITE) );
21318Sbill }
22318Sbill 
23318Sbill devopen(io)
24*3261Swnj 	register struct iob *io;
25318Sbill {
26*3261Swnj 
27318Sbill 	(*devsw[io->i_ino.i_dev].dv_open)(io);
28318Sbill }
29318Sbill 
30318Sbill devclose(io)
31*3261Swnj 	register struct iob *io;
32318Sbill {
33*3261Swnj 
34318Sbill 	(*devsw[io->i_ino.i_dev].dv_close)(io);
35318Sbill }
36318Sbill 
37318Sbill nullsys()
38*3261Swnj {
39318Sbill 
40*3261Swnj 	;
41*3261Swnj }
42*3261Swnj 
43318Sbill int	nullsys();
44318Sbill int	hpstrategy(), hpopen();
45318Sbill int	htstrategy(), htopen(), htclose();
46318Sbill int	upstrategy(), upopen();
471812Sbill int	tmstrategy(), tmopen(), tmclose();
48*3261Swnj int	tsstrategy(), tsopen(), tsclose();
491913Swnj int	rkopen(),rkstrategy();
50318Sbill 
51318Sbill struct devsw devsw[] = {
52318Sbill 	"hp",	hpstrategy,	hpopen,		nullsys,
53318Sbill 	"ht",	htstrategy,	htopen,		htclose,
54318Sbill 	"up",	upstrategy,	upopen,		nullsys,
551812Sbill 	"tm",	tmstrategy,	tmopen,		tmclose,
56*3261Swnj 	"hk",	rkstrategy,	rkopen,		nullsys,
57*3261Swnj 	"ts",	tsstragety,	tsopen,		tsclose,
58318Sbill 	0,0,0,0
59318Sbill };
60