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