|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1982, 1986, 1988 Regents of the University of California. ! 3: * All rights reserved. ! 4: * ! 5: * Redistribution is only permitted until one year after the first shipment ! 6: * of 4.4BSD by the Regents. Otherwise, redistribution and use in source and ! 7: * binary forms are permitted provided that: (1) source distributions retain ! 8: * this entire copyright notice and comment, and (2) distributions including ! 9: * binaries display the following acknowledgement: This product includes ! 10: * software developed by the University of California, Berkeley and its ! 11: * contributors'' in the documentation or other materials provided with the ! 12: * distribution and in all advertising materials mentioning features or use ! 13: * of this software. Neither the name of the University nor the names of ! 14: * its contributors may be used to endorse or promote products derived from ! 15: * this software without specific prior written permission. ! 16: * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED ! 17: * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF ! 18: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 19: * ! 20: * @(#)conf.c 7.8 (Berkeley) 6/28/90 ! 21: */ ! 22: ! 23: #include "param.h" ! 24: #include "saio.h" ! 25: ! 26: extern int nullsys(), nodev(), noioctl(); ! 27: ! 28: #if defined(VAX780) || defined(VAX750) || defined(VAX8600) ! 29: #define HP "hp" ! 30: int hpstrategy(), hpopen(); ! 31: #ifdef SMALL ! 32: #define hpioctl noioctl ! 33: #else ! 34: int hpioctl(); ! 35: #endif ! 36: #else ! 37: #define HP 0 ! 38: #define hpstrategy nodev ! 39: #define hpopen nodev ! 40: #define hpioctl noioctl ! 41: #endif ! 42: ! 43: int upstrategy(), upopen(); ! 44: #ifdef SMALL ! 45: #define upioctl noioctl ! 46: #else ! 47: int upioctl(); ! 48: #endif ! 49: ! 50: int rkstrategy(), rkopen(); ! 51: int rastrategy(), raopen(); ! 52: ! 53: #if defined(VAX730) ! 54: #define RB "rb" ! 55: int idcstrategy(), idcopen(); ! 56: #else ! 57: #define RB 0 ! 58: #define idcstrategy nodev ! 59: #define idcopen nodev ! 60: #endif ! 61: ! 62: int rlstrategy(), rlopen(); ! 63: ! 64: #ifdef BOOT ! 65: #define TM 0 ! 66: #define tmstrategy nodev ! 67: #define tmopen nodev ! 68: #define tmclose nodev ! 69: #define TS 0 ! 70: #define tsstrategy nodev ! 71: #define tsopen nodev ! 72: #define tsclose nodev ! 73: #define HT 0 ! 74: #define htstrategy nodev ! 75: #define htopen nodev ! 76: #define htclose nodev ! 77: #define MT 0 ! 78: #define mtstrategy nodev ! 79: #define mtopen nodev ! 80: #define mtclose nodev ! 81: #define UT 0 ! 82: #define utstrategy nodev ! 83: #define utopen nodev ! 84: #define utclose nodev ! 85: #define TMSCP 0 ! 86: #define tmscpstrategy nodev ! 87: #define tmscpopen nodev ! 88: #define tmscpclose nodev ! 89: #else /* !BOOT */ ! 90: #define TM "tm" ! 91: int tmstrategy(), tmopen(), tmclose(); ! 92: #define TS "ts" ! 93: int tsstrategy(), tsopen(), tsclose(); ! 94: ! 95: #if defined(VAX780) || defined(VAX750) || defined(VAX8600) ! 96: #define HT "ht" ! 97: int htstrategy(), htopen(), htclose(); ! 98: #define MT "mt" ! 99: int mtstrategy(), mtopen(), mtclose(); ! 100: #else /* massbus vax */ ! 101: #define HT 0 ! 102: #define htstrategy nodev ! 103: #define htopen nodev ! 104: #define htclose nodev ! 105: #define MT 0 ! 106: #define mtstrategy nodev ! 107: #define mtopen nodev ! 108: #define mtclose nodev ! 109: #endif /* massbus vax */ ! 110: ! 111: #define UT "ut" ! 112: int utstrategy(), utopen(), utclose(); ! 113: #define TMSCP "tms" ! 114: int tmscpstrategy(), tmscpopen(), tmscpclose(); ! 115: #endif /* BOOT */ ! 116: ! 117: #ifdef VAX8200 ! 118: #define KRA "kra" ! 119: int krastrategy(), kraopen(); ! 120: #else ! 121: #define KRA 0 ! 122: #define krastrategy nodev ! 123: #define kraopen nodev ! 124: #endif ! 125: ! 126: struct devsw devsw[] = { ! 127: { HP, hpstrategy, hpopen, nullsys, hpioctl }, /* 0 = hp */ ! 128: { HT, htstrategy, htopen, htclose, noioctl }, /* 1 = ht */ ! 129: { "up", upstrategy, upopen, nullsys, upioctl }, /* 2 = up */ ! 130: { "hk", rkstrategy, rkopen, nullsys, noioctl }, /* 3 = hk */ ! 131: { 0, nodev, nodev, nullsys, noioctl }, /* 4 = sw */ ! 132: { TM, tmstrategy, tmopen, tmclose, noioctl }, /* 5 = tm */ ! 133: { TS, tsstrategy, tsopen, tsclose, noioctl }, /* 6 = ts */ ! 134: { MT, mtstrategy, mtopen, mtclose, noioctl }, /* 7 = mt */ ! 135: { 0, nodev, nodev, nullsys, noioctl }, /* 8 = tu */ ! 136: { "ra", rastrategy, raopen, nullsys, noioctl }, /* 9 = ra */ ! 137: { UT, utstrategy, utopen, utclose, noioctl }, /* 10 = ut */ ! 138: { RB, idcstrategy, idcopen,nullsys, noioctl }, /* 11 = rb */ ! 139: { 0, nodev, nodev, nullsys, noioctl }, /* 12 = uu */ ! 140: { 0, nodev, nodev, nullsys, noioctl }, /* 13 = rx */ ! 141: { "rl", rlstrategy, rlopen, nullsys, noioctl }, /* 14 = rl */ ! 142: { TMSCP,tmscpstrategy,tmscpopen,tmscpclose,noioctl}, /* 15 = tmscp */ ! 143: { KRA, krastrategy, kraopen,nullsys, noioctl}, /* 16 = kra */ ! 144: }; ! 145: ! 146: int ndevs = (sizeof(devsw)/sizeof(devsw[0]));
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.