|
| 1 | +# |
| 2 | +/* |
| 3 | + * unix configuration table |
| 4 | + * |
| 5 | + * Modified 4/9/79 BBN(dan): awt and capac routines moved into cdevsw. |
| 6 | + */ |
| 7 | + |
| 8 | +#include "../h/param.h" |
| 9 | +/* UNIX Identification and Configuration information */ |
| 10 | +#define ED 6 |
| 11 | +#define VER 1 |
| 12 | +#define MAJ 3 |
| 13 | +#define MIN 3 |
| 14 | + |
| 15 | +int unixid {( (ED<<12) | (VER<<8)|(MAJ<<4)|MIN)}; |
| 16 | +char id[] "~|^`UNIX V6.1:3.3 bbn root=/dev/hps00 swap=/dev/hps10\n"; |
| 17 | + |
| 18 | +/* device drivers */ |
| 19 | + |
| 20 | +int (*bdevsw[])() |
| 21 | +{ |
| 22 | + &nodev, &nodev, &nodev, 0, /* rk */ |
| 23 | + 0 |
| 24 | +}; |
| 25 | + |
| 26 | +int (*cdevsw[])() |
| 27 | +{ |
| 28 | +/* 0 console */ &klopen, &klclose, &klread, &klwrite, &klsgtty, &klttyawt, &klttycap, |
| 29 | +/* 1 pc */ &nodev, &nodev, &nodev, &nodev, &nodev, &nocap, &nocap, |
| 30 | +/* 2 lp */ &nodev, &nodev, &nodev, &nodev, &nodev, &nocap, &nocap, |
| 31 | +/* 3 dc */ &nodev, &nodev, &nodev, &nodev, &nodev, &nocap, &nocap, |
| 32 | +/* 4 dh */ &dhopen, &dhclose, &dhread, &dhwrite, &dhsgtty, &dhttyawt, &dhttycap, |
| 33 | +/* 5 dp */ &nodev, &nodev, &nodev, &nodev, &nodev, &nocap, &nocap, |
| 34 | +/* 6 dj */ &nodev, &nodev, &nodev, &nodev, &nodev, &nocap, &nocap, |
| 35 | +/* 7 dn */ &nodev, &nodev, &nodev, &nodev, &nodev, &nocap, &nocap, |
| 36 | +/* 8 mem */ &nulldev, &nulldev, &mmread, &mmwrite, &nodev, &nocap, &nullcap, |
| 37 | +/* 9 rk */ &nodev, &nodev, &nodev, &nodev, &nodev, &nocap, &nocap, |
| 38 | +/*10 rf */ &nodev, &nodev, &nodev, &nodev, &nodev, &nocap, &nocap, |
| 39 | +/*11 rp */ &nodev, &nodev, &nodev, &nodev, &nodev, &nocap, &nocap, |
| 40 | +/*12 tm */ &nodev, &nodev, &nodev, &nodev, &nodev, &nocap, &nocap, |
| 41 | +/*13 hs */ &nodev, &nodev, &nodev, &nodev, &nodev, &nocap, &nocap, |
| 42 | +/*14 hp */ &nulldev, &nulldev, &hpread, &hpwrite, &nodev, &nocap, &nocap, |
| 43 | +/*15 ht-800 */ &htopen, &htclose, &htread, &htwrite, &nodev, &nocap, &nocap, |
| 44 | +/*16 ht-1600 */ &htopen, &htclose, &htread, &htwrite, &nodev, &nocap, &nocap, |
| 45 | +/*17 dz */ &dzopen, &dzclose, &dzread, &dzwrite, &dzsgtty, &dzttyawt, &dzttycap, |
| 46 | +/*18 ports */ &portopen, &nodev, &portread, &portwrite,&portstty, &portawt, &portcap, |
| 47 | + |
| 48 | +#ifndef NCP /* jsq bbn 10/19/78 */ |
| 49 | +/*19 NCP */ &nodev, &nodev, &nodev, &nodev, &nodev, &nocap, &nocap, |
| 50 | +#endif NCP |
| 51 | +#ifdef NCP /* jsq bbn 10/19/78 */ |
| 52 | +/*19 NCP */ &ncpopen, &ncpclose, &ncpread, &ncpwrite, &nodev, &nocap, &nocap, |
| 53 | +#endif NCP |
| 54 | +/*20 pty ctl */ &ptcopen, &ptcclose, &ptcread, &ptcwrite, &ptcsgtty, &ptcawt, &ptccap, |
| 55 | +/*21 pty slv */ &ptsopen, &ptsclose, &ptsread, &ptswrite, &ptssgtty, &ptsawt, &ptscap, |
| 56 | + |
| 57 | +/*22 genisco */ &gnopen, &gnclose, &gnread, &gnwrite, &gnsgty, &nocap, &nocap, |
| 58 | + |
| 59 | +#ifdef RMI |
| 60 | +/*23 rawnet */ &rwkopen, &rwkclose, &nodev, &nodev, &nodev, &nocap, &nocap, |
| 61 | +#endif RMI |
| 62 | +#ifndef RMI |
| 63 | +/*23 rawnet */ &nodev, &nodev, &nodev, &nodev, &nodev, &nocap, &nocap, |
| 64 | +#endif RMI |
| 65 | + |
| 66 | +/*24 tty */ &ctyopen, &nodev, &nodev, &nodev, &nodev, &nocap, &nocap, |
| 67 | +/*25 xtty */ &xtcopen, &xtcclose, &xtcread, &xtcwrite, &xtcsgtty, &xtcawt, &xtccap, |
| 68 | +/*26 pty slv */ &xtsopen, &xtsclose, &xtsread, &xtswrite, &xtssgtty, &xtsawt, &xtscap, |
| 69 | + 0 |
| 70 | +}; |
| 71 | + |
| 72 | +int portdev {(18<<8)|0}; /* For port.c */ |
| 73 | +int rootdev {(6<<8)|9}; /* hps00 */ |
| 74 | +int swapdev {(6<<8)|25}; /* hps10 */ |
| 75 | +int swplo 7614; /* cannot be zero */ |
| 76 | +int nswap 2000; |
0 commit comments