Annotation of 43BSDReno/sys/vaxuba/qvreg.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1982, 1986 Regents of the University of California.
                      3:  * All rights reserved.  The Berkeley software License Agreement
                      4:  * specifies the terms and conditions for redistribution.
                      5:  *
                      6:  *             @(#)qvreg.h     1.3  Berkeley  6/3/88
                      7:  *
                      8:  *     derived from: @(#)qvreg.h       1.3 (ULTRIX) 8/21/85 
                      9:  */
                     10: 
                     11: /*
                     12:  * QVSS definitions.
                     13:  */
                     14: struct qvdevice {
                     15:        unsigned short  qv_csr;         /* csr                          */
                     16:        unsigned short  qv_xcur;        /* cursor x-position            */
                     17:        unsigned short  qv_mouse;       /* mouse position               */
                     18:        unsigned short  qv_spare1;
                     19:        unsigned short  qv_crtaddr;     /* crt controller address reg   */
                     20:        unsigned short  qv_crtdata;     /* crt controller data register */
                     21:        unsigned short  qv_intdata;     /* int controller data register */
                     22:        unsigned short  qv_intcsr;      /* int controller command/status*/
                     23:        unsigned short  qv_dummy[8];
                     24:        unsigned short  qv_uartmode;    /* uart mode                    */
                     25:        unsigned short  qv_uartstatus;  /* uart status                  */
                     26:        unsigned short  qv_uartcmd;     /* uart command                 */
                     27:        unsigned short  qv_uartdata;    /* uart data                    */
                     28:        unsigned short  qv_spare2;
                     29:        unsigned short  qv_uartintstatus; /* uart interrupt status      */
                     30: };
                     31: 
                     32: 
                     33: /*
                     34:  * csr bit definations
                     35:  */
                     36: #define        QV_19INCH       0x1
                     37: #define QV_VIDEO_ENA   0x4
                     38: #define QV_CUR_MODE    0x8
                     39: #define QV_VIDEO_LP    0x10
                     40: #define QV_TEST_BIT    0x20
                     41: #define QV_INT_ENABLE  0x40
                     42: #define QV_CURSOR_ON   0x80
                     43: #define QV_MOUSE_ANY   0x700
                     44: #define QV_MOUSE_A     0x100
                     45: #define QV_MOUSE_B     0x200
                     46: #define QV_MOUSE_C     0x400
                     47: #define QV_MEM_BANK    0x7800
                     48: 
                     49: /*
                     50:  * Lk201 keyboard 
                     51:  */
                     52: #define LK_UPDOWN      0x86            /* bits for setting lk201 modes */
                     53: #define LK_AUTODOWN    0x82
                     54: #define LK_DOWN        0x80
                     55: #define LK_DEFAULTS    0xd3            /* reset (some) default settings */
                     56: #define LK_AR_ENABLE   0xe3            /* global auto repeat enable */
                     57: #define LK_CL_ENABLE   0x1b            /* keyclick enable */
                     58: #define LK_KBD_ENABLE  0x8b            /* keyboard enable */
                     59: #define LK_BELL_ENABLE         0x23            /* the bell */
                     60: #define LK_LED_ENABLE  0x13            /* light led */
                     61: #define LK_LED_DISABLE         0x11            /* turn off led */
                     62: #define LK_RING_BELL   0xa7            /* ring keyboard bell */
                     63: #define LED_1          0x81            /* led bits */
                     64: #define LED_2          0x82
                     65: #define LED_3          0x84
                     66: #define LED_4          0x88
                     67: #define LED_ALL        0x8f
                     68: #define LK_KDOWN_ERROR 0x3d            /* key down on powerup error */
                     69: #define LK_POWER_ERROR         0x3e            /* keyboard failure on powerup test */
                     70: #define LK_OUTPUT_ERROR        0xb5            /* keystrokes lost during inhibit */
                     71: #define LK_INPUT_ERROR         0xb6            /* garbage command to keyboard */
                     72: #define LK_LOWEST      0x56            /* lowest significant keycode */
                     73: #define LK_DIV6_START  0xad            /* start of div 6 */
                     74: #define LK_DIV5_END    0xb2            /* end of div 5 */
                     75: 
                     76: /*
                     77:  * Keycodes for special keys and functions
                     78:  */
                     79: #define SHIFT  0xae
                     80: #define LOCK   0xb0
                     81: #define REPEAT 0xb4
                     82: #define CNTRL  0xaf
                     83: #define ALLUP  0xb3
                     84: 

unix.superglobalmegacorp.com

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