grfioctl.h revision 1.1
11.1Stsubai/*	$NetBSD: grfioctl.h,v 1.1 1998/05/15 10:15:53 tsubai Exp $	*/
21.1Stsubai
31.1Stsubai/*
41.1Stsubai * Copyright (c) 1988 University of Utah.
51.1Stsubai * Copyright (c) 1990 The Regents of the University of California.
61.1Stsubai * All rights reserved.
71.1Stsubai *
81.1Stsubai * This code is derived from software contributed to Berkeley by
91.1Stsubai * the Systems Programming Group of the University of Utah Computer
101.1Stsubai * Science Department.
111.1Stsubai *
121.1Stsubai * Redistribution and use in source and binary forms, with or without
131.1Stsubai * modification, are permitted provided that the following conditions
141.1Stsubai * are met:
151.1Stsubai * 1. Redistributions of source code must retain the above copyright
161.1Stsubai *    notice, this list of conditions and the following disclaimer.
171.1Stsubai * 2. Redistributions in binary form must reproduce the above copyright
181.1Stsubai *    notice, this list of conditions and the following disclaimer in the
191.1Stsubai *    documentation and/or other materials provided with the distribution.
201.1Stsubai * 3. All advertising materials mentioning features or use of this software
211.1Stsubai *    must display the following acknowledgement:
221.1Stsubai *	This product includes software developed by the University of
231.1Stsubai *	California, Berkeley and its contributors.
241.1Stsubai * 4. Neither the name of the University nor the names of its contributors
251.1Stsubai *    may be used to endorse or promote products derived from this software
261.1Stsubai *    without specific prior written permission.
271.1Stsubai *
281.1Stsubai * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
291.1Stsubai * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
301.1Stsubai * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
311.1Stsubai * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
321.1Stsubai * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
331.1Stsubai * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
341.1Stsubai * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
351.1Stsubai * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
361.1Stsubai * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
371.1Stsubai * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
381.1Stsubai * SUCH DAMAGE.
391.1Stsubai *
401.1Stsubai * from: Utah $Hdr: grfioctl.h 1.1 90/07/09$
411.1Stsubai *
421.1Stsubai *	@(#)grfioctl.h	7.2 (Berkeley) 11/4/90
431.1Stsubai */
441.1Stsubai
451.1Stsubaistruct	grfinfo {
461.1Stsubai	caddr_t	gd_regaddr;		/* control registers physaddr */
471.1Stsubai	int	gd_regsize;		/* control registers size */
481.1Stsubai	caddr_t	gd_fbaddr;		/* frame buffer physaddr */
491.1Stsubai	int	gd_fbsize;		/* frame buffer size */
501.1Stsubai	short	gd_colors;		/* number of colors */
511.1Stsubai	short	gd_planes;		/* number of planes */
521.1Stsubai	int	gd_fbwidth;		/* frame buffer width */
531.1Stsubai	int	gd_fbheight;		/* frame buffer height */
541.1Stsubai	int	gd_fbrowbytes;		/* frame buffer rowbytes */
551.1Stsubai	int	gd_dwidth;		/* displayed part width */
561.1Stsubai	int	gd_dheight;		/* displayed part height */
571.1Stsubai	caddr_t	gd_devaddr;		/* physaddr of the device */
581.1Stsubai	int	gd_devsize;		/* size of the device */
591.1Stsubai	int	gd_pad[4];		/* for future expansion */
601.1Stsubai};
611.1Stsubai
621.1Stsubai/*
631.1Stsubai * BSD ioctls
641.1Stsubai */
651.1Stsubai#define	GRFIOCGINFO	_IOR('G', 0, struct grfinfo) /* get info on device */
661.1Stsubai#define	GRFIOCON	_IO('G', 1)		/* turn graphics on */
671.1Stsubai#define	GRFIOCOFF	_IO('G', 2)		/* turn graphics off */
68