|
|
1.1 root 1: /* conf.c 4.9 81/12/01 */
2:
3: #include <sys/param.h>
4: #include <sys/inode.h>
5: #include <sys/pte.h>
6: #include <sys/mbareg.h>
7: #include "saio.h"
8:
9: devread(io)
10: register struct iob *io;
11: {
12:
13: return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, READ) );
14: }
15:
16: devwrite(io)
17: register struct iob *io;
18: {
19:
20: return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, WRITE) );
21: }
22:
23: devopen(io)
24: register struct iob *io;
25: {
26:
27: (*devsw[io->i_ino.i_dev].dv_open)(io);
28: }
29:
30: devclose(io)
31: register struct iob *io;
32: {
33:
34: (*devsw[io->i_ino.i_dev].dv_close)(io);
35: }
36:
37: nullsys()
38: {
39:
40: ;
41: }
42:
43: int nullsys();
44: #ifdef giantone
45: int hpstrategy(), hpopen();
46: int htstrategy(), htopen(), htclose();
47: int mtstrategy(), mtopen(), mtclose();
48: int rkstrategy(), rkopen();
49: int tmstrategy(), tmopen(), tmclose();
50: int tsstrategy(), tsopen(), tsclose();
51: int utstrategy(), utopen(), utclose();
52: #else
53: int hpstrategy(), hpopen();
54: #define htstrategy nullsys
55: #define htopen nullsys
56: #define htclose nullsys
57: #define mtstrategy nullsys
58: #define mtopen nullsys
59: #define mtclose nullsys
60: #define rkstrategy nullsys
61: #define rkopen nullsys
62: #define tmstrategy nullsys
63: #define tmopen nullsys
64: #define tmclose nullsys
65: #define tsstrategy nullsys
66: #define tsopen nullsys
67: #define tsclose nullsys
68: #define utstrategy nullsys
69: #define utopen nullsys
70: #define utclose nullsys
71: #endif
72: int udstrategy(), udopen(), udclose();
73: int upstrategy(), upopen();
74:
75: struct devsw devsw[] = {
76: "hp", hpstrategy, hpopen, nullsys, SMALL,
77: "ht", htstrategy, htopen, htclose, SMALL,
78: "up", upstrategy, upopen, nullsys, SMALL,
79: "tm", tmstrategy, tmopen, tmclose, SMALL,
80: "hk", rkstrategy, rkopen, nullsys, SMALL,
81: "ts", tsstrategy, tsopen, tsclose, SMALL,
82: "mt", mtstrategy, mtopen, mtclose, SMALL,
83: "ra", udstrategy, udopen, udclose, BIG,
84: "sa", udstrategy, udopen, udclose, SMALL,
85: "ut", utstrategy, utopen, utclose, SMALL,
86: 0,0,0,0,0,
87: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.