xref: /csrg-svn/sys/conf/param.c (revision 3744)
1*3744Sroot /*	param.c	4.4	81/05/12	*/
23124Swnj 
33124Swnj #include "../h/param.h"
43124Swnj #include "../h/systm.h"
5*3744Sroot #ifdef BBNNET
6*3744Sroot #include "../bbnnet/net.h"
7*3744Sroot #include "../bbnnet/imp.h"
8*3744Sroot #include "../bbnnet/ucb.h"
9*3744Sroot #endif BBNNET
103124Swnj #include "../h/dir.h"
113124Swnj #include "../h/user.h"
123124Swnj #include "../h/proc.h"
133124Swnj #include "../h/text.h"
143124Swnj #include "../h/inode.h"
153124Swnj #include "../h/file.h"
163124Swnj #include "../h/callout.h"
173124Swnj #include "../h/clist.h"
183124Swnj #include "../h/cmap.h"
193620Sroot #include "../h/port.h"
203124Swnj /*
213124Swnj  * System parameter formulae.
223124Swnj  *
233124Swnj  * This file is copied into each directory where we compile
243124Swnj  * the kernel; it should be modified there to suit local taste
253124Swnj  * if necessary.
263124Swnj  *
273124Swnj  * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx
283124Swnj  */
293124Swnj 
303124Swnj int	hz = HZ;
313124Swnj int	timezone = TIMEZONE;
323124Swnj int	dstflag = DST;
333124Swnj #define	NPROC (20 + 8 * MAXUSERS)
343124Swnj int	nproc = NPROC;
353124Swnj int	ntext = 24 + MAXUSERS;
363463Sroot int	ninode = (NPROC + 16 + MAXUSERS) + 32;
373124Swnj int	nfile = 8 * (NPROC + 16 + MAXUSERS) / 10;
383124Swnj int	ncallout = 16 + MAXUSERS;
393124Swnj int	nclist = 100 + 16 * MAXUSERS;
403620Sroot int	nport = NPROC / 2;
41*3744Sroot #ifdef BBNNET
42*3744Sroot int     nnetpages = NNETPAGES;
43*3744Sroot int     nwork = NWORK;
44*3744Sroot int     nnetcon = NCON;
45*3744Sroot int     nhost = NHOST;
46*3744Sroot #endif BBNNET
473124Swnj 
483124Swnj /*
493124Swnj  * These are initialized at bootstrap time
503124Swnj  * to values dependent on memory size
513124Swnj  */
523124Swnj int	nbuf, nswbuf;
533124Swnj 
543124Swnj /*
553124Swnj  * These have to be allocated somewhere; allocating
563124Swnj  * them here forces loader errors if this file is omitted.
573124Swnj  */
583124Swnj struct	proc *proc, *procNPROC;
593124Swnj struct	text *text, *textNTEXT;
603124Swnj struct	inode *inode, *inodeNINODE;
613124Swnj struct	file *file, *fileNFILE;
623124Swnj struct 	callout *callout;
633124Swnj struct	cblock *cfree;
643124Swnj struct	buf *buf, *swbuf;
653124Swnj short	*swsize;
663124Swnj int	*swpf;
673124Swnj char	*buffers;
683124Swnj struct	cmap *cmap, *ecmap;
69*3744Sroot #ifdef BBNNET
70*3744Sroot struct  pfree *freetab;
71*3744Sroot struct  work *workfree, *workNWORK;
72*3744Sroot struct  ucb *contab, *conNCON;
73*3744Sroot struct  host *host, *hostNHOST;
74*3744Sroot struct  net netcb;
75*3744Sroot struct  net_stat netstat;
76*3744Sroot struct  impstat imp_stat;
77*3744Sroot #endif BBNNET
78