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