xref: /csrg-svn/sys/vax/stand/conf.c (revision 9186)
1 /*	conf.c	4.13	82/11/13	*/
2 
3 #include "../h/param.h"
4 #include "../h/inode.h"
5 #include "../h/pte.h"
6 #include "../h/fs.h"
7 
8 #include "../vaxmba/mbareg.h"
9 
10 #include "saio.h"
11 
12 devread(io)
13 	register struct iob *io;
14 {
15 
16 	return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, READ) );
17 }
18 
19 devwrite(io)
20 	register struct iob *io;
21 {
22 
23 	return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, WRITE) );
24 }
25 
26 devopen(io)
27 	register struct iob *io;
28 {
29 
30 	(*devsw[io->i_ino.i_dev].dv_open)(io);
31 }
32 
33 devclose(io)
34 	register struct iob *io;
35 {
36 
37 	(*devsw[io->i_ino.i_dev].dv_close)(io);
38 }
39 
40 nullsys()
41 {
42 
43 	;
44 }
45 
46 int	nullsys();
47 #if defined(VAX780) || defined(VAX750)
48 int	hpstrategy(), hpopen();
49 #endif
50 int	upstrategy(), upopen();
51 int	rkstrategy(), rkopen();
52 int	udstrategy(), udopen();
53 int	idcstrategy(), idcopen();
54 #ifndef BOOT
55 int	tmstrategy(), tmopen(), tmclose();
56 int	tsstrategy(), tsopen(), tsclose();
57 #if defined(VAX780) || defined(VAX750)
58 int	htstrategy(), htopen(), htclose();
59 int	mtstrategy(), mtopen(), mtclose();
60 #endif
61 int	utstrategy(), utopen(), utclose();
62 #endif
63 
64 struct devsw devsw[] = {
65 #if defined(VAX780) || defined(VAX750)
66 	"hp",	hpstrategy,	hpopen,		nullsys,
67 #endif
68 	"up",	upstrategy,	upopen,		nullsys,
69 	"hk",	rkstrategy,	rkopen,		nullsys,
70 	"ra",	udstrategy,	udopen,		nullsys,
71 	"rb",	idcstrategy,	idcopen,	nullsys,
72 #ifndef BOOT
73 	"ts",	tsstrategy,	tsopen,		tsclose,
74 #if defined(VAX780) || defined(VAX750)
75 	"ht",	htstrategy,	htopen,		htclose,
76 	"mt",	mtstrategy,	mtopen,		mtclose,
77 #endif
78 	"tm",	tmstrategy,	tmopen,		tmclose,
79 	"ut",	utstrategy,	utopen,		utclose,
80 #endif
81 	0,0,0,0
82 };
83