File:  [MW Coherent from dump] / coherent / f / usr / include.78 / sys / param.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:40 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/* (-lgl
 * 	COHERENT Version 4.0
 * 	Copyright (c) 1982, 1993 by Mark Williams Company.
 * 	All rights reserved. May not be copied without permission.
 -lgl) */

/*
 * /usr/include/sys/param.h
 *
 * Parameters specific to this port of COHERENT.
 *
 * Revised: Wed May  5 16:52:17 1993 CDT
 */
#ifndef __SYS_PARAM_H__
#define	__SYS_PARAM_H__

/* WARNING!  Fix references to dev_loaded if ever NDRV > 8*sizeof(int) */
#define NDRV	32			/* Number of major device entries */
#define NOFILE	60			/* Number of user open files */
#define	NEXREAD	6			/* Read ahead */

#ifdef KERNEL			/* These set in *con.c */
extern	int	NBUF;			/* Now an adjustable parameter */
extern	int	NHASH;			/* Now an adjustable parameter */
extern	int	NINODE;			/* Now an adjustable parameter */
extern	int	NCLIST;			/* Now an adjustable parameter */
extern	int	ALLSIZE;		/* Now an adjustable paramenter */
extern	int	ISTSIZE;		/* Initial stack size (bytes) */
#endif

#ifdef _I386
#define	BPCSHIFT	12
#define	BPC1SHIFT	10
#define	BPSSHIFT	22
#define	NBPC		0x001000
#define	NBPS		0x400000

#define	ISP_286		0x10000
#define	ISP_386		stob(512)

#define	UPASIZE		4096	/* Size in bytes of user area */

#define	SYI86UNEEK	333

#define	MSACOUNT	6	/* Number of ints for system call args */
#define	ISTVIRT		0		/* Stack virtual base for sys exec */
#define	SOVSIZE		0		/* Stack overflow size */
#define MADSIZE		32767		/* Maximum addressable segment size */
#define SMICALL		0		/* Start of independent system calls */
#define NMICALL		88		/* Machine independent system calls */
#define H28CALL		0x0F		/* # system calls of form 0x??28 */
#define COHCALL		500		/* Number of COH system call */
#define SMDCALL		128		/* Start of dependent system calls */
#define NMDCALL		0		/* Machine dependent system calls */
#define	BSIZE		512		/* Buffer size */
#define SCHUNK		16384		/* I/O chunk size for swap and dump */
#define	NCPCL		124		/* Number of characters in clist */
#define	NPID		30000		/* Maximum process id */
#define	MAXU		((unsigned)0177777)

/*
 * Commands for system call cohcall()
 */
#define COH_PRINTF	1
#define COH_DEVLOAD	2
#define COH_SETBP	4
#define COH_CLRBP	5
#define COH_REBOOT	6
#define COH_VIO		7
#define COH_SHM		8
#define COH_WTEXT	9

#define	HZ	100	/* Number of clock ticks per second.		*/
#define T0_RATE	11932	/* Number of timer 0 counts per clock tick.	*/
/* convert microseconds to timer 0 counts - roughly multiply by 1.1932	*/
#define USEC_TO_COUNTS(usec)	((usec)+(((usec)*3)/16))

#endif

#endif

unix.superglobalmegacorp.com

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