The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/i386/isa/pcvt/pcvt_conf.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  * Copyright (c) 1999, 2000 Hellmuth Michaelis
    3  *
    4  * Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch.
    5  *
    6  * Copyright (c) 1992, 1994 Brian Dunford-Shore.
    7  *
    8  * All rights reserved.
    9  *
   10  * Redistribution and use in source and binary forms, with or without
   11  * modification, are permitted provided that the following conditions
   12  * are met:
   13  * 1. Redistributions of source code must retain the above copyright
   14  *    notice, this list of conditions and the following disclaimer.
   15  * 2. Redistributions in binary form must reproduce the above copyright
   16  *    notice, this list of conditions and the following disclaimer in the
   17  *    documentation and/or other materials provided with the distribution.
   18  * 3. All advertising materials mentioning features or use of this software
   19  *    must display the following acknowledgement:
   20  *      This product includes software developed by
   21  *      Hellmuth Michaelis, Brian Dunford-Shore and Joerg Wunsch.
   22  * 4. The name authors may not be used to endorse or promote products
   23  *    derived from this software without specific prior written permission.
   24  *
   25  * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
   26  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   27  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   28  * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
   29  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
   30  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   31  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
   32  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   33  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   34  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   35  */
   36 
   37 /*---------------------------------------------------------------------------
   38  *
   39  *      pcvt_conf.h     VT220 driver global configuration file
   40  *      ------------------------------------------------------
   41  *
   42  *      Last Edit-Date: [Fri Mar 31 10:20:27 2000]
   43  *
   44  * $FreeBSD: releng/6.4/sys/i386/isa/pcvt/pcvt_conf.h 139790 2005-01-06 22:18:23Z imp $
   45  *
   46  *---------------------------------------------------------------------------*/
   47 
   48 /* -------------------------------------------------------------------- */
   49 /* ---------------- USER PREFERENCE DRIVER OPTIONS -------------------- */
   50 /* -------------------------------------------------------------------- */
   51 
   52 #if !defined PCVT_NSCREENS      /* ---------- DEFAULT: 8 -------------- */
   53 # define PCVT_NSCREENS 8        /* this option defines how many virtual */
   54 #endif                          /* screens you want to have in your     */
   55                                 /* system.                              */
   56 
   57 #if !defined PCVT_VT220KEYB     /* ---------- DEFAULT: OFF ------------ */
   58 # define PCVT_VT220KEYB 0       /* this compiles a more vt220-like      */
   59 #elif PCVT_VT220KEYB != 0       /* keyboardlayout as described in the   */
   60 # undef PCVT_VT220KEYB          /* file Keyboard.VT220.                 */
   61 # define PCVT_VT220KEYB 1       /* if undefined, a more HP-like         */
   62 #endif                          /* keyboardlayout is compiled           */
   63                                 /* try to find out what YOU like !      */
   64 
   65 #if !defined PCVT_SCREENSAVER   /* ---------- DEFAULT: ON ------------- */
   66 # define PCVT_SCREENSAVER 1     /* enable screen saver feature - this   */
   67 #elif PCVT_SCREENSAVER != 0     /* just blanks the display screen.      */
   68 # undef PCVT_SCREENSAVER        /* see PCVT_PRETTYSCRNS below ...       */
   69 # define PCVT_SCREENSAVER 1
   70 #endif
   71 
   72 #if !defined PCVT_PRETTYSCRNS   /* ---------- DEFAULT: OFF ------------ */
   73 # define PCVT_PRETTYSCRNS 0     /* for the cost of some microseconds of */
   74 #elif PCVT_PRETTYSCRNS != 0     /* cpu time this adds a more "pretty"   */
   75 # undef PCVT_PRETTYSCRNS        /* version to the screensaver, an "*"   */
   76 # define PCVT_PRETTYSCRNS 1     /* in random locations of the display.  */
   77 #endif                          /* NOTE: this should not be defined if  */
   78                                 /* you have an energy-saving monitor    */
   79                                 /* which turns off the display if its   */
   80                                 /* black !!!!!!                         */
   81 
   82 #if !defined PCVT_GREENSAVER    /* ---------- DEFAULT: OFF ------------ */
   83 # define PCVT_GREENSAVER 0      /* screensaver mode that enables        */
   84 #elif PCVT_GREENSAVER != 0      /* power-save mode                      */
   85 # undef PCVT_GREENSAVER
   86 # define PCVT_GREENSAVER 1
   87 #endif
   88 
   89 #if !defined PCVT_CTRL_ALT_DEL  /* ---------- DEFAULT: OFF ------------ */
   90 # define PCVT_CTRL_ALT_DEL 0    /* this enables the execution of a cpu  */
   91 #elif PCVT_CTRL_ALT_DEL != 0    /* reset by pressing the CTRL, ALT and  */
   92 # undef PCVT_CTRL_ALT_DEL       /* DEL keys simultanously. Because this */
   93 # define PCVT_CTRL_ALT_DEL 1    /* is a feature of an ancient simple    */
   94 #endif                          /* bootstrap loader, it does not belong */
   95                                 /* into modern operating systems and    */
   96                                 /* was commented out by default ...     */
   97 
   98 #if !defined PCVT_USEKBDSEC     /* ---------- DEFAULT: ON ------------- */
   99 # define PCVT_USEKBDSEC 1       /* do not set the COMMAND_INHOVR bit    */
  100 #elif PCVT_USEKBDSEC != 0       /* (1 = override security lock inhibit) */
  101 # undef PCVT_USEKBDSEC          /* when initializing the keyboard, so   */
  102 # define PCVT_USEKBDSEC 1       /* that security locking should work    */
  103 #endif                          /* now. I guess this has to be done also*/
  104                                 /* in the boot code to prevent single   */
  105                                 /* user startup ....                    */
  106 
  107 #if !defined PCVT_24LINESDEF    /* ---------- DEFAULT: OFF ------------ */
  108 # define PCVT_24LINESDEF 0      /* use 24 lines in VT 25 lines mode and */
  109 #elif PCVT_24LINESDEF != 0      /* HP 28 lines mode by default to have  */
  110 # undef PCVT_24LINESDEF         /* the the better compatibility to the  */
  111 # define PCVT_24LINESDEF 1      /* real VT220 - you can switch between  */
  112 #endif                          /* the maximum possible screensizes in  */
  113                                 /* those two modes (25 lines) and true  */
  114                                 /* compatibility (24 lines) by using    */
  115                                 /* the scon utility at runtime          */
  116 
  117 #if !defined PCVT_META_ESC      /* ---------- DEFAULT: OFF ------------ */
  118 # define PCVT_META_ESC 0        /* if ON, send the sequence "ESC key"   */
  119 #elif PCVT_META_ESC != 0        /* for a meta-shifted key; if OFF,      */
  120 # undef PCVT_META_ESC           /* send the normal key code with 0x80   */
  121 # define PCVT_META_ESC 1        /* added.                               */
  122 #endif
  123 
  124 /* -------------------------------------------------------------------- */
  125 /* -------------------- DRIVER DEBUGGING ------------------------------ */
  126 /* -------------------------------------------------------------------- */
  127 
  128 #if !defined PCVT_SHOWKEYS      /* ---------- DEFAULT: OFF ------------ */
  129 # define PCVT_SHOWKEYS 0        /* this replaces the system load line   */
  130 #elif PCVT_SHOWKEYS != 0        /* on the vt 0 in hp mode with a display*/
  131 # undef PCVT_SHOWKEYS           /* of the most recent keyboard scan-    */
  132 # define PCVT_SHOWKEYS 1        /* and status codes received from the   */
  133 #endif                          /* keyboard controller chip.            */
  134                                 /* this is just for some hardcore       */
  135                                 /* keyboarders ....                     */
  136 
  137 /* -------------------------------------------------------------------- */
  138 /* -------------------- DRIVER OPTIONS -------------------------------- */
  139 /* -------------------------------------------------------------------- */
  140 /*     it is unlikely that anybody wants to change anything below       */
  141 
  142 #if !defined PCVT_NO_LED_UPDATE /* ---------- DEFAULT: OFF ------------ */
  143 # define PCVT_NO_LED_UPDATE 0   /* On some (Notebook?) keyboards it is  */
  144 #elif PCVT_NO_LED_UPDATE != 0   /* not possible to update the LED's     */
  145 # undef PCVT_NO_LED_UPDATE      /* without hanging the keyboard after-  */
  146 # define PCVT_NO_LED_UPDATE 1   /* wards. If you experience Problems    */
  147 #endif                          /* like this, try to enable this option */
  148 
  149 #if !defined PCVT_SCANSET       /* ---------- DEFAULT: 1 -------------- */
  150 # define PCVT_SCANSET 1         /* define the keyboard scancode set you */
  151 #endif                          /* want to use:                         */
  152                                 /* 1 - code set 1       (supported)     */
  153                                 /* 2 - code set 2       (supported)     */
  154                                 /* 3 - code set 3       (UNsupported)   */
  155 
  156 #if !defined PCVT_NULLCHARS     /* ---------- DEFAULT: ON ------------- */
  157 # define PCVT_NULLCHARS 1       /* allow the keyboard to send null      */
  158 #elif PCVT_NULLCHARS != 0       /* (0x00) characters to the calling     */
  159 # undef PCVT_NULLCHARS          /* program. this has the side effect    */
  160 # define PCVT_NULLCHARS 1       /* that every undefined key also sends  */
  161 #endif                          /* out nulls.                           */
  162 
  163 #ifndef PCVT_UPDATEFAST         /* this is the rate at which the cursor */
  164 # define PCVT_UPDATEFAST (hz/10) /* gets updated with its new position  */
  165 #endif                          /* see: async_update() in pcvt_sup.c    */
  166 
  167 #ifndef PCVT_UPDATESLOW         /* this is the rate at which the cursor */
  168 # define PCVT_UPDATESLOW 3      /* position display and the system load */
  169 #endif                          /* (or the keyboard scancode display)   */
  170                                 /* is updated. the relation is:         */
  171                                 /* PCVT_UPDATEFAST/PCVT_UPDATESLOW      */
  172 
  173 #ifndef PCVT_SYSBEEPF           /* timer chip value to be used for the  */
  174 # define PCVT_SYSBEEPF 1193182  /* sysbeep frequency value.             */
  175 #endif                          /* this should really go somewhere else,*/
  176                                 /* e.g. in isa.h; but it used to be in  */
  177                                 /* each driver, sometimes even with     */
  178                                 /* different values (:-)                */
  179 
  180 #if !defined PCVT_SETCOLOR      /* ---------- DEFAULT: OFF ------------ */
  181 # define PCVT_SETCOLOR 0        /* enable making colors settable. this  */
  182 #elif PCVT_SETCOLOR != 0        /* introduces a new escape sequence     */
  183 # undef PCVT_SETCOLOR           /* <ESC d> which is (i think) not       */
  184 # define PCVT_SETCOLOR 1        /* standardized, so this is an option   */
  185 #endif                          /* (Birthday present for Bruce ! :-)    */
  186 
  187 #if !defined PCVT_132GENERIC    /* ---------- DEFAULT: OFF ------------ */
  188 # define PCVT_132GENERIC 0      /* if you #define this, you enable      */
  189 #elif PCVT_132GENERIC != 0      /*      EXPERIMENTAL (!!!!!!!!!!!!)     */
  190 # undef PCVT_132GENERIC         /*      USE-AT-YOUR-OWN-RISK,           */
  191 # define PCVT_132GENERIC 1      /*      MAY-DAMAGE-YOUR-MONITOR         */
  192 #endif                          /* code to switch generic VGA boards/   */
  193                                 /* chipsets to 132 column mode. Since   */
  194                                 /* i could not verify this option, i    */
  195                                 /* prefer to NOT generally enable this, */
  196                                 /* if you want to play, look at the     */
  197                                 /* hints and the code in pcvt_sup.c and */
  198                                 /* get in contact with Joerg Wunsch, who*/
  199                                 /* submitted this code. Be careful !!!  */
  200 
  201 #if !defined PCVT_INHIBIT_NUMLOCK /* --------- DEFAULT: OFF ----------- */
  202 # define PCVT_INHIBIT_NUMLOCK 0 /* A notebook hack: since i am getting  */
  203 #elif PCVT_INHIBIT_NUMLOCK != 0 /* tired of the numlock LED always      */
  204 # undef PCVT_INHIBIT_NUMLOCK    /* being turned on - which causes the   */
  205 # define PCVT_INHIBIT_NUMLOCK 1 /* right half of my keyboard being      */
  206 #endif                          /* interpreted as a numeric keypad and  */
  207                                 /* thus going unusable - i want to      */
  208                                 /* have a better control over it. If    */
  209                                 /* this option is enabled, only the     */
  210                                 /* numlock key itself and the related   */
  211                                 /* ioctls will modify the numlock       */
  212                                 /* LED. (The ioctl is needed for the    */
  213                                 /* ServerNumLock feature of XFree86.)   */
  214                                 /* The default state is changed to      */
  215                                 /* numlock off, and the escape          */
  216                                 /* sequences to switch between numeric  */
  217                                 /* and application mode keypad are      */
  218                                 /* silently ignored.                    */
  219 
  220 #if !defined PCVT_SLOW_INTERRUPT/* ---------- DEFAULT: OFF ------------ */
  221 # define PCVT_SLOW_INTERRUPT 0  /* If off, protecting critical regions  */
  222 #elif PCVT_SLOW_INTERRUPT != 0  /* in the keyboard fifo code is done by */
  223 # undef PCVT_SLOW_INTERRUPT     /* disabling the processor irq's, if on */
  224 # define PCVT_SLOW_INTERRUPT 1  /* this is done by spl()/splx() calls.  */
  225 #endif
  226 
  227 /*---------------------------------------------------------------------------*
  228  *      Kernel messages attribute definitions
  229  *      These define the foreground and background attributes used to
  230  *      emphasize messages from the kernel on color and mono displays.
  231  *---------------------------------------------------------------------------*/
  232 
  233 #if !defined COLOR_KERNEL_FG            /* color displays               */
  234 #define COLOR_KERNEL_FG FG_LIGHTGREY    /* kernel messages, foreground  */
  235 #endif
  236 #if !defined COLOR_KERNEL_BG
  237 #define COLOR_KERNEL_BG BG_RED          /* kernel messages, background  */
  238 #endif
  239 
  240 #if !defined MONO_KERNEL_FG             /* monochrome displays          */
  241 #define MONO_KERNEL_FG  FG_UNDERLINE    /* kernel messages, foreground  */
  242 #endif
  243 #if !defined MONO_KERNEL_BG
  244 #define MONO_KERNEL_BG  BG_BLACK        /* kernel messages, background  */
  245 #endif
  246 
  247 /*---------------------------------- E O F ----------------------------------*/

Cache object: 56057e97e78119f48d9fec7c8cc407e2


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.