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