qvreg.h

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· C头文件 代码 · 共 156 行

H
156
字号
/* * 	@(#)qvreg.h	4.1	(ULTRIX)	7/2/90 *//************************************************************************ *									* *			Copyright (c) 1984 by				* *		Digital Equipment Corporation, Maynard, MA		* *			All rights reserved.				* *									* *   This software is furnished under a license and may be used and	* *   copied  only  in accordance with the terms of such license and	* *   with the  inclusion  of  the  above  copyright  notice.   This	* *   software  or  any  other copies thereof may not be provided or	* *   otherwise made available to any other person.  No title to and	* *   ownership of the software is hereby transferred.			* *									* *   This software is  derived  from  software  received  from  the	* *   University    of   California,   Berkeley,   and   from   Bell	* *   Laboratories.  Use, duplication, or disclosure is  subject  to	* *   restrictions  under  license  agreements  with  University  of	* *   California and with AT&T.						* *									* *   The information in this software is subject to change  without	* *   notice  and should not be construed as a commitment by Digital	* *   Equipment Corporation.						* *									* *   Digital assumes no responsibility for the use  or  reliability	* *   of its software on equipment which is not supplied by Digital.	* *									* ************************************************************************//* * QVSS definitions. */struct qvdevice {	unsigned short	qv_csr;		/* csr				*/	unsigned short	qv_xcur;	/* cursor x-position		*/	unsigned short	qv_mouse;	/* mouse position		*/	unsigned short	qv_spare1;	unsigned short	qv_crtaddr;	/* crt controller address reg	*/	unsigned short	qv_crtdata;	/* crt controller data register	*/	unsigned short	qv_intdata;	/* int controller data register	*/	unsigned short	qv_intcsr;	/* int controller command/status*/	unsigned short	qv_dummy[8];	unsigned short	qv_uartmode;	/* uart mode			*/	unsigned short	qv_uartstatus;	/* uart status			*/	unsigned short	qv_uartcmd;	/* uart command			*/	unsigned short	qv_uartdata;	/* uart data			*/	unsigned short	qv_spare2;	unsigned short	qv_uartintstatus; /* uart interrupt status	*/};/* * csr bit definations */#define	QV_19INCH	0x1#define QV_VIDEO_ENA	0x4#define QV_CUR_MODE	0x8#define QV_VIDEO_LP	0x10#define QV_TEST_BIT	0x20#define QV_INT_ENABLE	0x40#define QV_CURSOR_ON	0x80#define QV_MOUSE_ANY	0x700#define QV_MOUSE_A	0x100#define QV_MOUSE_B	0x200#define QV_MOUSE_C	0x400#define QV_MEM_BANK	0x7800#define EVENT_LEFT_BUTTON	1#define EVENT_MIDDLE_BUTTON	2#define EVENT_RIGHT_BUTTON	3/* Mouse buttons */#define RIGHT_BUTTON	0x01#define MIDDLE_BUTTON	0x02#define LEFT_BUTTON	0x04/* * Mouse definitions * */	/* wc flavor added next define - sep 10 - dlh */#define MOTION_BUFFER_SIZE 100#define	SELF_TEST	'T'/* mouse report structure definition */	struct mouse_report {	    char state;		/* buttons and sign bits */	    short dx;		/* delta X since last change */	    short dy;		/* delta Y since last change */	    char bytcnt;	/* mouse report byte count */	};	/* wc flavor changed following comment - sep 10 - dlh *//* qeEvent.key field.  definitions for tablet buttons */	/* wc flavor changed next 4 defines - sep 10 - dlh */#define EVENT_T_LEFT_BUTTON	0x00#define EVENT_T_FRONT_BUTTON	0x01#define EVENT_T_RIGHT_BUTTON	0x02#define EVENT_T_BACK_BUTTON	0x04/* puck buttons */#define T_LEFT_BUTTON		0x02#define T_FRONT_BUTTON		0x04#define T_RIGHT_BUTTON		0x08#define T_BACK_BUTTON		0x10/* * Lk201 keyboard  */#define LK_UPDOWN 	0x86		/* bits for setting lk201 modes */#define LK_AUTODOWN 	0x82#define LK_DOWN 	0x80#define LK_DEFAULTS 	0xd3		/* reset (some) default settings */#define LK_AR_ENABLE 	0xe3		/* global auto repeat enable */#define LK_CL_ENABLE 	0x1b		/* keyclick enable */#define LK_KBD_ENABLE 	0x8b		/* keyboard enable */#define LK_BELL_ENABLE 	0x23		/* the bell */#define LK_LED_ENABLE 	0x13		/* light led */#define LK_LED_DISABLE 	0x11		/* turn off led */#define LK_RING_BELL 	0xa7		/* ring keyboard bell */#define LED_1 		0x81		/* led bits */#define LED_2 		0x82#define LED_3 		0x84#define LED_4 		0x88#define LED_ALL 	0x8f#define LK_KDOWN_ERROR	0x3d		/* key down on powerup error */#define LK_POWER_ERROR 	0x3e		/* keyboard failure on powerup test */#define LK_OUTPUT_ERROR	0xb5		/* keystrokes lost during inhibit */#define LK_INPUT_ERROR 	0xb6		/* garbage command to keyboard */#define LK_LOWEST	0x56		/* lowest significant keycode */#define LK_DIV6_START	0xad		/* start of div 6 */#define LK_DIV5_END	0xb2		/* end of div 5 *//* * Keycodes for special keys and functions */#define SHIFT	0xae#define LOCK	0xb0#define REPEAT	0xb4#define CNTRL	0xaf#define ALLUP	0xb3#define HOLD    0x56

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?