Annotation of researchv10dc/lsys/mercury/balin.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/ubaddr.h"
                     17: #include "sys/uba.h"
                     18: #include "sys/uda.h"
                     19: #include "sys/inet/in.h"
                     20: #include "sys/inet/ip_var.h"
                     21: #include "sys/inet/udp.h"
                     22: #include "sys/inet/tcp.h"
                     23: #include "sys/inet/tcp_timer.h"
                     24: #include "sys/inet/tcp_var.h"
                     25: #include "sys/dk.h"
                     26: #include "sys/mscp.h"
                     27: #include "sys/deqna.h"
                     28: #include "sys/udaioc.h"
                     29: #include "sys/ra.h"
                     30: #include "sys/ttyio.h"
                     31: #include "sys/ttyld.h"
                     32: #include "sys/bufld.h"
                     33: #include "sys/mesg.h"
                     34: #include "sys/dkp.h"
                     35: #include "sys/mount.h"
                     36: extern struct bdevsw swbdev;
                     37: extern struct bdevsw rabdev;
                     38: int nblkdev = 8;
                     39: extern struct cdevsw cncdev;
                     40: extern struct cdevsw mmcdev;
                     41: extern struct cdevsw swcdev;
                     42: extern struct cdevsw dkcdev;
                     43: extern struct cdevsw racdev;
                     44: extern struct cdevsw fdcdev;
                     45: extern struct cdevsw ipcdev;
                     46: extern struct cdevsw tcpcdev;
                     47: extern struct cdevsw udpcdev;
                     48: extern struct cdevsw qecdev;
                     49: int nchrdev = 59;
                     50: extern struct fstypsw fsfs;
                     51: extern struct fstypsw nafs;
                     52: extern struct fstypsw prfs;
                     53: extern struct fstypsw msfs;
                     54: extern struct fstypsw nbfs;
                     55: extern struct fstypsw erfs;
                     56: extern struct fstypsw pipfs;
                     57: int nfstyp = 7;
                     58: extern struct streamtab ttystream;
                     59: extern struct streamtab cdkpstream;
                     60: extern struct streamtab msgstream;
                     61: extern struct streamtab dkpstream;
                     62: extern struct streamtab bufldstream;
                     63: extern struct streamtab rmsgstream;
                     64: extern struct streamtab ipstream;
                     65: extern struct streamtab tcpstream;
                     66: extern struct streamtab udpstream;
                     67: extern struct streamtab connstream;
                     68: extern struct streamtab xpstream;
                     69: int nstreamtab = 20;
                     70: 
                     71: struct bdevsw *bdevsw[] = {
                     72:        NULL,
                     73:        NULL,
                     74:        NULL,
                     75:        NULL,
                     76:        &swbdev,        /* 4 */
                     77:        NULL,
                     78:        NULL,
                     79:        &rabdev,        /* 7 */
                     80: };
                     81: struct cdevsw *cdevsw[] = {
                     82:        &cncdev,        /* 0 */
                     83:        NULL,
                     84:        NULL,
                     85:        &mmcdev,        /* 3 */
                     86:        NULL,
                     87:        NULL,
                     88:        NULL,
                     89:        &swcdev,        /* 7 */
                     90:        NULL,
                     91:        NULL,
                     92:        NULL,
                     93:        NULL,
                     94:        NULL,
                     95:        NULL,
                     96:        NULL,
                     97:        NULL,
                     98:        NULL,
                     99:        &dkcdev,        /* 17 */
                    100:        NULL,
                    101:        NULL,
                    102:        NULL,
                    103:        NULL,
                    104:        NULL,
                    105:        NULL,
                    106:        NULL,
                    107:        NULL,
                    108:        NULL,
                    109:        NULL,
                    110:        &racdev,        /* 28 */
                    111:        NULL,
                    112:        NULL,
                    113:        NULL,
                    114:        NULL,
                    115:        NULL,
                    116:        NULL,
                    117:        NULL,
                    118:        NULL,
                    119:        NULL,
                    120:        NULL,
                    121:        NULL,
                    122:        &fdcdev,        /* 40 */
                    123:        NULL,
                    124:        &ipcdev,        /* 42 */
                    125:        &tcpcdev,       /* 43 */
                    126:        NULL,
                    127:        NULL,
                    128:        NULL,
                    129:        NULL,
                    130:        NULL,
                    131:        NULL,
                    132:        &udpcdev,       /* 50 */
                    133:        NULL,
                    134:        NULL,
                    135:        NULL,
                    136:        NULL,
                    137:        NULL,
                    138:        NULL,
                    139:        NULL,
                    140:        &qecdev,        /* 58 */
                    141: };
                    142: struct fstypsw *fstypsw[] = {
                    143:        &fsfs,  /* 0 */
                    144:        &nafs,  /* 1 */
                    145:        &prfs,  /* 2 */
                    146:        &msfs,  /* 3 */
                    147:        &nbfs,  /* 4 */
                    148:        &erfs,  /* 5 */
                    149:        &pipfs, /* 6 */
                    150: };
                    151: struct streamtab *streamtab[] = {
                    152:        &ttystream,     /* 0 */
                    153:        &cdkpstream,    /* 1 */
                    154:        NULL,
                    155:        NULL,
                    156:        &msgstream,     /* 4 */
                    157:        &dkpstream,     /* 5 */
                    158:        NULL,
                    159:        &bufldstream,   /* 7 */
                    160:        NULL,
                    161:        &rmsgstream,    /* 9 */
                    162:        &ipstream,      /* 10 */
                    163:        &tcpstream,     /* 11 */
                    164:        NULL,
                    165:        NULL,
                    166:        &udpstream,     /* 14 */
                    167:        NULL,
                    168:        NULL,
                    169:        NULL,
                    170:        &connstream,    /* 18 */
                    171:        &xpstream,      /* 19 */
                    172: };
                    173: int proccnt = 300;
                    174: struct proc proc[300];
                    175: int filecnt = 500;
                    176: struct file file[500];
                    177: int inodecnt = 700;
                    178: struct inode inode[700];
                    179: int calloutcnt = 50;
                    180: struct callout callout[50];
                    181: int textcnt = 60;
                    182: struct text text[60];
                    183: int argcnt = 16;
                    184: struct map argmap[16];
                    185: int swmapcnt = 200;
                    186: struct map swapmap[200];
                    187: int kernelcnt = 100;
                    188: struct map kernelmap[100];
                    189: int swbufcnt = 50;
                    190: struct buf swapbuf[50];
                    191: struct swapinfo swapinfo[50];
                    192: int bufhcnt = 63;
                    193: struct bufhd bufhash[63];
                    194: int queuecnt = 1024;
                    195: struct queue queue[1024];
                    196: int streamcnt = 256;
                    197: struct stdata streams[256];
                    198: int blkcnt = 600;
                    199: struct block cblock[600];
                    200: int blkbcnt = 10;
                    201: struct buf *cblkbuf[10];
                    202: int dstflag = 1;
                    203: int timezone = 300;
                    204: int maxtsize = 12256;
                    205: int maxdsize = 24544;
                    206: int maxssize = 24544;
                    207: int ubacnt = 1;
                    208: struct uba uba[1];
                    209: struct ubaddr udaddr[] = {
                    210:        {0772150, 0254, 0},
                    211:        {0760334, 0260, 0},
                    212: };
                    213: int udcnt = 2;
                    214: struct ud ud[2];
                    215: extern struct msportsw udport;
                    216: int nmsport = 1;
                    217: struct msportsw *msportsw[] = {
                    218:        &udport,        /* 0 */
                    219: };
                    220: struct msaddr raaddr[] = {
                    221:        {0, 0, 0},
                    222:        {0, 0, 1},
                    223:        {0, 0, 2},
                    224:        {0, 0, 3},
                    225:        {1, 0, 0},
                    226:        {1, 0, 1},
                    227:        {1, 0, 2},
                    228: };
                    229: int racnt = 7;
                    230: struct radisk radisk[7];
                    231: struct buf rabuf[7];
                    232: struct ubaddr dkaddr[] = {
                    233:        {0767770, 0300, 0},
                    234: };
                    235: int dkcnt = 256;
                    236: struct dk dk[256];
                    237: char dkstate[256];
                    238: struct ubaddr qeaddr[] = {
                    239:        {0774440, 0274, 0},
                    240: };
                    241: int qecnt = 1;
                    242: struct qe qe[1];
                    243: int cncnt = 0;
                    244: int ipcnt = 4;
                    245: struct ipif ipif[4];
                    246: struct ipif *ipifsort[4];
                    247: int udpcnt = 16;
                    248: struct udp udpconn[16];
                    249: int tcpcnt = 32;
                    250: struct tcpcb tcpcb[32];
                    251: int arpcnt = 128;
                    252: struct ip_arp ip_arps[128];
                    253: int ttycnt = 32;
                    254: struct ttyld ttyld[32];
                    255: int msgcnt = 256;
                    256: struct imesg mesg[256];
                    257: int dkpcnt = 96;
                    258: struct dkp dkp[96];
                    259: int xpcnt = 0;
                    260: int cdkpcnt = 0;
                    261: int bufldcnt = 4;
                    262: struct bufld bufld[4];
                    263: int fscnt = 10;
                    264: struct mount fsmtab[10];
                    265: int rootfstyp = 0;
                    266: dev_t rootdev = makedev(7, 64);
                    267: dev_t swapdev = makedev(4, 0);
                    268: struct swdevt swdevt[] = {
                    269:        {makedev(7, 1), 20480L},
                    270:        {makedev(7, 9), 20480L},
                    271:        {makedev(7, 17), 20480L},
                    272:        {makedev(7, 25), 20480L},
                    273: };
                    274: int nswdevt = 4;
                    275: extern int uddump();
                    276: int (*dumprout)() = uddump;
                    277: int dumpunit = 0;
                    278: long dumplow = 10240;
                    279: long dumpsize = 20480;

unix.superglobalmegacorp.com

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