xref: /csrg-svn/sys/vax/stand/conf.c (revision 9803)
1*9803Ssam /*	conf.c	4.14	82/12/17	*/
2318Sbill 
3*9803Ssam #include "../machine/pte.h"
4*9803Ssam 
5318Sbill #include "../h/param.h"
6318Sbill #include "../h/inode.h"
77444Sroot #include "../h/fs.h"
89186Ssam 
99186Ssam #include "../vaxmba/mbareg.h"
109186Ssam 
11318Sbill #include "saio.h"
12318Sbill 
13318Sbill devread(io)
143261Swnj 	register struct iob *io;
15318Sbill {
16318Sbill 
173261Swnj 	return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, READ) );
18318Sbill }
19318Sbill 
20318Sbill devwrite(io)
213261Swnj 	register struct iob *io;
22318Sbill {
233261Swnj 
24318Sbill 	return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, WRITE) );
25318Sbill }
26318Sbill 
27318Sbill devopen(io)
283261Swnj 	register struct iob *io;
29318Sbill {
303261Swnj 
31318Sbill 	(*devsw[io->i_ino.i_dev].dv_open)(io);
32318Sbill }
33318Sbill 
34318Sbill devclose(io)
353261Swnj 	register struct iob *io;
36318Sbill {
373261Swnj 
38318Sbill 	(*devsw[io->i_ino.i_dev].dv_close)(io);
39318Sbill }
40318Sbill 
41318Sbill nullsys()
423261Swnj {
43318Sbill 
443261Swnj 	;
453261Swnj }
463261Swnj 
47318Sbill int	nullsys();
486970Ssam #if defined(VAX780) || defined(VAX750)
49318Sbill int	hpstrategy(), hpopen();
506970Ssam #endif
51318Sbill int	upstrategy(), upopen();
527277Swnj int	rkstrategy(), rkopen();
537277Swnj int	udstrategy(), udopen();
547277Swnj int	idcstrategy(), idcopen();
557277Swnj #ifndef BOOT
561812Sbill int	tmstrategy(), tmopen(), tmclose();
573261Swnj int	tsstrategy(), tsopen(), tsclose();
586970Ssam #if defined(VAX780) || defined(VAX750)
597277Swnj int	htstrategy(), htopen(), htclose();
604868Sroot int	mtstrategy(), mtopen(), mtclose();
616970Ssam #endif
625156Ssam int	utstrategy(), utopen(), utclose();
637277Swnj #endif
64318Sbill 
65318Sbill struct devsw devsw[] = {
666970Ssam #if defined(VAX780) || defined(VAX750)
67318Sbill 	"hp",	hpstrategy,	hpopen,		nullsys,
686970Ssam #endif
69318Sbill 	"up",	upstrategy,	upopen,		nullsys,
703261Swnj 	"hk",	rkstrategy,	rkopen,		nullsys,
717277Swnj 	"ra",	udstrategy,	udopen,		nullsys,
727277Swnj 	"rb",	idcstrategy,	idcopen,	nullsys,
737277Swnj #ifndef BOOT
743274Swnj 	"ts",	tsstrategy,	tsopen,		tsclose,
756970Ssam #if defined(VAX780) || defined(VAX750)
767277Swnj 	"ht",	htstrategy,	htopen,		htclose,
774868Sroot 	"mt",	mtstrategy,	mtopen,		mtclose,
786970Ssam #endif
797277Swnj 	"tm",	tmstrategy,	tmopen,		tmclose,
807277Swnj 	"ut",	utstrategy,	utopen,		utclose,
817277Swnj #endif
82318Sbill 	0,0,0,0
83318Sbill };
84