Commit | Line | Data |
---|---|---|
8ae0e4b4 | 1 | /* |
a5d70e66 KB |
2 | * Copyright (c) 1982, 1986, 1988 Regents of the University of California. |
3 | * All rights reserved. | |
8ae0e4b4 | 4 | * |
a5d70e66 | 5 | * Redistribution and use in source and binary forms are permitted |
9c50374f KB |
6 | * provided that the above copyright notice and this paragraph are |
7 | * duplicated in all such forms and that any documentation, | |
8 | * advertising materials, and other materials related to such | |
9 | * distribution and use acknowledge that the software was developed | |
10 | * by the University of California, Berkeley. The name of the | |
11 | * University may not be used to endorse or promote products derived | |
12 | * from this software without specific prior written permission. | |
13 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
14 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
15 | * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
a5d70e66 | 16 | * |
a16d7bdb | 17 | * @(#)conf.c 7.7 (Berkeley) %G% |
8ae0e4b4 | 18 | */ |
faeec66d | 19 | |
39c71180 | 20 | #include "param.h" |
c7ebcc4e BJ |
21 | #include "saio.h" |
22 | ||
a5d70e66 | 23 | extern int nullsys(), nodev(), noioctl(); |
0839bdeb | 24 | |
d7046ad3 | 25 | #if defined(VAX780) || defined(VAX750) || defined(VAX8600) |
80c81fbf | 26 | #define HP "hp" |
a5d70e66 KB |
27 | int hpstrategy(), hpopen(); |
28 | #ifdef SMALL | |
29 | #define hpioctl noioctl | |
30 | #else | |
31 | int hpioctl(); | |
32 | #endif | |
80c81fbf | 33 | #else |
39c71180 | 34 | #define HP 0 |
80c81fbf MK |
35 | #define hpstrategy nodev |
36 | #define hpopen nodev | |
37 | #define hpioctl noioctl | |
eb741596 | 38 | #endif |
a5d70e66 KB |
39 | |
40 | int upstrategy(), upopen(); | |
41 | #ifdef SMALL | |
42 | #define upioctl noioctl | |
43 | #else | |
44 | int upioctl(); | |
45 | #endif | |
46 | ||
47 | int rkstrategy(), rkopen(); | |
48 | int rastrategy(), raopen(); | |
49 | ||
d395330a | 50 | #if defined(VAX730) |
80c81fbf | 51 | #define RB "rb" |
a5d70e66 | 52 | int idcstrategy(), idcopen(); |
80c81fbf | 53 | #else |
39c71180 | 54 | #define RB 0 |
80c81fbf MK |
55 | #define idcstrategy nodev |
56 | #define idcopen nodev | |
b0c3a8c4 | 57 | #endif |
80c81fbf | 58 | |
a5d70e66 | 59 | int rlstrategy(), rlopen(); |
80c81fbf | 60 | |
a5d70e66 | 61 | #ifdef BOOT |
39c71180 | 62 | #define TM 0 |
80c81fbf MK |
63 | #define tmstrategy nodev |
64 | #define tmopen nodev | |
65 | #define tmclose nodev | |
39c71180 | 66 | #define TS 0 |
80c81fbf MK |
67 | #define tsstrategy nodev |
68 | #define tsopen nodev | |
69 | #define tsclose nodev | |
39c71180 | 70 | #define HT 0 |
80c81fbf MK |
71 | #define htstrategy nodev |
72 | #define htopen nodev | |
73 | #define htclose nodev | |
39c71180 | 74 | #define MT 0 |
80c81fbf MK |
75 | #define mtstrategy nodev |
76 | #define mtopen nodev | |
77 | #define mtclose nodev | |
39c71180 | 78 | #define UT 0 |
80c81fbf MK |
79 | #define utstrategy nodev |
80 | #define utopen nodev | |
81 | #define utclose nodev | |
39c71180 MK |
82 | #define TMSCP 0 |
83 | #define tmscpstrategy nodev | |
84 | #define tmscpopen nodev | |
85 | #define tmscpclose nodev | |
a5d70e66 KB |
86 | #else /* !BOOT */ |
87 | #define TM "tm" | |
88 | int tmstrategy(), tmopen(), tmclose(); | |
89 | #define TS "ts" | |
90 | int tsstrategy(), tsopen(), tsclose(); | |
91 | ||
92 | #if defined(VAX780) || defined(VAX750) || defined(VAX8600) | |
93 | #define HT "ht" | |
94 | int htstrategy(), htopen(), htclose(); | |
95 | #define MT "mt" | |
96 | int mtstrategy(), mtopen(), mtclose(); | |
97 | #else /* massbus vax */ | |
98 | #define HT 0 | |
99 | #define htstrategy nodev | |
100 | #define htopen nodev | |
101 | #define htclose nodev | |
102 | #define MT 0 | |
103 | #define mtstrategy nodev | |
104 | #define mtopen nodev | |
105 | #define mtclose nodev | |
106 | #endif /* massbus vax */ | |
107 | ||
108 | #define UT "ut" | |
109 | int utstrategy(), utopen(), utclose(); | |
110 | #define TMSCP "tms" | |
111 | int tmscpstrategy(), tmscpopen(), tmscpclose(); | |
112 | #endif /* BOOT */ | |
39c71180 MK |
113 | |
114 | #ifdef VAX8200 | |
115 | #define KRA "kra" | |
a5d70e66 | 116 | int krastrategy(), kraopen(); |
39c71180 MK |
117 | #else |
118 | #define KRA 0 | |
119 | #define krastrategy nodev | |
120 | #define kraopen nodev | |
9c6e912e | 121 | #endif |
c7ebcc4e BJ |
122 | |
123 | struct devsw devsw[] = { | |
a5d70e66 KB |
124 | { HP, hpstrategy, hpopen, nullsys, hpioctl }, /* 0 = hp */ |
125 | { HT, htstrategy, htopen, htclose, noioctl }, /* 1 = ht */ | |
126 | { "up", upstrategy, upopen, nullsys, upioctl }, /* 2 = up */ | |
127 | { "hk", rkstrategy, rkopen, nullsys, noioctl }, /* 3 = hk */ | |
128 | { 0, nodev, nodev, nullsys, noioctl }, /* 4 = sw */ | |
129 | { TM, tmstrategy, tmopen, tmclose, noioctl }, /* 5 = tm */ | |
130 | { TS, tsstrategy, tsopen, tsclose, noioctl }, /* 6 = ts */ | |
131 | { MT, mtstrategy, mtopen, mtclose, noioctl }, /* 7 = mt */ | |
132 | { 0, nodev, nodev, nullsys, noioctl }, /* 8 = tu */ | |
133 | { "ra", rastrategy, raopen, nullsys, noioctl }, /* 9 = ra */ | |
134 | { UT, utstrategy, utopen, utclose, noioctl }, /* 10 = ut */ | |
135 | { RB, idcstrategy, idcopen,nullsys, noioctl }, /* 11 = rb */ | |
136 | { 0, nodev, nodev, nullsys, noioctl }, /* 12 = uu */ | |
137 | { 0, nodev, nodev, nullsys, noioctl }, /* 13 = rx */ | |
138 | { "rl", rlstrategy, rlopen, nullsys, noioctl }, /* 14 = rl */ | |
139 | { TMSCP,tmscpstrategy,tmscpopen,tmscpclose,noioctl}, /* 15 = tmscp */ | |
140 | { KRA, krastrategy, kraopen,nullsys, noioctl}, /* 16 = kra */ | |
c7ebcc4e | 141 | }; |
80c81fbf | 142 | |
a5d70e66 | 143 | int ndevs = (sizeof(devsw)/sizeof(devsw[0])); |