|
|
1.1 root 1: /*
2: * This file contains software configuration parameters for the NCP,
3: * as well as the definitions
4: * for the hardware interfaces in use
5: */
6: /*
7: * Software configuration parameters - system independent
8: */
9: #ifdef VMUNIX
10: #define CHNCONNS 40 /* Maximum number of connections */
11: #else
12: #define CHNCONNS 20 /* Maximum number of connections */
13: #endif VMUNIX
14: #define CHDRWSIZE 5 /* Default receive window size */
15: #define CHMINDATA (32-CHHEADSIZE)
16: #define CHRFCTRYS 3 /* Try 3 RFC's before giving up */
17: #define CHNSUBNET 070 /* Number of subnets in routing table */
18: /*
19: * Software configuration parameters - system dependent
20: */
21: #define chroundup(n) ((n) <= (32-CHHEADSIZE) ? (32-CHHEADSIZE) : \
22: (n) <= (128-CHHEADSIZE) ? (128-CHHEADSIZE) : \
23: (512-CHHEADSIZE) )
24:
25: #define CHBUFTIME 5*Chhz /* timeout ticks for no buffers (used?) */
26:
27: /*
28: * Hardware configuration parameters
29: *
30: * Foreach interface type (e.g. xxzzz), you need:
31:
32: #include "chxx.h"
33: #if NCHXX > 0
34: #include "../chaos/xxzzz.h" * for device register definitions and
35: struct xxxxinfo defining software state *
36: extern short xxxxhosts[]; * array of actual host numbers
37: (initialized in chconf.c) *
38: * only needed for interfaces that don't know
39: their own address *
40: #endif
41: */
42: /*
43: * For dr11-c's
44: */
45: #include "chdr.h"
46: #if NCHDR > 0
47: #include "../chaos/dr11c.h"
48: extern short dr11chosts[]; /* local host address per dr11c interface */
49: #endif
50:
51: /*
52: * For ch11's - if not VMUNIX we must specify number of interfaces here.
53: */
54: #include "chch.h"
55: #if NCHCH > 0
56: #include "../chaos/ch11.h"
57: #endif
58: /*
59: * For chil's.
60: */
61: #include "chil.h"
62: #if NCHIL > 0
63: #include "../h/ilreg.h"
64: #include "../h/if_il.h"
65: #include "../chaos/chil.h"
66: #endif
67:
68: /*
69: * This union should contain all device info structures in use.
70: */
71: union xcinfo {
72: #if NCHDR > 0
73: struct dr11cinfo xc_dr11c; /* for dr11c's */
74: #endif
75: #if NCHCH > 0
76: struct ch11info xc_ch11; /* for ch11's */
77: #endif
78: #if NCHIL > 0
79: struct chilinfo xc_chil; /* for chil's */
80: #define xc_ilinfo xc_info.xc_chil
81: #endif
82: /* other devices go here */
83: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.