Initial import from FreeBSD RELENG_4:
[dragonfly.git] / sys / dev / video / pcvt / i386 / pcvt_conf.h
1 /*
2  * Copyright (c) 1999 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: [Mon Dec 27 14:09:58 1999]
43  *
44  * $FreeBSD: src/sys/i386/isa/pcvt/pcvt_conf.h,v 1.9 1999/12/30 16:17:08 hm Exp $
45  *
46  *---------------------------------------------------------------------------*/
47
48 /*---------------------------------------------------------------------------
49  *
50  * from: Onno van der Linden    c/o   frank@fwi.uva.nl
51  *
52  * Here's an idea how to automatically detect the version of NetBSD pcvt is
53  * being compiled on:
54  *
55  * NetBSD 0.8 : NetBSD0_8 defined in <sys/param.h>
56  * NetBSD 0.9 : NetBSD0_9 defined in <sys/param.h>
57  * NetBSD 1.0 : NetBSD1_0 defined as 1 in <sys/param.h>
58  * NetBSD 1.0A: NetBSD1_0 defined as 2 in <sys/param.h>
59  *
60  * The NetBSDx_y defines are mutual exclusive.
61  *
62  * This leads to something like this in pcvt_hdr.h (#elif is possible too):
63  *
64  *---------------------------------------------------------------------------*/
65
66 #ifdef NetBSD0_8
67 #define PCVT_NETBSD 8
68 #endif
69
70 #ifdef NetBSD0_9
71 #define PCVT_NETBSD 9
72 #endif
73
74 #ifdef NetBSD1_0
75 #if NetBSD1_0 > 1
76 #define PCVT_NETBSD 199
77 #else
78 #define PCVT_NETBSD 100
79 #endif
80 #endif
81
82 /*---------------------------------------------------------------------------
83  * Note that each of the options below should rather be overriden by the
84  * kernel config file instead of this .h file - this allows for different
85  * definitions in different kernels compiled at the same machine
86  *
87  * The convention is as follows:
88  *
89  *      options "PCVT_FOO=1"  - enables the option
90  *      options "PCVT_FOO"    - is a synonym for the above
91  *      options "PCVT_FOO=0"  - disables the option
92  *
93  * omitting an option defaults to what is shown below
94  *
95  * exceptions from this rule are i.e.:
96  *
97  *      options "PCVT_NSCREENS=x"
98  *      options "PCVT_SCANSET=x"
99  *      options "PCVT_UPDATEFAST=x"
100  *      options "PCVT_UPDATESLOW=x"
101  *      options "PCVT_SYSBEEPF=x"
102  *
103  * which are always numeric!
104  *---------------------------------------------------------------------------*/
105
106 /* -------------------------------------------------------------------- */
107 /* -------------------- OPERATING SYSTEM ------------------------------ */
108 /* -------------------------------------------------------------------- */
109
110 /*
111  *  one of the following options must be set in the kernel config file:
112  *
113  *======================================================================*
114  *                      N e t B S D                                     *
115  *======================================================================*
116  *
117  *      options "PCVT_NETBSD=xxx" enables support for NetBSD
118  *
119  *      select:
120  *              PCVT_NETBSD =   9       for NetBSD 0.9
121  *              PCVT_NETBSD =  99       for PRE-1.0 NetBSD-current
122  *              PCVT_NETBSD = 100       for NetBSD 1.0
123  *              PCVT_NETBSD = 199       for PRE-2.0 NetBSD-current
124  *
125  *
126  *======================================================================*
127  *                      F r e e B S D                                   *
128  *======================================================================*
129  *
130  *      options "PCVT_FREEBSD=xxx" enables support for FreeBSD
131  *
132  *      select:
133  *              PCVT_FREEBSD = 102      for 1.0 release (actually 1.0.2)
134  *              PCVT_FREEBSD = 110      for FreeBSD 1.1-Release
135  *              PCVT_FREEBSD = 115      for FreeBSD 1.1.5.1-Release
136  *              PCVT_FREEBSD = 200      for FreeBSD 2.0-Release
137  *              PCVT_FREEBSD = 210      for FreeBSD 2.1-Release
138  *
139  */
140
141 /* -------------------------------------------------------------------- */
142 /* ---------------- USER PREFERENCE DRIVER OPTIONS -------------------- */
143 /* -------------------------------------------------------------------- */
144
145 /*----------------------------------------------------------------------*/
146 /* NOTE: if FAT_CURSOR is defined, a block cursor is used instead of    */
147 /*       the cursor shape we got from the BIOS, see pcvt_out.c          */
148 /*----------------------------------------------------------------------*/
149
150 #if !defined PCVT_NSCREENS      /* ---------- DEFAULT: 8 -------------- */
151 # define PCVT_NSCREENS 8        /* this option defines how many virtual */
152 #endif                          /* screens you want to have in your     */
153                                 /* system. each screen allocates memory,*/
154                                 /* so you can't have an unlimited num-  */
155                                 /* ber...; the value is intented to be  */
156                                 /* compile-time overridable by a config */
157                                 /* options "PCVT_NSCREENS=x" line       */
158
159 #if !defined PCVT_VT220KEYB     /* ---------- DEFAULT: OFF ------------ */
160 # define PCVT_VT220KEYB 0       /* this compiles a more vt220-like      */
161 #elif PCVT_VT220KEYB != 0       /* keyboardlayout as described in the   */
162 # undef PCVT_VT220KEYB          /* file Keyboard.VT220.                 */
163 # define PCVT_VT220KEYB 1       /* if undefined, a more HP-like         */
164 #endif                          /* keyboardlayout is compiled           */
165                                 /* try to find out what YOU like !      */
166
167 #if !defined PCVT_SCREENSAVER   /* ---------- DEFAULT: ON ------------- */
168 # define PCVT_SCREENSAVER 1     /* enable screen saver feature - this   */
169 #elif PCVT_SCREENSAVER != 0     /* just blanks the display screen.      */
170 # undef PCVT_SCREENSAVER        /* see PCVT_PRETTYSCRNS below ...       */
171 # define PCVT_SCREENSAVER 1
172 #endif
173
174 #if !defined PCVT_PRETTYSCRNS   /* ---------- DEFAULT: OFF ------------ */
175 # define PCVT_PRETTYSCRNS 0     /* for the cost of some microseconds of */
176 #elif PCVT_PRETTYSCRNS != 0     /* cpu time this adds a more "pretty"   */
177 # undef PCVT_PRETTYSCRNS        /* version to the screensaver, an "*"   */
178 # define PCVT_PRETTYSCRNS 1     /* in random locations of the display.  */
179 #endif                          /* NOTE: this should not be defined if  */
180                                 /* you have an energy-saving monitor    */
181                                 /* which turns off the display if its   */
182                                 /* black !!!!!!                         */
183
184 #if !defined PCVT_CTRL_ALT_DEL  /* ---------- DEFAULT: OFF ------------ */
185 # define PCVT_CTRL_ALT_DEL 0    /* this enables the execution of a cpu  */
186 #elif PCVT_CTRL_ALT_DEL != 0    /* reset by pressing the CTRL, ALT and  */
187 # undef PCVT_CTRL_ALT_DEL       /* DEL keys simultanously. Because this */
188 # define PCVT_CTRL_ALT_DEL 1    /* is a feature of an ancient simple    */
189 #endif                          /* bootstrap loader, it does not belong */
190                                 /* into modern operating systems and    */
191                                 /* was commented out by default ...     */
192
193 #if !defined PCVT_KBD_FIFO      /* ---------- DEFAULT: ON ------------- */
194 # define PCVT_KBD_FIFO 1        /* this enables Keyboad fifo so that we */
195 #elif PCVT_KBD_FIFO != 0        /* are not any longer forced to switch  */
196 # undef PCVT_KBD_FIFO           /* off tty interrupts while switching   */
197 # define PCVT_KBD_FIFO 1        /* virtual screens - AND loosing chars  */
198 #endif                          /* on the serial lines is gone :-)      */
199
200 #if PCVT_KBD_FIFO
201
202 # if !defined PCVT_KBD_FIFO_SZ  /* ---------- DEFAULT: 256 ------------ */
203 #  define PCVT_KBD_FIFO_SZ 256  /* this specifies the size of the above */
204 # elif PCVT_KBD_FIFO_SZ < 16    /* mentioned keyboard buffer. buffer    */
205 #  undef PCVT_KBD_FIFO_SZ       /* overflows are logged via syslog, so  */
206 #  define PCVT_KBD_FIFO_SZ 256  /* have a look at /var/log/messages     */
207 # endif
208
209 #endif /* PCVT_KBD_FIFO */
210
211 #if !defined PCVT_USEKBDSEC     /* ---------- DEFAULT: ON ------------- */
212 # define PCVT_USEKBDSEC 1       /* do not set the COMMAND_INHOVR bit    */
213 #elif PCVT_USEKBDSEC != 0       /* (1 = override security lock inhibit) */
214 # undef PCVT_USEKBDSEC          /* when initializing the keyboard, so   */
215 # define PCVT_USEKBDSEC 1       /* that security locking should work    */
216 #endif                          /* now. I guess this has to be done also*/
217                                 /* in the boot code to prevent single   */
218                                 /* user startup ....                    */
219
220 #if !defined PCVT_24LINESDEF    /* ---------- DEFAULT: OFF ------------ */
221 # define PCVT_24LINESDEF 0      /* use 24 lines in VT 25 lines mode and */
222 #elif PCVT_24LINESDEF != 0      /* HP 28 lines mode by default to have  */
223 # undef PCVT_24LINESDEF         /* the the better compatibility to the  */
224 # define PCVT_24LINESDEF 1      /* real VT220 - you can switch between  */
225 #endif                          /* the maximum possible screensizes in  */
226                                 /* those two modes (25 lines) and true  */
227                                 /* compatibility (24 lines) by using    */
228                                 /* the scon utility at runtime          */
229
230 #if !defined PCVT_EMU_MOUSE     /* ---------- DEFAULT: OFF ------------ */
231 # define PCVT_EMU_MOUSE 0       /* emulate a mouse systems mouse via    */
232 #elif PCVT_EMU_MOUSE != 0       /* the keypad; this is experimental     */
233 # undef PCVT_EMU_MOUSE          /* code intented to be used on note-    */
234 # define PCVT_EMU_MOUSE 1       /* books in conjunction with XFree86;   */
235 #endif                          /* look at the comments in pcvt_kbd.c   */
236                                 /* if you are interested in testing it. */
237
238 #if !defined PCVT_META_ESC      /* ---------- DEFAULT: OFF ------------ */
239 # define PCVT_META_ESC 0        /* if ON, send the sequence "ESC key"   */
240 #elif PCVT_META_ESC != 0        /* for a meta-shifted key; if OFF,      */
241 # undef PCVT_META_ESC           /* send the normal key code with 0x80   */
242 # define PCVT_META_ESC 1        /* added.                               */
243 #endif
244
245 #if !defined PCVT_SW0CNOUTP     /* ---------- DEFAULT: OFF ------------ */
246 # define PCVT_SW0CNOUTP 0       /* if ON, on console/kernel output the  */
247 #elif PCVT_SW0CNOUTP != 0       /* current screen is switched to screen */
248 # undef PCVT_SW0CNOUTP          /* 0 if not already at screen 0.        */
249 # define PCVT_SW0CNOUTP 1       /* CAUTION: CURRENTLY THIS CAUSES AN X- */
250 #endif                          /* SESSION TO CLUTTER VIDEO MEMORY !!!! */
251
252 /* -------------------------------------------------------------------- */
253 /* -------------------- DRIVER DEBUGGING ------------------------------ */
254 /* -------------------------------------------------------------------- */
255
256 #if !defined PCVT_SHOWKEYS      /* ---------- DEFAULT: OFF ------------ */
257 # define PCVT_SHOWKEYS 0        /* this replaces the system load line   */
258 #elif PCVT_SHOWKEYS != 0        /* on the vt 0 in hp mode with a display*/
259 # undef PCVT_SHOWKEYS           /* of the most recent keyboard scan-    */
260 # define PCVT_SHOWKEYS 1        /* and status codes received from the   */
261 #endif                          /* keyboard controller chip.            */
262                                 /* this is just for some hardcore       */
263                                 /* keyboarders ....                     */
264
265 /* -------------------------------------------------------------------- */
266 /* -------------------- DRIVER OPTIONS -------------------------------- */
267 /* -------------------------------------------------------------------- */
268 /*     it is unlikely that anybody wants to change anything below       */
269
270 #if !defined PCVT_NO_LED_UPDATE /* ---------- DEFAULT: OFF ------------ */
271 # define PCVT_NO_LED_UPDATE 0   /* On some (Notebook?) keyboards it is  */
272 #elif PCVT_NO_LED_UPDATE != 0   /* not possible to update the LED's     */
273 # undef PCVT_NO_LED_UPDATE      /* without hanging the keyboard after-  */
274 # define PCVT_NO_LED_UPDATE 1   /* wards. If you experience Problems    */
275 #endif                          /* like this, try to enable this option */
276
277 #if !defined PCVT_PORTIO_DELAY  /* ---------- DEFAULT: ON ------------- */
278 # define PCVT_PORTIO_DELAY 1    /* Defining PCVT_PORTIO_DELAY lets pcvt */
279 #elif PCVT_PORTIO_DELAY != 0    /* use multiple accesses to port 0x84   */
280 # undef PCVT_PORTIO_DELAY       /* to produce a delay of 7 us needed for*/
281 # define PCVT_PORTIO_DELAY 1    /* accessing the keyboard controller,   */
282 #endif                          /* otherwise the system delay functions */
283                                 /* are used.                            */
284
285 #if !defined PCVT_PCBURST       /* ---------- DEFAULT: 256 ------------ */
286 # define PCVT_PCBURST 256       /* NETBSD and FreeBSD >= 2.0 only: this */
287 #endif                          /* is the number of output characters   */
288                                 /* handled together as a burst in       */
289                                 /* routine pcstart(), file pcvt_drv.c   */
290
291 #if !defined PCVT_SCANSET       /* ---------- DEFAULT: 1 -------------- */
292 # define PCVT_SCANSET 1         /* define the keyboard scancode set you */
293 #endif                          /* want to use:                         */
294                                 /* 1 - code set 1       (supported)     */
295                                 /* 2 - code set 2       (supported)     */
296                                 /* 3 - code set 3       (UNsupported)   */
297
298 #if !defined PCVT_KEYBDID       /* ---------- DEFAULT: ON ------------- */
299 # define PCVT_KEYBDID 1         /* check type of keyboard connected. at */
300 #elif PCVT_KEYBDID != 0         /* least HP-keyboards send an id other  */
301 # undef PCVT_KEYBDID            /* than the industry standard, so it    */
302 # define PCVT_KEYBDID 1         /* CAN lead to problems. if you have    */
303 #endif                          /* problems with this, TELL ME PLEASE ! */
304
305 #if !defined PCVT_SIGWINCH      /* ---------- DEFAULT: ON ------------- */
306 # define PCVT_SIGWINCH 1        /* this sends a SIGWINCH signal in case */
307 #elif PCVT_SIGWINCH != 0        /* the window size is changed. to try,  */
308 # undef PCVT_SIGWINCH           /* issue "scons -s<size>" while in elvis*/
309 # define PCVT_SIGWINCH 1        /* and you'll see the effect.           */
310 #endif                          /* i'm not sure, whether this feature   */
311                                 /* has to be in the driver or has to    */
312                                 /* move as an ioctl call to scon ....   */
313
314 #if !defined PCVT_NULLCHARS     /* ---------- DEFAULT: ON ------------- */
315 # define PCVT_NULLCHARS 1       /* allow the keyboard to send null      */
316 #elif PCVT_NULLCHARS != 0       /* (0x00) characters to the calling     */
317 # undef PCVT_NULLCHARS          /* program. this has the side effect    */
318 # define PCVT_NULLCHARS 1       /* that every undefined key also sends  */
319 #endif                          /* out nulls. take it as experimental   */
320                                 /* code, this behaviour will change in  */
321                                 /* a future release                     */
322
323 #if !defined PCVT_BACKUP_FONTS  /* ---------- DEFAULT: ON ------------- */
324 # define PCVT_BACKUP_FONTS 1    /* fonts are always kept memory-backed; */
325 #elif  PCVT_BACKUP_FONTS != 0   /* otherwise copies are only made if    */
326 # undef PCVT_BACKUP_FONTS       /* they are needed.                     */
327 # define PCVT_BACKUP_FONTS 1
328 #endif
329
330 #ifndef PCVT_UPDATEFAST         /* this is the rate at which the cursor */
331 # define PCVT_UPDATEFAST (hz/10) /* gets updated with its new position  */
332 #endif                          /* see: async_update() in pcvt_sup.c    */
333
334 #ifndef PCVT_UPDATESLOW         /* this is the rate at which the cursor */
335 # define PCVT_UPDATESLOW 3      /* position display and the system load */
336 #endif                          /* (or the keyboard scancode display)   */
337                                 /* is updated. the relation is:         */
338                                 /* PCVT_UPDATEFAST/PCVT_UPDATESLOW      */
339
340 #ifndef PCVT_SYSBEEPF           /* timer chip value to be used for the  */
341 # define PCVT_SYSBEEPF 1193182  /* sysbeep frequency value.             */
342 #endif                          /* this should really go somewhere else,*/
343                                 /* e.g. in isa.h; but it used to be in  */
344                                 /* each driver, sometimes even with     */
345                                 /* different values (:-)                */
346
347 #if !defined PCVT_SETCOLOR      /* ---------- DEFAULT: OFF ------------ */
348 # define PCVT_SETCOLOR 0        /* enable making colors settable. this  */
349 #elif PCVT_SETCOLOR != 0        /* introduces a new escape sequence     */
350 # undef PCVT_SETCOLOR           /* <ESC d> which is (i think) not       */
351 # define PCVT_SETCOLOR 1        /* standardized, so this is an option   */
352 #endif                          /* (Birthday present for Bruce ! :-)    */
353
354 #if !defined PCVT_132GENERIC    /* ---------- DEFAULT: OFF ------------ */
355 # define PCVT_132GENERIC 0      /* if you #define this, you enable      */
356 #elif PCVT_132GENERIC != 0      /*      EXPERIMENTAL (!!!!!!!!!!!!)     */
357 # undef PCVT_132GENERIC         /*      USE-AT-YOUR-OWN-RISK,           */
358 # define PCVT_132GENERIC 1      /*      MAY-DAMAGE-YOUR-MONITOR         */
359 #endif                          /* code to switch generic VGA boards/   */
360                                 /* chipsets to 132 column mode. Since   */
361                                 /* i could not verify this option, i    */
362                                 /* prefer to NOT generally enable this, */
363                                 /* if you want to play, look at the     */
364                                 /* hints and the code in pcvt_sup.c and */
365                                 /* get in contact with Joerg Wunsch, who*/
366                                 /* submitted this code. Be careful !!!  */
367
368 #if !defined PCVT_PALFLICKER    /* ---------- DEFAULT: OFF ------------ */
369 # define PCVT_PALFLICKER 0      /* this option turns off the screen     */
370 #elif PCVT_PALFLICKER != 0      /* during accesses to the VGA DAC       */
371 # undef PCVT_PALFLICKER         /* registers. why: on one fo the tested */
372 # define PCVT_PALFLICKER 1      /* pc's (WD-chipset), accesses to the   */
373 #endif                          /* vga dac registers caused distortions */
374                                 /* on the screen. Ferraro says, one has */
375                                 /* to blank the screen. the method used */
376                                 /* to accomplish this stopped the noise */
377                                 /* but introduced another flicker, so   */
378                                 /* this is for you to experiment .....  */
379                                 /* - see also PCVT_WAITRETRACE below -- */
380
381 #if !defined PCVT_WAITRETRACE   /* ---------- DEFAULT: OFF ------------ */
382 # define PCVT_WAITRETRACE 0     /* this option waits for being in a     */
383 #elif PCVT_WAITRETRACE != 0     /* retrace window prior to accessing    */
384 # undef PCVT_WAITRETRACE        /* the VGA DAC registers.               */
385 # define PCVT_WAITRETRACE 1     /* this is the other method Ferraro     */
386 #endif                          /* mentioned in his book. this option   */
387                                 /* did eleminate the flicker noticably  */
388                                 /* but not completely. besides that, it */
389                                 /* is implemented as a busy-wait loop   */
390                                 /* which is a no-no-no in environments  */
391                                 /* like this - VERY BAD PRACTICE !!!!!  */
392                                 /* the other method implementing it is  */
393                                 /* using the vertical retrace irq, but  */
394                                 /* we get short of irq-lines on pc's.   */
395                                 /* this is for you to experiment .....  */
396                                 /* -- see also PCVT_PALFLICKER above -- */
397
398 #if !defined PCVT_INHIBIT_NUMLOCK /* --------- DEFAULT: OFF ----------- */
399 # define PCVT_INHIBIT_NUMLOCK 0 /* A notebook hack: since i am getting  */
400 #elif PCVT_INHIBIT_NUMLOCK != 0 /* tired of the numlock LED always      */
401 # undef PCVT_INHIBIT_NUMLOCK    /* being turned on - which causes the   */
402 # define PCVT_INHIBIT_NUMLOCK 1 /* right half of my keyboard being      */
403 #endif                          /* interpreted as a numeric keypad and  */
404                                 /* thus going unusable - i want to      */
405                                 /* have a better control over it. If    */
406                                 /* this option is enabled, only the     */
407                                 /* numlock key itself and the related   */
408                                 /* ioctls will modify the numlock       */
409                                 /* LED. (The ioctl is needed for the    */
410                                 /* ServerNumLock feature of XFree86.)   */
411                                 /* The default state is changed to      */
412                                 /* numlock off, and the escape          */
413                                 /* sequences to switch between numeric  */
414                                 /* and application mode keypad are      */
415                                 /* silently ignored.                    */
416
417 #if !defined PCVT_NOFASTSCROLL  /* ---------- DEFAULT: OFF ------------ */
418 # define PCVT_NOFASTSCROLL 0    /* If off, enables code for fast scroll.*/
419 #elif PCVT_NOFASTSCROLL != 0    /* This is done by changing the CRTC    */
420 # undef PCVT_NOFASTSCROLL       /* screen start address for scrolling   */
421 # define PCVT_NOFASTSCROLL 1    /* and using 2 times the screen size as */
422 #endif                          /* buffer. The fastscroll code works    */
423                                 /* ONLY for VGA/EGA/CGA because it uses */
424                                 /* the crtc for hardware scrolling and  */
425                                 /* therefore needs more than the one    */
426                                 /* page video memory MDA and most       */
427                                 /* Hercules boards support.             */
428                                 /* If you run pcvt ONLY on MDA/Hercules */
429                                 /* you should disable fastscroll to save*/
430                                 /* the time to decide which board you   */
431                                 /* are running pcvt on at runtime.      */
432                                 /*     [see roll_up() and roll_down().] */
433
434 #if !defined PCVT_SLOW_INTERRUPT/* ---------- DEFAULT: OFF ------------ */
435 # define PCVT_SLOW_INTERRUPT 0  /* If off, protecting critical regions  */
436 #elif PCVT_SLOW_INTERRUPT != 0  /* in the keyboard fifo code is done by */
437 # undef PCVT_SLOW_INTERRUPT     /* disabling the processor irq's, if on */
438 # define PCVT_SLOW_INTERRUPT 1  /* this is done by spl()/splx() calls.  */
439 #endif
440
441 #ifdef XSERVER
442
443 #if !defined PCVT_USL_VT_COMPAT /* ---------- DEFAULT: ON ------------- */
444 # define PCVT_USL_VT_COMPAT 1   /* this option enables multiple virtual */
445 #elif PCVT_USL_VT_COMPAT != 0   /* screen support for XFree86. If set   */
446 # undef PCVT_USL_VT_COMPAT      /* to off, support for a "classic"      */
447 # define PCVT_USL_VT_COMPAT 1   /* single screen only X server is       */
448 #endif                          /* compiled in. If enabled, most of the */
449                                 /* ioctl's from SYSV/USL are supported  */
450                                 /* to run multiple X servers and/or     */
451                                 /* character terminal sessions.         */
452
453 #endif /* XSERVER */
454
455 /*---------------------------------------------------------------------------*
456  *      Kernel messages attribute definitions
457  *      These define the foreground and background attributes used to
458  *      emphasize messages from the kernel on color and mono displays.
459  *---------------------------------------------------------------------------*/
460
461 #if !defined COLOR_KERNEL_FG            /* color displays               */
462 #define COLOR_KERNEL_FG FG_LIGHTGREY    /* kernel messages, foreground  */
463 #endif
464 #if !defined COLOR_KERNEL_BG
465 #define COLOR_KERNEL_BG BG_RED          /* kernel messages, background  */
466 #endif
467
468 #if !defined MONO_KERNEL_FG             /* monochrome displays          */
469 #define MONO_KERNEL_FG  FG_UNDERLINE    /* kernel messages, foreground  */
470 #endif
471 #if !defined MONO_KERNEL_BG
472 #define MONO_KERNEL_BG  BG_BLACK        /* kernel messages, background  */
473 #endif
474
475 /*---------------------------------- E O F ----------------------------------*/