Annotation of researchv8dc/sys/chunix/chconf.c, revision 1.1.1.1

1.1       root        1: #include "../chunix/chsys.h"
                      2: #include "../chunix/chconf.h"
                      3: #include "chch.h"
                      4: #include "../chaos/chaos.h"
                      5: #include "../h/systm.h"
                      6: /*
                      7:  * This file contains initializations of configuration dependent data
                      8:  * structures and device dependent initialization functions.
                      9:  */
                     10: 
                     11: /*
                     12:  * We must identify ourselves
                     13:  */
                     14: short Chmyaddr = -1;
                     15: char Chmyname[CHSTATNAME] = "Uninitialized";
                     16: short chhosts[] = {0};
                     17: int Chhz = 60;         /* This is set correctly at auto-conf time but needs
                     18:                         * a non-zero initial value at boot time.
                     19:                         */
                     20: 
                     21: /*
                     22:  * Reset all devices
                     23:  */
                     24: chrreset()
                     25: {
                     26:        register struct chroute *r;
                     27: 
                     28:        for (r = Chroutetab; r < &Chroutetab[CHNSUBNET]; r++)
                     29:                if (r->rt_cost == 0)
                     30:                        r->rt_cost = CHHCOST;
                     31: #if NCHDR > 0
                     32:        chdrinit();
                     33: #endif NCHDR
                     34: #if NCHCH > 0
                     35:        chchinit();
                     36: #endif NCHCH
                     37: #if NCHIL > 0
                     38:        chilinit();
                     39: #endif NCHIL
                     40: 
                     41:        /*
                     42:         * This is necessary to preserve the modularity of the
                     43:         * NCP.
                     44:         */
                     45:        Chhz = hz;
                     46: }
                     47: /*
                     48:  * Check for interface timeouts
                     49:  */
                     50: chxtime()
                     51: {
                     52: #ifdef NDR11C
                     53:        chdrxtime();
                     54: #endif NDR11C
                     55: }

unix.superglobalmegacorp.com

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