Annotation of researchv10dc/lsys/astro/alice.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/mba.h"
        !            17: #include "sys/mbaddr.h"
        !            18: #include "sys/nxaddr.h"
        !            19: #include "sys/nexus.h"
        !            20: #include "sys/ubaddr.h"
        !            21: #include "sys/uba.h"
        !            22: #include "sys/uda.h"
        !            23: #include "sys/inet/in.h"
        !            24: #include "sys/inet/ip_var.h"
        !            25: #include "sys/inet/udp.h"
        !            26: #include "sys/inet/tcp.h"
        !            27: #include "sys/inet/tcp_timer.h"
        !            28: #include "sys/inet/tcp_var.h"
        !            29: #include "sys/subaddr.h"
        !            30: #include "sys/dz.h"
        !            31: #include "sys/dk.h"
        !            32: #include "sys/kmc.h"
        !            33: #include "sys/kdi.h"
        !            34: #include "sys/mscp.h"
        !            35: #include "sys/ni1010a.h"
        !            36: #include "sys/udaioc.h"
        !            37: #include "sys/ra.h"
        !            38: #include "sys/tu78.h"
        !            39: #include "sys/ttyio.h"
        !            40: #include "sys/ttyld.h"
        !            41: #include "sys/bufld.h"
        !            42: #include "sys/mesg.h"
        !            43: #include "sys/dkp.h"
        !            44: #include "sys/nttyio.h"
        !            45: #include "sys/nttyld.h"
        !            46: #include "sys/mount.h"
        !            47: extern struct bdevsw swbdev;
        !            48: extern struct bdevsw rabdev;
        !            49: extern struct bdevsw tu78bdev;
        !            50: int nblkdev = 9;
        !            51: extern struct cdevsw cncdev;
        !            52: extern struct cdevsw dzcdev;
        !            53: extern struct cdevsw mmcdev;
        !            54: extern struct cdevsw swcdev;
        !            55: extern struct cdevsw cbscdev;
        !            56: extern struct cdevsw dkcdev;
        !            57: extern struct cdevsw dncdev;
        !            58: extern struct cdevsw tu78cdev;
        !            59: extern struct cdevsw kmccdev;
        !            60: extern struct cdevsw racdev;
        !            61: extern struct cdevsw kdicdev;
        !            62: extern struct cdevsw fdcdev;
        !            63: extern struct cdevsw ipcdev;
        !            64: extern struct cdevsw tcpcdev;
        !            65: extern struct cdevsw ilcdev;
        !            66: extern struct cdevsw udpcdev;
        !            67: int nchrdev = 51;
        !            68: extern struct fstypsw fsfs;
        !            69: extern struct fstypsw nafs;
        !            70: extern struct fstypsw prfs;
        !            71: extern struct fstypsw msfs;
        !            72: extern struct fstypsw nbfs;
        !            73: extern struct fstypsw erfs;
        !            74: extern struct fstypsw pipfs;
        !            75: int nfstyp = 7;
        !            76: extern struct streamtab ttystream;
        !            77: extern struct streamtab cdkpstream;
        !            78: extern struct streamtab rdkstream;
        !            79: extern struct streamtab msgstream;
        !            80: extern struct streamtab dkpstream;
        !            81: extern struct streamtab nttystream;
        !            82: extern struct streamtab bufldstream;
        !            83: extern struct streamtab rmsgstream;
        !            84: extern struct streamtab ipstream;
        !            85: extern struct streamtab tcpstream;
        !            86: extern struct streamtab udpstream;
        !            87: extern struct streamtab connstream;
        !            88: int nstreamtab = 19;
        !            89: 
        !            90: struct bdevsw *bdevsw[] = {
        !            91:        NULL,
        !            92:        NULL,
        !            93:        NULL,
        !            94:        NULL,
        !            95:        &swbdev,        /* 4 */
        !            96:        NULL,
        !            97:        NULL,
        !            98:        &rabdev,        /* 7 */
        !            99:        &tu78bdev,      /* 8 */
        !           100: };
        !           101: struct cdevsw *cdevsw[] = {
        !           102:        &cncdev,        /* 0 */
        !           103:        &dzcdev,        /* 1 */
        !           104:        NULL,
        !           105:        &mmcdev,        /* 3 */
        !           106:        NULL,
        !           107:        NULL,
        !           108:        NULL,
        !           109:        &swcdev,        /* 7 */
        !           110:        &cbscdev,       /* 8 */
        !           111:        NULL,
        !           112:        NULL,
        !           113:        NULL,
        !           114:        NULL,
        !           115:        NULL,
        !           116:        NULL,
        !           117:        NULL,
        !           118:        NULL,
        !           119:        &dkcdev,        /* 17 */
        !           120:        NULL,
        !           121:        &dncdev,        /* 19 */
        !           122:        NULL,
        !           123:        NULL,
        !           124:        &tu78cdev,      /* 22 */
        !           125:        NULL,
        !           126:        NULL,
        !           127:        NULL,
        !           128:        &kmccdev,       /* 26 */
        !           129:        NULL,
        !           130:        &racdev,        /* 28 */
        !           131:        NULL,
        !           132:        NULL,
        !           133:        &kdicdev,       /* 31 */
        !           134:        NULL,
        !           135:        NULL,
        !           136:        NULL,
        !           137:        NULL,
        !           138:        NULL,
        !           139:        NULL,
        !           140:        NULL,
        !           141:        NULL,
        !           142:        &fdcdev,        /* 40 */
        !           143:        NULL,
        !           144:        &ipcdev,        /* 42 */
        !           145:        &tcpcdev,       /* 43 */
        !           146:        &ilcdev,        /* 44 */
        !           147:        NULL,
        !           148:        NULL,
        !           149:        NULL,
        !           150:        NULL,
        !           151:        NULL,
        !           152:        &udpcdev,       /* 50 */
        !           153: };
        !           154: struct fstypsw *fstypsw[] = {
        !           155:        &fsfs,  /* 0 */
        !           156:        &nafs,  /* 1 */
        !           157:        &prfs,  /* 2 */
        !           158:        &msfs,  /* 3 */
        !           159:        &nbfs,  /* 4 */
        !           160:        &erfs,  /* 5 */
        !           161:        &pipfs, /* 6 */
        !           162: };
        !           163: struct streamtab *streamtab[] = {
        !           164:        &ttystream,     /* 0 */
        !           165:        &cdkpstream,    /* 1 */
        !           166:        &rdkstream,     /* 2 */
        !           167:        NULL,
        !           168:        &msgstream,     /* 4 */
        !           169:        &dkpstream,     /* 5 */
        !           170:        &nttystream,    /* 6 */
        !           171:        &bufldstream,   /* 7 */
        !           172:        NULL,
        !           173:        &rmsgstream,    /* 9 */
        !           174:        &ipstream,      /* 10 */
        !           175:        &tcpstream,     /* 11 */
        !           176:        NULL,
        !           177:        NULL,
        !           178:        &udpstream,     /* 14 */
        !           179:        NULL,
        !           180:        NULL,
        !           181:        NULL,
        !           182:        &connstream,    /* 18 */
        !           183: };
        !           184: int proccnt = 1200;
        !           185: struct proc proc[1200];
        !           186: int filecnt = 2500;
        !           187: struct file file[2500];
        !           188: int inodecnt = 4000;
        !           189: struct inode inode[4000];
        !           190: int calloutcnt = 50;
        !           191: struct callout callout[50];
        !           192: int textcnt = 100;
        !           193: struct text text[100];
        !           194: int argcnt = 16;
        !           195: struct map argmap[16];
        !           196: int swmapcnt = 400;
        !           197: struct map swapmap[400];
        !           198: int kernelcnt = 600;
        !           199: struct map kernelmap[600];
        !           200: int swbufcnt = 50;
        !           201: struct buf swapbuf[50];
        !           202: struct swapinfo swapinfo[50];
        !           203: int bufhcnt = 127;
        !           204: struct bufhd bufhash[127];
        !           205: int queuecnt = 2000;
        !           206: struct queue queue[2000];
        !           207: int streamcnt = 500;
        !           208: struct stdata streams[500];
        !           209: int blkcnt = 2000;
        !           210: struct block cblock[2000];
        !           211: int blkbcnt = 30;
        !           212: struct buf *cblkbuf[30];
        !           213: int dstflag = 1;
        !           214: int timezone = 300;
        !           215: int maxtsize = 12256;
        !           216: int maxdsize = 24544;
        !           217: int maxssize = 24544;
        !           218: 
        !           219: struct nextab nextab[] = {
        !           220:        0, 1,
        !           221:        0, 2,
        !           222:        0, 9,
        !           223:        0, 3,
        !           224:        0, 4,
        !           225:        -1
        !           226: };
        !           227: struct nxaddr mcraddr[] = {
        !           228:        {0, 0, 0x0},
        !           229:        {1, 0, 0x0},
        !           230: };
        !           231: int mcrcnt = 2;
        !           232: caddr_t mcrregs[2];
        !           233: time_t mcrtime[2];
        !           234: struct nxaddr mbaaddr[] = {
        !           235:        {-1, 0},
        !           236:        {2, 0, 0x0},
        !           237: };
        !           238: int mbacnt = 2;
        !           239: struct mba mba[2];
        !           240: extern tm780int();
        !           241: char mbaid[][8] = {
        !           242:  00, 01, 02, 03, 04, 05, 06, 07,
        !           243:  0, 011, 012, 013, 014, 015, 016, 017,
        !           244: };
        !           245: int mbastray();
        !           246: int (*mbavec[][8])() = {
        !           247:  mbastray, mbastray, mbastray, mbastray, mbastray, mbastray, mbastray, mbastray,
        !           248:  tm780int, mbastray, mbastray, mbastray, mbastray, mbastray, mbastray, mbastray,
        !           249: };
        !           250: struct mbaddr tm78addr[] = {
        !           251:        {0, 1},
        !           252: };
        !           253: int tm78cnt = 1;
        !           254: struct tm78 tm78[1];
        !           255: struct subaddr tu78addr[] = {
        !           256:        {0, 0},
        !           257: };
        !           258: int tu78cnt = 1;
        !           259: struct tu78 tu78[1];
        !           260: struct buf ctu78buf[1];
        !           261: struct buf rtu78buf[1];
        !           262: struct nxaddr ubaaddr[] = {
        !           263:        {3, 0, 0x200},
        !           264:        {4, 0, 0x400},
        !           265: };
        !           266: int ubacnt = 2;
        !           267: struct uba uba[2];
        !           268: long ubazvec[2];
        !           269: char *ubavoff[2];
        !           270: long *ubavreg[2];
        !           271: struct ubaddr udaddr[] = {
        !           272:        {0772160, 0154, 0},
        !           273:        {0772150, 0160, 1},
        !           274: };
        !           275: int udcnt = 2;
        !           276: struct ud ud[2];
        !           277: extern struct msportsw udport;
        !           278: int nmsport = 1;
        !           279: struct msportsw *msportsw[] = {
        !           280:        &udport,        /* 0 */
        !           281: };
        !           282: struct msaddr raaddr[] = {
        !           283:        {0, 0, 0},
        !           284:        {1, 0, 1},
        !           285:        {0, 0, 2},
        !           286:        {1, 0, 3},
        !           287:        {0, 0, 4},
        !           288:        {1, 0, 5},
        !           289: };
        !           290: int racnt = 6;
        !           291: struct radisk radisk[6];
        !           292: struct buf rabuf[6];
        !           293: struct ubaddr dzaddr[] = {
        !           294:        {0760100, 0320, 1},
        !           295:        {-1, -1, -1},
        !           296:        {-1, -1, -1},
        !           297:        {-1, -1, -1},
        !           298:        {0760140, 0360, 0},
        !           299:        {0760150, 0370, 0},
        !           300: };
        !           301: int dzcnt = 48;
        !           302: struct dz dz[48];
        !           303: struct ubaddr dnaddr[] = {
        !           304:        {0775200, 0430, 1},
        !           305: };
        !           306: int dncnt = 1;
        !           307: caddr_t dnreg[1];
        !           308: struct ubaddr draddr[] = {
        !           309:        {0767570, 00, 1},
        !           310: };
        !           311: int drcnt = 1;
        !           312: caddr_t drreg[1];
        !           313: struct ubaddr iladdr[] = {
        !           314:        {0764000, 0350, 1},
        !           315: };
        !           316: int ilcnt = 1;
        !           317: struct il il[1];
        !           318: struct ubaddr dkaddr[] = {
        !           319:        {0767600, 0300, 0},
        !           320: };
        !           321: int dkcnt = 256;
        !           322: struct dk dk[256];
        !           323: char dkstate[256];
        !           324: struct ubaddr kmcaddr[] = {
        !           325:        {0760200, 0600, 0},
        !           326: };
        !           327: int kmccnt = 1;
        !           328: struct kmc kmc[1];
        !           329: int kdicnt = 1;
        !           330: struct kdikmc kdikmc[1];
        !           331: struct kmcdk k[1];
        !           332: int cncnt = 0;
        !           333: int ttycnt = 128;
        !           334: struct ttyld ttyld[128];
        !           335: int nttycnt = 32;
        !           336: struct nttyld ntty[32];
        !           337: int msgcnt = 256;
        !           338: struct imesg mesg[256];
        !           339: int rdkcnt = 0;
        !           340: int dkpcnt = 256;
        !           341: struct dkp dkp[256];
        !           342: int cdkpcnt = 0;
        !           343: int bufldcnt = 32;
        !           344: struct bufld bufld[32];
        !           345: int fscnt = 20;
        !           346: struct mount fsmtab[20];
        !           347: int ipcnt = 4;
        !           348: struct ipif ipif[4];
        !           349: struct ipif *ipifsort[4];
        !           350: int udpcnt = 16;
        !           351: struct udp udpconn[16];
        !           352: int tcpcnt = 96;
        !           353: struct tcpcb tcpcb[96];
        !           354: int arpcnt = 4;
        !           355: struct ip_arp ip_arps[4];
        !           356: int rootfstyp = 0;
        !           357: dev_t rootdev = makedev(7, 64);
        !           358: dev_t swapdev = makedev(4, 0);
        !           359: struct swdevt swdevt[] = {
        !           360:        {makedev(7, 1), 20480L},
        !           361:        {makedev(7, 9), 20480L},
        !           362:        {makedev(7, 17), 20480L},
        !           363:        {makedev(7, 25), 20480L},
        !           364:        {makedev(7, 33), 20480L},
        !           365:        {makedev(7, 41), 20480L},
        !           366: };
        !           367: int nswdevt = 6;
        !           368: extern int uddump();
        !           369: int (*dumprout)() = uddump;
        !           370: int dumpunit = 4097;
        !           371: long dumplow = 10240;
        !           372: 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.