fixed problem with sizeof MsgId == 0
[unix-history] / usr / src / sys / vax / stand / conf.c
CommitLineData
f7acbdcc 1/* conf.c 1.2 %G% */
c7ebcc4e
BJ
2
3#include "../h/param.h"
4#include "../h/inode.h"
f7acbdcc 5#include "../h/pte.h"
c7ebcc4e
BJ
6#include "../h/mba.h"
7#include "saio.h"
8
9devread(io)
10register struct iob *io;
11{
12
13 return( (*devsw[io->i_ino.i_dev].dv_strategy)(io,READ) );
14}
15
16devwrite(io)
17register struct iob *io;
18{
19 return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, WRITE) );
20}
21
22devopen(io)
23register struct iob *io;
24{
25 (*devsw[io->i_ino.i_dev].dv_open)(io);
26}
27
28devclose(io)
29register struct iob *io;
30{
31 (*devsw[io->i_ino.i_dev].dv_close)(io);
32}
33
34nullsys()
35{ ; }
36
37int nullsys();
38int hpstrategy(), hpopen();
39int htstrategy(), htopen(), htclose();
40int upstrategy(), upopen();
41
42struct devsw devsw[] = {
43 "hp", hpstrategy, hpopen, nullsys,
44 "ht", htstrategy, htopen, htclose,
45 "up", upstrategy, upopen, nullsys,
46 0,0,0,0
47};
48
49int mbanum[] = { /* mba number of major device */
50 0, /* disk */
51 1, /* tape */
52 -1, /* unused */
53};
54
55int *mbaloc[] = { /* physical location of mba */
56 (int *)PHYSMBA0,
57 (int *)PHYSMBA1,
58};