xref: /netbsd-src/sys/dev/qbus/qdioctl.h (revision 53524e44efd7c7176da8dc8190a698b2fe184db1)
1*53524e44Schristos /*	$NetBSD: qdioctl.h,v 1.7 2007/03/04 06:02:29 christos Exp $	*/
208e6c30bSragge /*-
308e6c30bSragge  * Copyright (c) 1982, 1986
408e6c30bSragge  *	The Regents of the University of California.  All rights reserved.
508e6c30bSragge  * (c) UNIX System Laboratories, Inc.
608e6c30bSragge  * All or some portions of this file are derived from material licensed
708e6c30bSragge  * to the University of California by American Telephone and Telegraph
808e6c30bSragge  * Co. or Unix System Laboratories, Inc. and are reproduced herein with
908e6c30bSragge  * the permission of UNIX System Laboratories, Inc.
1008e6c30bSragge  *
1108e6c30bSragge  * Redistribution and use in source and binary forms, with or without
1208e6c30bSragge  * modification, are permitted provided that the following conditions
1308e6c30bSragge  * are met:
1408e6c30bSragge  * 1. Redistributions of source code must retain the above copyright
1508e6c30bSragge  *    notice, this list of conditions and the following disclaimer.
1608e6c30bSragge  * 2. Redistributions in binary form must reproduce the above copyright
1708e6c30bSragge  *    notice, this list of conditions and the following disclaimer in the
1808e6c30bSragge  *    documentation and/or other materials provided with the distribution.
19aad01611Sagc  * 3. Neither the name of the University nor the names of its contributors
2008e6c30bSragge  *    may be used to endorse or promote products derived from this software
2108e6c30bSragge  *    without specific prior written permission.
2208e6c30bSragge  *
2308e6c30bSragge  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2408e6c30bSragge  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2508e6c30bSragge  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2608e6c30bSragge  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2708e6c30bSragge  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2808e6c30bSragge  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2908e6c30bSragge  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
3008e6c30bSragge  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
3108e6c30bSragge  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3208e6c30bSragge  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3308e6c30bSragge  * SUCH DAMAGE.
3408e6c30bSragge  *
3508e6c30bSragge  *	@(#)qdioctl.h	7.2 (Berkeley) 1/21/94
3608e6c30bSragge  */
3708e6c30bSragge 
3808e6c30bSragge /*
3908e6c30bSragge  *	derived from: qdioctl.h	1.1	(ULTRIX)	8/22/85
4008e6c30bSragge  */
4108e6c30bSragge /*
4208e6c30bSragge  * QDSS IOCTL definitions
4308e6c30bSragge  */
4408e6c30bSragge 
4508e6c30bSragge 
4608e6c30bSragge /************************************************************************
4708e6c30bSragge  *									*
4808e6c30bSragge  *			Copyright (c) 1985 by				*
4908e6c30bSragge  *		Digital Equipment Corporation, Maynard, MA		*
5008e6c30bSragge  *			All rights reserved.				*
5108e6c30bSragge  *									*
5208e6c30bSragge  *   This software is furnished under a license and may be used and	*
5308e6c30bSragge  *   copied  only  in accordance with the terms of such license and	*
5408e6c30bSragge  *   with the  inclusion  of  the  above  copyright  notice.   This	*
5508e6c30bSragge  *   software  or  any  other copies thereof may not be provided or	*
5608e6c30bSragge  *   otherwise made available to any other person.  No title to and	*
5708e6c30bSragge  *   ownership of the software is hereby transferred.			*
5808e6c30bSragge  *									*
5908e6c30bSragge  *   This software is  derived  from  software  received  from  the	*
6008e6c30bSragge  *   University    of   California,   Berkeley,   and   from   Bell	*
6108e6c30bSragge  *   Laboratories.  Use, duplication, or disclosure is  subject  to	*
6208e6c30bSragge  *   restrictions  under  license  agreements  with  University  of	*
6308e6c30bSragge  *   California and with AT&T.						*
6408e6c30bSragge  *									*
6508e6c30bSragge  *   The information in this software is subject to change  without	*
6608e6c30bSragge  *   notice  and should not be construed as a commitment by Digital	*
6708e6c30bSragge  *   Equipment Corporation.						*
6808e6c30bSragge  *									*
6908e6c30bSragge  *   Digital assumes no responsibility for the use  or  reliability	*
7008e6c30bSragge  *   of its software on equipment which is not supplied by Digital.	*
7108e6c30bSragge  *									*
7208e6c30bSragge  ************************************************************************/
7308e6c30bSragge /***************************************************************************
7408e6c30bSragge *	revision history: (belongs in sccs)
7508e6c30bSragge ****************************************************************************
7608e6c30bSragge *
7708e6c30bSragge * 22 oct 85  longo  fixed QD_PRGTABRES cmd number to be 22 instead of 12
7808e6c30bSragge * 14 oct 85  longo  added QD_KERN_LOOP and QD_KERN_UNLOOP
7908e6c30bSragge * 02 oct 85  longo  added QD_MAPCOLOR and QD_UNMAPCOLOR
8008e6c30bSragge * 17 sep 85  longo  made QD_MAPIOBUF a read/write command type
8108e6c30bSragge *
8208e6c30bSragge ***************************************************************************/
8308e6c30bSragge 
8408e6c30bSragge 
8508e6c30bSragge #include <sys/ioctl.h>
8608e6c30bSragge 
8708e6c30bSragge 
8808e6c30bSragge #define QD_GETEVENT	_IOR('g', 1, struct _vs_event) /* get oldest event */
8908e6c30bSragge #define QD_WTCURSOR	_IOW('g', 2, short[32])	/* write cursor bitmap */
9008e6c30bSragge #define QD_RDCURSOR	_IOR('g', 3, 64)	/* read cursor bitmap */
9108e6c30bSragge #define QD_CLRSCRN	_IO('g', 4)		/* clear the screen */
9208e6c30bSragge #define QD_RDCONFIG	_IOR('g', 5, short)	/* read QDSS configuration */
9308e6c30bSragge #define QD_PRGMOUSE	_IOW('g', 6, char)	/* program mouse */
9408e6c30bSragge #define QD_PRGTABLET	_IOW('g', 7, char)	/* program tablet */
9508e6c30bSragge #define QD_PRGKBD	_IOW('g', 8, struct prgkbd) /* program LK201 kbd */
9608e6c30bSragge #define QD_MAPDEVICE	_IOR('g', 9, struct qdmap) /* map device to user */
97*53524e44Schristos #define QD_MAPIOBUF	_IOWR('g', 10, void *)	/* map DMA iobuf to user */
98*53524e44Schristos #define QD_MAPEVENT	_IOR('g', 11, void *)	/* map event queue to user */
9908e6c30bSragge #define QD_PRGCURSOR	_IOW('g', 12, struct prg_cursor) /* program cursor */
10008e6c30bSragge #define QD_RESET	_IO('g', 13)	     /* set device & driver defaults */
10108e6c30bSragge #define QD_POSCURSOR	_IOW('g', 14, struct _vs_cursor) /* position cursor */
10208e6c30bSragge #define QD_SET		_IO('g', 15)	      /* set DUART & driver defaults */
103*53524e44Schristos #define QD_MAPSCROLL	_IOR('g', 16, void *)	/* map scroll param area */
10408e6c30bSragge #define QD_UNMAPSCROLL	_IO('g', 17)		/* unmap scroll param area */
105*53524e44Schristos #define QD_MAPCOLOR	_IOR('g', 18, void *)	/* map color map write buf */
10608e6c30bSragge #define QD_UNMAPCOLOR	_IO('g', 19)		/* unmap color map write buf */
10708e6c30bSragge #define QD_KERN_LOOP	_IO('g', 20)	     /* detour kernel console output */
10808e6c30bSragge #define QD_KERN_UNLOOP	_IO('g', 21)	  /* un-detour kernel console output */
10908e6c30bSragge #define QD_PRGTABRES	_IOW('g', 22, short) /* program tablet resolution */
110