|
|
1.1 ! root 1: /* ! 2: * /usr/include/sys/param.h ! 3: * ! 4: * Parameters specific to this port of COHERENT. ! 5: * ! 6: * Revised: Thu Jul 15 14:20:24 1993 CDT ! 7: */ ! 8: #ifndef __SYS_PARAM_H__ ! 9: #define __SYS_PARAM_H__ ! 10: ! 11: #include <common/feature.h> ! 12: ! 13: /* WARNING! Fix references to dev_loaded if ever NDRV > 8*sizeof(int) */ ! 14: #define NDRV 32 /* Number of major device entries */ ! 15: #define NOFILE 60 /* Number of user open files */ ! 16: #define NEXREAD 6 /* Read ahead */ ! 17: ! 18: #if __KERNEL__ /* These set in *con.c */ ! 19: ! 20: extern int NBUF; /* Now an adjustable parameter */ ! 21: extern int NHASH; /* Now an adjustable parameter */ ! 22: extern int NINODE; /* Now an adjustable parameter */ ! 23: extern int NCLIST; /* Now an adjustable parameter */ ! 24: extern int ALLSIZE; /* Now an adjustable paramenter */ ! 25: extern int ISTSIZE; /* Initial stack size (bytes) */ ! 26: ! 27: #endif /* __KERNEL__ */ ! 28: ! 29: #if _I386 ! 30: ! 31: #define BPCSHIFT 12 ! 32: #define BPC1SHIFT 10 ! 33: #define BPSSHIFT 22 ! 34: #define NBPC 0x001000 ! 35: #define NBPS 0x400000 ! 36: ! 37: #define ISP_286 0x10000 ! 38: #define ISP_386 stob(512) ! 39: ! 40: #define UPASIZE 4096 /* Size in bytes of user area */ ! 41: ! 42: #define SYI86UNEEK 333 ! 43: ! 44: #define MSACOUNT 6 /* Number of ints for system call args */ ! 45: #define ISTVIRT 0 /* Stack virtual base for sys exec */ ! 46: #define SOVSIZE 0 /* Stack overflow size */ ! 47: #define MADSIZE 32767 /* Maximum addressable segment size */ ! 48: #define SMICALL 0 /* Start of independent system calls */ ! 49: #define NMICALL 88 /* Machine independent system calls */ ! 50: #define H28CALL 0x31 /* # system calls of form 0x??28 */ ! 51: #define COHCALL 500 /* Number of COH system call */ ! 52: #define SMDCALL 128 /* Start of dependent system calls */ ! 53: #define NMDCALL 0 /* Machine dependent system calls */ ! 54: #define BSIZE 512 /* Buffer size */ ! 55: #define SCHUNK 16384 /* I/O chunk size for swap and dump */ ! 56: #define NCPCL 124 /* Number of characters in clist */ ! 57: #define NPID 30000 /* Maximum process id */ ! 58: #define MAXU ((unsigned)0177777) ! 59: ! 60: /* ! 61: * Commands for system call cohcall() ! 62: */ ! 63: #define COH_PRINTF 1 ! 64: #define COH_DEVLOAD 2 ! 65: #define COH_SETBP 4 ! 66: #define COH_CLRBP 5 ! 67: #define COH_REBOOT 6 ! 68: #define COH_VIO 7 ! 69: #define COH_SHM 8 ! 70: #define COH_WTEXT 9 ! 71: #define COH_GETINT11 10 /* returns hardware word as recorded ! 72: * at boot time ! 73: */ ! 74: ! 75: #define HZ 100 /* Number of clock ticks per second. */ ! 76: #define T0_RATE 11932 /* Number of timer 0 counts per clock tick. */ ! 77: /* convert microseconds to timer 0 counts - roughly multiply by 1.1932 */ ! 78: #define USEC_TO_COUNTS(usec) ((usec)+(((usec)*3)/16)) ! 79: ! 80: #endif /* _I386 */ ! 81: ! 82: #endif /* ! defined (__SYS_PARAM_H__) */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.