viewioctl.h revision 1.2
11.1Smw/*
21.2Schopps * Copyright (c) 1994 Christian E. Hopps
31.1Smw * All rights reserved.
41.1Smw *
51.1Smw * Redistribution and use in source and binary forms, with or without
61.1Smw * modification, are permitted provided that the following conditions
71.1Smw * are met:
81.1Smw * 1. Redistributions of source code must retain the above copyright
91.1Smw *    notice, this list of conditions and the following disclaimer.
101.1Smw * 2. Redistributions in binary form must reproduce the above copyright
111.1Smw *    notice, this list of conditions and the following disclaimer in the
121.1Smw *    documentation and/or other materials provided with the distribution.
131.1Smw * 3. All advertising materials mentioning features or use of this software
141.1Smw *    must display the following acknowledgement:
151.2Schopps *      This product includes software developed by Christian E. Hopps.
161.2Schopps * 4. The name of the author may not be used to endorse or promote products
171.2Schopps *    derived from this software without specific prior written permission
181.1Smw *
191.2Schopps * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
201.2Schopps * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
211.2Schopps * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
221.2Schopps * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
231.2Schopps * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
241.2Schopps * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
251.2Schopps * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
261.2Schopps * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
271.2Schopps * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
281.2Schopps * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
291.1Smw *
301.2Schopps *	$Id: viewioctl.h,v 1.2 1994/01/29 06:59:40 chopps Exp $
311.1Smw */
321.1Smw
331.1Smw/* The view major device is a placeholder device.  It serves
341.1Smw * simply to map the semantics of a graphics dipslay to
351.1Smw * the semantics of a character block device.  In other
361.1Smw * words the graphics system as currently built does not like to be
371.1Smw * refered to by open/close/ioctl.  This device serves as
381.1Smw * a interface to graphics. */
391.1Smw
401.1Smw#include "grf/grf_bitmap.h"
411.1Smw#include "grf/grf_colormap.h"
421.1Smw
431.1Smwstruct view_size {
441.1Smw    int x;
451.1Smw    int y;
461.1Smw    int width;
471.1Smw    int height;
481.1Smw    int depth;
491.1Smw};
501.1Smw
511.1Smw#define VIEW_REMOVE     _IO ('V', 0x0)	/* if displaying remove. */
521.1Smw#define VIEW_DISPLAY    _IO ('V', 0x1)	/* if not displaying, display */
531.1Smw#define VIEW_SETSIZE	_IOW ('V', 0x2, struct view_size)	/* set size */
541.1Smw#define VIEW_GETSIZE	_IOR ('V', 0x3, struct view_size)	/* get size */
551.1Smw#define VIEW_GETBITMAP	_IOR ('V', 0x4, bmap_t)
561.1Smw#define VIEW_USECOLORMAP _IOW ('V', 0x5, colormap_t)
571.1Smw#define VIEW_GETCOLORMAP _IOWR ('V', 0x6, colormap_t)
581.1Smw
59