xref: /netbsd-src/sys/arch/vax/include/qdioctl.h (revision 53524e44efd7c7176da8dc8190a698b2fe184db1)
1*53524e44Schristos /*	$NetBSD: qdioctl.h,v 1.5 2007/03/04 06:00:57 christos Exp $	*/
2cf02ad2bSragge /*-
3cf02ad2bSragge  * Copyright (c) 1982, 1986
4cf02ad2bSragge  *	The Regents of the University of California.  All rights reserved.
5cf02ad2bSragge  * (c) UNIX System Laboratories, Inc.
6cf02ad2bSragge  * All or some portions of this file are derived from material licensed
7cf02ad2bSragge  * to the University of California by American Telephone and Telegraph
8cf02ad2bSragge  * Co. or Unix System Laboratories, Inc. and are reproduced herein with
9cf02ad2bSragge  * the permission of UNIX System Laboratories, Inc.
10cf02ad2bSragge  *
11cf02ad2bSragge  * Redistribution and use in source and binary forms, with or without
12cf02ad2bSragge  * modification, are permitted provided that the following conditions
13cf02ad2bSragge  * are met:
14cf02ad2bSragge  * 1. Redistributions of source code must retain the above copyright
15cf02ad2bSragge  *    notice, this list of conditions and the following disclaimer.
16cf02ad2bSragge  * 2. Redistributions in binary form must reproduce the above copyright
17cf02ad2bSragge  *    notice, this list of conditions and the following disclaimer in the
18cf02ad2bSragge  *    documentation and/or other materials provided with the distribution.
19aad01611Sagc  * 3. Neither the name of the University nor the names of its contributors
20cf02ad2bSragge  *    may be used to endorse or promote products derived from this software
21cf02ad2bSragge  *    without specific prior written permission.
22cf02ad2bSragge  *
23cf02ad2bSragge  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24cf02ad2bSragge  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25cf02ad2bSragge  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26cf02ad2bSragge  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27cf02ad2bSragge  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28cf02ad2bSragge  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29cf02ad2bSragge  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30cf02ad2bSragge  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31cf02ad2bSragge  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32cf02ad2bSragge  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33cf02ad2bSragge  * SUCH DAMAGE.
34cf02ad2bSragge  *
35cf02ad2bSragge  *	@(#)qdioctl.h	7.2 (Berkeley) 1/21/94
36cf02ad2bSragge  */
37cf02ad2bSragge 
38cf02ad2bSragge /*
39cf02ad2bSragge  *	derived from: qdioctl.h	1.1	(ULTRIX)	8/22/85
40cf02ad2bSragge  */
41cf02ad2bSragge /*
42cf02ad2bSragge  * QDSS IOCTL definitions
43cf02ad2bSragge  */
44cf02ad2bSragge 
45cf02ad2bSragge 
46cf02ad2bSragge /************************************************************************
47cf02ad2bSragge  *									*
48cf02ad2bSragge  *			Copyright (c) 1985 by				*
49cf02ad2bSragge  *		Digital Equipment Corporation, Maynard, MA		*
50cf02ad2bSragge  *			All rights reserved.				*
51cf02ad2bSragge  *									*
52cf02ad2bSragge  *   This software is furnished under a license and may be used and	*
53cf02ad2bSragge  *   copied  only  in accordance with the terms of such license and	*
54cf02ad2bSragge  *   with the  inclusion  of  the  above  copyright  notice.   This	*
55cf02ad2bSragge  *   software  or  any  other copies thereof may not be provided or	*
56cf02ad2bSragge  *   otherwise made available to any other person.  No title to and	*
57cf02ad2bSragge  *   ownership of the software is hereby transferred.			*
58cf02ad2bSragge  *									*
59cf02ad2bSragge  *   This software is  derived  from  software  received  from  the	*
60cf02ad2bSragge  *   University    of   California,   Berkeley,   and   from   Bell	*
61cf02ad2bSragge  *   Laboratories.  Use, duplication, or disclosure is  subject  to	*
62cf02ad2bSragge  *   restrictions  under  license  agreements  with  University  of	*
63cf02ad2bSragge  *   California and with AT&T.						*
64cf02ad2bSragge  *									*
65cf02ad2bSragge  *   The information in this software is subject to change  without	*
66cf02ad2bSragge  *   notice  and should not be construed as a commitment by Digital	*
67cf02ad2bSragge  *   Equipment Corporation.						*
68cf02ad2bSragge  *									*
69cf02ad2bSragge  *   Digital assumes no responsibility for the use  or  reliability	*
70cf02ad2bSragge  *   of its software on equipment which is not supplied by Digital.	*
71cf02ad2bSragge  *									*
72cf02ad2bSragge  ************************************************************************/
73cf02ad2bSragge /***************************************************************************
74cf02ad2bSragge *	revision history: (belongs in sccs)
75cf02ad2bSragge ****************************************************************************
76cf02ad2bSragge *
77cf02ad2bSragge * 22 oct 85  longo  fixed QD_PRGTABRES cmd number to be 22 instead of 12
78cf02ad2bSragge * 14 oct 85  longo  added QD_KERN_LOOP and QD_KERN_UNLOOP
79cf02ad2bSragge * 02 oct 85  longo  added QD_MAPCOLOR and QD_UNMAPCOLOR
80cf02ad2bSragge * 17 sep 85  longo  made QD_MAPIOBUF a read/write command type
81cf02ad2bSragge *
82cf02ad2bSragge ***************************************************************************/
83cf02ad2bSragge 
84cf02ad2bSragge 
85cf02ad2bSragge #ifdef KERNEL
86cf02ad2bSragge #include "sys/ioctl.h"
87cf02ad2bSragge #else
88cf02ad2bSragge #include <sys/ioctl.h>
89cf02ad2bSragge #endif
902b5046ccSchristos #include <machine/qevent.h>	/* struct _vs_event, _vs_cursor */
912b5046ccSchristos #include <machine/qduser.h>	/* struct prgkbd, qdmap, prg_cursor */
92cf02ad2bSragge 
93cf02ad2bSragge 
94cf02ad2bSragge #define QD_GETEVENT	_IOR('g', 1, struct _vs_event) /* get oldest event */
95cf02ad2bSragge #define QD_WTCURSOR	_IOW('g', 2, short[32])       /* write cursor bitmap */
96cf02ad2bSragge #define QD_RDCURSOR	_IOR('g', 3, 64)           /* read cursor bitmap */
97cf02ad2bSragge #define QD_CLRSCRN	_IO('g', 4) 		/* clear the screen */
98cf02ad2bSragge #define QD_RDCONFIG	_IOR('g', 5, short)        /* read QDSS configuration */
99cf02ad2bSragge #define QD_PRGMOUSE	_IOW('g', 6, char)	/* program mouse */
100cf02ad2bSragge #define QD_PRGTABLET	_IOW('g', 7, char) 	/* program tablet */
101cf02ad2bSragge #define QD_PRGKBD	_IOW('g', 8, struct prgkbd) /* program LK201 kbd */
102cf02ad2bSragge #define QD_MAPDEVICE	_IOR('g', 9, struct qdmap) /* map device to user */
103*53524e44Schristos #define QD_MAPIOBUF 	_IOWR('g', 10, void *)     /* map DMA iobuf to user */
104*53524e44Schristos #define QD_MAPEVENT	_IOR('g', 11, void *)     /* map event queue to user */
105cf02ad2bSragge #define QD_PRGCURSOR	_IOW('g', 12, struct prg_cursor) /* program cursor */
106cf02ad2bSragge #define QD_RESET	_IO('g', 13)  	    /* set device & driver defaults */
107cf02ad2bSragge #define QD_POSCURSOR	_IOW('g', 14, struct _vs_cursor) /* position cursor */
108cf02ad2bSragge #define QD_SET		_IO('g', 15)  	    /* set DUART & driver defaults */
109*53524e44Schristos #define QD_MAPSCROLL    _IOR('g', 16, void *)  /* map scroll param area */
110cf02ad2bSragge #define QD_UNMAPSCROLL  _IO('g', 17)            /* unmap scroll param area */
111*53524e44Schristos #define QD_MAPCOLOR     _IOR('g', 18, void *)  /* map color map write buf */
112cf02ad2bSragge #define QD_UNMAPCOLOR   _IO('g', 19)            /* unmap color map write buf */
113cf02ad2bSragge #define QD_KERN_LOOP    _IO('g', 20)       /* detour kernel console output */
114cf02ad2bSragge #define QD_KERN_UNLOOP  _IO('g', 21)       /* un-detour kernel console output */
115cf02ad2bSragge #define QD_PRGTABRES	_IOW('g', 22, short) /* program tablet resolution */
116