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