Annotation of coherent/f/usr/include.78/sys/param.h, revision 1.1.1.1

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

unix.superglobalmegacorp.com

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