xref: /original-bsd/sys/vax/uba/qdioctl.h (revision 333da485)
1 /*-
2  * Copyright (c) 1982, 1986
3  *	The Regents of the University of California.  All rights reserved.
4  * (c) UNIX System Laboratories, Inc.
5  * All or some portions of this file are derived from material licensed
6  * to the University of California by American Telephone and Telegraph
7  * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8  * the permission of UNIX System Laboratories, Inc.
9  *
10  * %sccs.include.redist.c%
11  *
12  *	@(#)qdioctl.h	7.2 (Berkeley) 01/21/94
13  */
14 
15 /*
16  *	derived from: qdioctl.h	1.1	(ULTRIX)	8/22/85
17  */
18 /*
19  * QDSS IOCTL definitions
20  */
21 
22 
23 /************************************************************************
24  *									*
25  *			Copyright (c) 1985 by				*
26  *		Digital Equipment Corporation, Maynard, MA		*
27  *			All rights reserved.				*
28  *									*
29  *   This software is furnished under a license and may be used and	*
30  *   copied  only  in accordance with the terms of such license and	*
31  *   with the  inclusion  of  the  above  copyright  notice.   This	*
32  *   software  or  any  other copies thereof may not be provided or	*
33  *   otherwise made available to any other person.  No title to and	*
34  *   ownership of the software is hereby transferred.			*
35  *									*
36  *   This software is  derived  from  software  received  from  the	*
37  *   University    of   California,   Berkeley,   and   from   Bell	*
38  *   Laboratories.  Use, duplication, or disclosure is  subject  to	*
39  *   restrictions  under  license  agreements  with  University  of	*
40  *   California and with AT&T.						*
41  *									*
42  *   The information in this software is subject to change  without	*
43  *   notice  and should not be construed as a commitment by Digital	*
44  *   Equipment Corporation.						*
45  *									*
46  *   Digital assumes no responsibility for the use  or  reliability	*
47  *   of its software on equipment which is not supplied by Digital.	*
48  *									*
49  ************************************************************************/
50 /***************************************************************************
51 *	revision history: (belongs in sccs)
52 ****************************************************************************
53 *
54 * 22 oct 85  longo  fixed QD_PRGTABRES cmd number to be 22 instead of 12
55 * 14 oct 85  longo  added QD_KERN_LOOP and QD_KERN_UNLOOP
56 * 02 oct 85  longo  added QD_MAPCOLOR and QD_UNMAPCOLOR
57 * 17 sep 85  longo  made QD_MAPIOBUF a read/write command type
58 *
59 ***************************************************************************/
60 
61 
62 #ifdef KERNEL
63 #include "sys/ioctl.h"
64 #else
65 #include <sys/ioctl.h>
66 #endif
67 
68 
69 #define QD_GETEVENT	_IOR('g', 1, struct _vs_event) /* get oldest event */
70 #define QD_WTCURSOR	_IOW('g', 2, short[32])       /* write cursor bitmap */
71 #define QD_RDCURSOR	_IOR('g', 3, 64)           /* read cursor bitmap */
72 #define QD_CLRSCRN	_IO('g', 4) 		/* clear the screen */
73 #define QD_RDCONFIG	_IOR('g', 5, short)        /* read QDSS configuration */
74 #define QD_PRGMOUSE	_IOW('g', 6, char)	/* program mouse */
75 #define QD_PRGTABLET	_IOW('g', 7, char) 	/* program tablet */
76 #define QD_PRGKBD	_IOW('g', 8, struct prgkbd) /* program LK201 kbd */
77 #define QD_MAPDEVICE	_IOR('g', 9, struct qdmap) /* map device to user */
78 #define QD_MAPIOBUF 	_IOWR('g', 10, caddr_t)     /* map DMA iobuf to user */
79 #define QD_MAPEVENT	_IOR('g', 11, caddr_t)     /* map event queue to user */
80 #define QD_PRGCURSOR	_IOW('g', 12, struct prg_cursor) /* program cursor */
81 #define QD_RESET	_IO('g', 13)  	    /* set device & driver defaults */
82 #define QD_POSCURSOR	_IOW('g', 14, struct _vs_cursor) /* position cursor */
83 #define QD_SET		_IO('g', 15)  	    /* set DUART & driver defaults */
84 #define QD_MAPSCROLL    _IOR('g', 16, caddr_t)  /* map scroll param area */
85 #define QD_UNMAPSCROLL  _IO('g', 17)            /* unmap scroll param area */
86 #define QD_MAPCOLOR     _IOR('g', 18, caddr_t)  /* map color map write buf */
87 #define QD_UNMAPCOLOR   _IO('g', 19)            /* unmap color map write buf */
88 #define QD_KERN_LOOP    _IO('g', 20)       /* detour kernel console output */
89 #define QD_KERN_UNLOOP  _IO('g', 21)       /* un-detour kernel console output */
90 #define QD_PRGTABRES	_IOW('g', 22, short) /* program tablet resolution */
91