xref: /csrg-svn/sys/vax/stand/conf.c (revision 5156)
1*5156Ssam /*	conf.c	4.9	81/12/01	*/
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();
44318Sbill int	hpstrategy(), hpopen();
45318Sbill int	htstrategy(), htopen(), htclose();
46318Sbill int	upstrategy(), upopen();
471812Sbill int	tmstrategy(), tmopen(), tmclose();
483261Swnj int	tsstrategy(), tsopen(), tsclose();
494868Sroot int	mtstrategy(), mtopen(), mtclose();
504868Sroot int	rkstrategy(), rkopen();
514868Sroot int	udstrategy(), udopen();
52*5156Ssam int	utstrategy(), utopen(), utclose();
53318Sbill 
54318Sbill struct devsw devsw[] = {
55318Sbill 	"hp",	hpstrategy,	hpopen,		nullsys,
56318Sbill 	"ht",	htstrategy,	htopen,		htclose,
57318Sbill 	"up",	upstrategy,	upopen,		nullsys,
581812Sbill 	"tm",	tmstrategy,	tmopen,		tmclose,
593261Swnj 	"hk",	rkstrategy,	rkopen,		nullsys,
603274Swnj 	"ts",	tsstrategy,	tsopen,		tsclose,
614868Sroot 	"mt",	mtstrategy,	mtopen,		mtclose,
624868Sroot 	"ra",	udstrategy,	udopen,		nullsys,
63*5156Ssam 	"ut",	utstrategy,	utopen,		utclose,
64318Sbill 	0,0,0,0
65318Sbill };
66