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