home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / Drivers / Mux-1.9-I / MuxParm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-04  |  4.1 KB  |  134 lines

  1. /*
  2.  *    Name: MuxParm.h
  3.  *    Description: Global point for setting up the parameters used by the Mux
  4.  *    Project.
  5.  *    Author: Mark Salyzyn January 15 1994
  6.  */
  7. #define NINSTANCE 1
  8. #define NTTY 1
  9. #define NO_HAYES 1
  10. /*
  11.  *    NINSTANCE
  12.  *
  13.  *    This parameter is set to the maximum number of instances to support.
  14.  *    I could have done this dynamically, but chose a static size for
  15.  *    simplicity for now.
  16.  */
  17. #ifndef NINSTANCE
  18. #define NINSTANCE    4        /* Number of Instances to support */
  19. #endif
  20.  
  21. /*
  22.  *    NTTY
  23.  *
  24.  *    This parameter is used to set the maximum number of ports to support
  25.  *    for each instance of the Mux driver. All the ports in each instance
  26.  *    must be tied to the same interrupt, and need not have a multiplex
  27.  *    port available to streamline the driver's overhead. NTTY should be set
  28.  *    to the number of ports available on the largest multiplexed serial
  29.  *    board. The number of ports that can be supported, then, is
  30.  *    NINSTANCE * NTTY.
  31.  */
  32.  
  33. #ifndef NTTY
  34. #define NTTY    8            /* Number of Serial Ports/Instance */
  35. #endif
  36.  
  37. /*
  38.  *    NO_MUX
  39.  *
  40.  *    Define this if you desire to reduce the interrupt overhead on your
  41.  * system if you have no multiplex register on a shared interrupt device, or
  42.  * if you only have single ports on your system for each interrupt. If you
  43.  * define NTTY as 1, then NO_MUX is automatically defined.
  44.  */
  45. /* #define NO_MUX    1        /* No multiplexor port        */
  46.  
  47. /*
  48.  * Input Buffer.
  49.  *
  50.  * It is prefered to make the buffers programmable, via "Buffer Size [#]",
  51.  * "RTS Low Water [#]" and "RTS High Water [#]" variables in the
  52.  * Instance?.table. The default buffer size will be DOUBLE_BUFFER, the default
  53.  * low water mark will be one third the programmed buffer size, and the
  54.  * default high water mark will be half way between the low water mark and the
  55.  * buffer size.
  56.  */
  57. #ifndef DOUBLE_BUFFER
  58. #define DOUBLE_BUFFER    3328
  59. #endif
  60.  
  61. /*
  62.  * The Receive fifo interrupt trigger point. If it is the intention to use
  63.  * very high baud rates, the default trigger should be set lower. It has been
  64.  * found on some systems that setting FIFO_TRIGGER to FIFO_TRIGGER_1 may solve
  65.  * losing characters on streaming protocols at 38400 Baud on machines that
  66.  * appear burdened with interrupt latency on other hardware.
  67.  */
  68. #ifndef FIFO_TRIGGER
  69. #define FIFO_TRIGGER   FIFO_TRIGGER_4
  70. #endif
  71.  
  72. /*
  73.  * Define NO_HAYES to remove any code associated with the HAYES ESP 1MB serial
  74.  * card. The Hayes card adds performance by providing a larger FIFO buffer,
  75.  * thus capable of less interrupts to the host processor.
  76.  */
  77. /* #define NO_HAYES 1    /* To remove HAYES ESP support */
  78.  
  79. /*
  80.  *    Priorities of various levels of the Mux serial Driver, higher
  81.  * priorities may be necessary to improve performance in certain
  82.  * configurations. Although Driver Design says we should be at IPLTTY, this
  83.  * was in the days of PDP11s, in a 386 system, IPLTTY = SOFTINT0 = 1 which
  84.  * makes things undesireable. Do not change this variable unless you know what
  85.  * you are doing (it is currently untested at any other value).
  86.  */
  87. #ifndef MUX_IPL
  88. #define MUX_IPL    1
  89. #endif
  90.  
  91. /*
  92.  *    _NX_KERNEL
  93.  *
  94.  *    This parameter may be used later in the code adjusting for various
  95.  *    differences in the Kernel. Currently, only 320 is supported, as 310
  96.  *    does not work with Mux, and 330 problems have not been entirely
  97.  *    checked out. Set the variable to the version of the OS you are using.
  98.  */
  99. #ifndef _NX_KERNEL
  100. /*#define _NX_KERNEL    320    /* NextSTEP 3.2    */
  101. /*#define _NX_KERNEL    330    /* NextSTEP 3.3 & OpenSTEP 4.0 PR1 */
  102. /*#define _NX_KERNEL    402    /* OpenSTEP 4.0 PR2 */
  103. #define _NX_KERNEL    420    /* Prelude & OpenSTEP 4.2 */
  104. #endif
  105.  
  106. /*
  107.  *    POSIX_KERN
  108.  *
  109.  *    This parameter is used to add the TIOCSPGRP and TIOCGPGRP ioctl call
  110.  *    enhancements. Also, fixes associated with kernel structures are
  111.  *    included. Do not undefine this variable unless you know what you are
  112.  *    doing.
  113.  */
  114. #ifndef POSIX_KERN
  115. #define POSIX_KERN    1
  116. #endif
  117.  
  118. /*
  119.  *    MuxInspector
  120.  *
  121.  *    This parameter compiles the very borken and never finished Mux
  122.  *    Device Inspector. Define this if you intend to finish the project.
  123.  */
  124. #define MuxInspector    1
  125. #define MuxInspectorSTANDALONE    1
  126.  
  127. /*
  128.  * Name used by Project.
  129.  */
  130.  
  131. static char MuxDeviceName[] = "Mux";
  132.  
  133. static char MuxDeviceKind[] = "Serial";    /* Kind of driver registered    */
  134.