xref: /csrg-svn/sys/vax/stand/conf.c (revision 421)
1*421Sbill /*	conf.c	1.2	07/29/80	*/
2318Sbill 
3318Sbill #include "../h/param.h"
4318Sbill #include "../h/inode.h"
5*421Sbill #include "../h/pte.h"
6318Sbill #include "../h/mba.h"
7318Sbill #include "saio.h"
8318Sbill 
9318Sbill devread(io)
10318Sbill register struct iob *io;
11318Sbill {
12318Sbill 
13318Sbill 	return( (*devsw[io->i_ino.i_dev].dv_strategy)(io,READ) );
14318Sbill }
15318Sbill 
16318Sbill devwrite(io)
17318Sbill register struct iob *io;
18318Sbill {
19318Sbill 	return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, WRITE) );
20318Sbill }
21318Sbill 
22318Sbill devopen(io)
23318Sbill register struct iob *io;
24318Sbill {
25318Sbill 	(*devsw[io->i_ino.i_dev].dv_open)(io);
26318Sbill }
27318Sbill 
28318Sbill devclose(io)
29318Sbill register struct iob *io;
30318Sbill {
31318Sbill 	(*devsw[io->i_ino.i_dev].dv_close)(io);
32318Sbill }
33318Sbill 
34318Sbill nullsys()
35318Sbill { ; }
36318Sbill 
37318Sbill int	nullsys();
38318Sbill int	hpstrategy(), hpopen();
39318Sbill int	htstrategy(), htopen(), htclose();
40318Sbill int	upstrategy(), upopen();
41318Sbill 
42318Sbill struct devsw devsw[] = {
43318Sbill 	"hp",	hpstrategy,	hpopen,		nullsys,
44318Sbill 	"ht",	htstrategy,	htopen,		htclose,
45318Sbill 	"up",	upstrategy,	upopen,		nullsys,
46318Sbill 	0,0,0,0
47318Sbill };
48318Sbill 
49318Sbill int mbanum[] = {	/* mba number of major device */
50318Sbill 	0,		/* disk */
51318Sbill 	1,		/* tape */
52318Sbill 	-1,		/* unused */
53318Sbill };
54318Sbill 
55318Sbill int *mbaloc[] = { 	/* physical location of mba */
56318Sbill 	(int *)PHYSMBA0,
57318Sbill 	(int *)PHYSMBA1,
58318Sbill };
59