Annotation of researchv10dc/lsys/mercury/hunny.c.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * config data
                      3:  */
                      4: 
                      5: #include "sys/param.h"
                      6: #include "sys/conf.h"
                      7: #include "sys/vtimes.h"
                      8: #include "sys/proc.h"
                      9: #include "sys/inode.h"
                     10: #include "sys/file.h"
                     11: #include "sys/text.h"
                     12: #include "sys/callout.h"
                     13: #include "sys/buf.h"
                     14: #include "sys/map.h"
                     15: #include "sys/stream.h"
                     16: #include "sys/nexus.h"
                     17: #include "sys/ubaddr.h"
                     18: #include "sys/uba.h"
                     19: #include "sys/biaddr.h"
                     20: #include "sys/uda.h"
                     21: #include "sys/bda.h"
                     22: #include "sys/inet/in.h"
                     23: #include "sys/inet/ip_var.h"
                     24: #include "sys/inet/udp.h"
                     25: #include "sys/inet/tcp.h"
                     26: #include "sys/inet/tcp_timer.h"
                     27: #include "sys/inet/tcp_var.h"
                     28: #include "sys/dz.h"
                     29: #include "sys/om.h"
                     30: #include "sys/kmc.h"
                     31: #include "sys/kdi.h"
                     32: #include "sys/mscp.h"
                     33: #include "sys/udaioc.h"
                     34: #include "sys/ra.h"
                     35: #include "sys/ta.h"
                     36: #include "sys/bvp.h"
                     37: #include "sys/debna.h"
                     38: #include "sys/ttyio.h"
                     39: #include "sys/ttyld.h"
                     40: #include "sys/bufld.h"
                     41: #include "sys/mesg.h"
                     42: #include "sys/mount.h"
                     43: extern struct bdevsw swbdev;
                     44: extern struct bdevsw rabdev;
                     45: extern struct bdevsw tabdev;
                     46: int nblkdev = 11;
                     47: extern struct cdevsw cncdev;
                     48: extern struct cdevsw dzcdev;
                     49: extern struct cdevsw mmcdev;
                     50: extern struct cdevsw swcdev;
                     51: extern struct cdevsw bnacdev;
                     52: extern struct cdevsw kmccdev;
                     53: extern struct cdevsw racdev;
                     54: extern struct cdevsw kdicdev;
                     55: extern struct cdevsw omcdev;
                     56: extern struct cdevsw fdcdev;
                     57: extern struct cdevsw ipcdev;
                     58: extern struct cdevsw tcpcdev;
                     59: extern struct cdevsw udpcdev;
                     60: extern struct cdevsw tacdev;
                     61: int nchrdev = 60;
                     62: extern struct fstypsw fsfs;
                     63: extern struct fstypsw nafs;
                     64: extern struct fstypsw prfs;
                     65: extern struct fstypsw msfs;
                     66: extern struct fstypsw nbfs;
                     67: extern struct fstypsw erfs;
                     68: extern struct fstypsw pipfs;
                     69: int nfstyp = 7;
                     70: extern struct streamtab ttystream;
                     71: extern struct streamtab msgstream;
                     72: extern struct streamtab bufldstream;
                     73: extern struct streamtab rmsgstream;
                     74: extern struct streamtab ipstream;
                     75: extern struct streamtab tcpstream;
                     76: extern struct streamtab udpstream;
                     77: extern struct streamtab connstream;
                     78: extern struct streamtab xpstream;
                     79: int nstreamtab = 20;
                     80: 
                     81: struct bdevsw *bdevsw[] = {
                     82:        NULL,
                     83:        NULL,
                     84:        NULL,
                     85:        NULL,
                     86:        &swbdev,        /* 4 */
                     87:        NULL,
                     88:        NULL,
                     89:        &rabdev,        /* 7 */
                     90:        NULL,
                     91:        NULL,
                     92:        &tabdev,        /* 10 */
                     93: };
                     94: struct cdevsw *cdevsw[] = {
                     95:        &cncdev,        /* 0 */
                     96:        &dzcdev,        /* 1 */
                     97:        NULL,
                     98:        &mmcdev,        /* 3 */
                     99:        NULL,
                    100:        NULL,
                    101:        NULL,
                    102:        &swcdev,        /* 7 */
                    103:        NULL,
                    104:        NULL,
                    105:        NULL,
                    106:        NULL,
                    107:        NULL,
                    108:        NULL,
                    109:        &bnacdev,       /* 14 */
                    110:        NULL,
                    111:        NULL,
                    112:        NULL,
                    113:        NULL,
                    114:        NULL,
                    115:        NULL,
                    116:        NULL,
                    117:        NULL,
                    118:        NULL,
                    119:        NULL,
                    120:        NULL,
                    121:        &kmccdev,       /* 26 */
                    122:        NULL,
                    123:        &racdev,        /* 28 */
                    124:        NULL,
                    125:        NULL,
                    126:        &kdicdev,       /* 31 */
                    127:        NULL,
                    128:        NULL,
                    129:        NULL,
                    130:        NULL,
                    131:        NULL,
                    132:        NULL,
                    133:        NULL,
                    134:        &omcdev,        /* 39 */
                    135:        &fdcdev,        /* 40 */
                    136:        NULL,
                    137:        &ipcdev,        /* 42 */
                    138:        &tcpcdev,       /* 43 */
                    139:        NULL,
                    140:        NULL,
                    141:        NULL,
                    142:        NULL,
                    143:        NULL,
                    144:        NULL,
                    145:        &udpcdev,       /* 50 */
                    146:        NULL,
                    147:        NULL,
                    148:        NULL,
                    149:        NULL,
                    150:        NULL,
                    151:        NULL,
                    152:        NULL,
                    153:        NULL,
                    154:        &tacdev,        /* 59 */
                    155: };
                    156: struct fstypsw *fstypsw[] = {
                    157:        &fsfs,  /* 0 */
                    158:        &nafs,  /* 1 */
                    159:        &prfs,  /* 2 */
                    160:        &msfs,  /* 3 */
                    161:        &nbfs,  /* 4 */
                    162:        &erfs,  /* 5 */
                    163:        &pipfs, /* 6 */
                    164: };
                    165: struct streamtab *streamtab[] = {
                    166:        &ttystream,     /* 0 */
                    167:        NULL,
                    168:        NULL,
                    169:        NULL,
                    170:        &msgstream,     /* 4 */
                    171:        NULL,
                    172:        NULL,
                    173:        &bufldstream,   /* 7 */
                    174:        NULL,
                    175:        &rmsgstream,    /* 9 */
                    176:        &ipstream,      /* 10 */
                    177:        &tcpstream,     /* 11 */
                    178:        NULL,
                    179:        NULL,
                    180:        &udpstream,     /* 14 */
                    181:        NULL,
                    182:        NULL,
                    183:        NULL,
                    184:        &connstream,    /* 18 */
                    185:        &xpstream,      /* 19 */
                    186: };
                    187: int proccnt = 600;
                    188: struct proc proc[600];
                    189: int filecnt = 1500;
                    190: struct file file[1500];
                    191: int inodecnt = 1700;
                    192: struct inode inode[1700];
                    193: int calloutcnt = 50;
                    194: struct callout callout[50];
                    195: int textcnt = 120;
                    196: struct text text[120];
                    197: int argcnt = 16;
                    198: struct map argmap[16];
                    199: int swmapcnt = 600;
                    200: struct map swapmap[600];
                    201: int kernelcnt = 500;
                    202: struct map kernelmap[500];
                    203: int swbufcnt = 50;
                    204: struct buf swapbuf[50];
                    205: struct swapinfo swapinfo[50];
                    206: int bufhcnt = 599;
                    207: struct bufhd bufhash[599];
                    208: int queuecnt = 3000;
                    209: struct queue queue[3000];
                    210: int streamcnt = 800;
                    211: struct stdata streams[800];
                    212: int blkcnt = 1600;
                    213: struct block cblock[1600];
                    214: int blkbcnt = 20;
                    215: struct buf *cblkbuf[20];
                    216: int dstflag = 1;
                    217: int timezone = 300;
                    218: int maxtsize = 12256;
                    219: int maxdsize = 204800;
                    220: int maxssize = 204800;
                    221: 
                    222: struct nextab nextab[] = {
                    223:        2, 2,
                    224:        3, 2,
                    225:        2, 4,
                    226:        3, 0,
                    227:        2, 7,
                    228:        2, 3,
                    229:        3, 4,
                    230:        -1
                    231: };
                    232: struct biaddr biaaddr[] = {
                    233:        {-1},
                    234:        {-1},
                    235:        {0, 0x0, 0x400, 2},
                    236:        {1, 0x0, 0x600, 3},
                    237: };
                    238: int biacnt = 4;
                    239: int bianode[4];
                    240: struct biaddr ubaaddr[] = {
                    241:        {2, 0x30, 0xa00, 2},
                    242:        {3, 0x20, 0x200, 3},
                    243: };
                    244: int ubacnt = 2;
                    245: struct uba uba[2];
                    246: struct ubaddr udaddr[] = {
                    247:        {0774500, 0310, 0},
                    248:        {0772154, 0420, 1},
                    249: };
                    250: int udcnt = 2;
                    251: struct ud ud[2];
                    252: extern struct msportsw udport;
                    253: extern struct msportsw bdport;
                    254: int nmsport = 2;
                    255: struct msportsw *msportsw[] = {
                    256:        &udport,        /* 0 */
                    257:        &bdport,        /* 1 */
                    258: };
                    259: struct msaddr taaddr[] = {
                    260:        {0, 0, 0},
                    261: };
                    262: int tacnt = 1;
                    263: struct tatape tatape[1];
                    264: struct buf tabuf[1];
                    265: struct biaddr bnaaddr[] = {
                    266:        {4, 0x40, 0x0, 2},
                    267: };
                    268: int bnacnt = 1;
                    269: struct bnactl bna[1];
                    270: struct bnabuf bnabuf[1];
                    271: struct biaddr bdaddr[] = {
                    272:        {5, 0x10, 0x0, 2},
                    273:        {6, 0x10, 0x0, 3},
                    274: };
                    275: int bdcnt = 2;
                    276: struct bd bd[2];
                    277: struct msaddr raaddr[] = {
                    278:        {1, 1, 0},
                    279:        {1, 1, 1},
                    280:        {1, 1, 2},
                    281:        {1, 1, 3},
                    282:        {1, 0, 4},
                    283:        {0, 1, 0},
                    284:        {0, 1, 1},
                    285:        {0, 1, 2},
                    286: };
                    287: int racnt = 8;
                    288: struct radisk radisk[8];
                    289: struct buf rabuf[8];
                    290: struct ubaddr kmcaddr[] = {
                    291:        {0760130, 0320, 1},
                    292: };
                    293: int kmccnt = 1;
                    294: struct kmc kmc[1];
                    295: struct ubaddr omaddr[] = {
                    296:        {0760300, 0330, 1},
                    297: };
                    298: int omcnt = 1;
                    299: struct om om[1];
                    300: struct ubaddr dzaddr[] = {
                    301:        {0760100, 0300, 1},
                    302:        {0760110, 0310, 1},
                    303: };
                    304: int dzcnt = 16;
                    305: struct dz dz[16];
                    306: int kdicnt = 1;
                    307: struct kdikmc kdikmc[1];
                    308: struct kmcdk k[1];
                    309: int cncnt = 0;
                    310: int ipcnt = 4;
                    311: struct ipif ipif[4];
                    312: struct ipif *ipifsort[4];
                    313: int udpcnt = 16;
                    314: struct udp udpconn[16];
                    315: int tcpcnt = 64;
                    316: struct tcpcb tcpcb[64];
                    317: int arpcnt = 128;
                    318: struct ip_arp ip_arps[128];
                    319: int ttycnt = 128;
                    320: struct ttyld ttyld[128];
                    321: int msgcnt = 300;
                    322: struct imesg mesg[300];
                    323: int xpcnt = 0;
                    324: int bufldcnt = 32;
                    325: struct bufld bufld[32];
                    326: int fscnt = 30;
                    327: struct mount fsmtab[30];
                    328: int rootfstyp = 0;
                    329: dev_t rootdev = makedev(7, 64);
                    330: dev_t swapdev = makedev(4, 0);
                    331: struct swdevt swdevt[] = {
                    332:        {makedev(7, 3), 249848L},
                    333:        {makedev(7, 11), 249848L},
                    334:        {makedev(7, 19), 249848L},
                    335: };
                    336: int nswdevt = 3;
                    337: extern int bddump();
                    338: int (*dumprout)() = bddump;
                    339: int dumpunit = 13315;
                    340: long dumplow = 280568;
                    341: long dumpsize = 249848;

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.