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