grfioctl.h revision 1.5
11.5Schristos/* $NetBSD: grfioctl.h,v 1.5 2007/03/04 06:00:11 christos Exp $ */ 21.1Stsubai 31.1Stsubai/* 41.1Stsubai * Copyright (c) 1990 The Regents of the University of California. 51.1Stsubai * All rights reserved. 61.2Sagc * 71.2Sagc * This code is derived from software contributed to Berkeley by 81.2Sagc * the Systems Programming Group of the University of Utah Computer 91.2Sagc * Science Department. 101.2Sagc * 111.2Sagc * Redistribution and use in source and binary forms, with or without 121.2Sagc * modification, are permitted provided that the following conditions 131.2Sagc * are met: 141.2Sagc * 1. Redistributions of source code must retain the above copyright 151.2Sagc * notice, this list of conditions and the following disclaimer. 161.2Sagc * 2. Redistributions in binary form must reproduce the above copyright 171.2Sagc * notice, this list of conditions and the following disclaimer in the 181.2Sagc * documentation and/or other materials provided with the distribution. 191.2Sagc * 3. Neither the name of the University nor the names of its contributors 201.2Sagc * may be used to endorse or promote products derived from this software 211.2Sagc * without specific prior written permission. 221.2Sagc * 231.2Sagc * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 241.2Sagc * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 251.2Sagc * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 261.2Sagc * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 271.2Sagc * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 281.2Sagc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 291.2Sagc * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 301.2Sagc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 311.2Sagc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 321.2Sagc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 331.2Sagc * SUCH DAMAGE. 341.2Sagc * 351.2Sagc * from: Utah $Hdr: grfioctl.h 1.1 90/07/09$ 361.2Sagc * 371.2Sagc * @(#)grfioctl.h 7.2 (Berkeley) 11/4/90 381.2Sagc */ 391.2Sagc/* 401.2Sagc * Copyright (c) 1988 University of Utah. 411.1Stsubai * 421.1Stsubai * This code is derived from software contributed to Berkeley by 431.1Stsubai * the Systems Programming Group of the University of Utah Computer 441.1Stsubai * Science Department. 451.1Stsubai * 461.1Stsubai * Redistribution and use in source and binary forms, with or without 471.1Stsubai * modification, are permitted provided that the following conditions 481.1Stsubai * are met: 491.1Stsubai * 1. Redistributions of source code must retain the above copyright 501.1Stsubai * notice, this list of conditions and the following disclaimer. 511.1Stsubai * 2. Redistributions in binary form must reproduce the above copyright 521.1Stsubai * notice, this list of conditions and the following disclaimer in the 531.1Stsubai * documentation and/or other materials provided with the distribution. 541.1Stsubai * 3. All advertising materials mentioning features or use of this software 551.1Stsubai * must display the following acknowledgement: 561.1Stsubai * This product includes software developed by the University of 571.1Stsubai * California, Berkeley and its contributors. 581.1Stsubai * 4. Neither the name of the University nor the names of its contributors 591.1Stsubai * may be used to endorse or promote products derived from this software 601.1Stsubai * without specific prior written permission. 611.1Stsubai * 621.1Stsubai * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 631.1Stsubai * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 641.1Stsubai * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 651.1Stsubai * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 661.1Stsubai * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 671.1Stsubai * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 681.1Stsubai * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 691.1Stsubai * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 701.1Stsubai * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 711.1Stsubai * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 721.1Stsubai * SUCH DAMAGE. 731.1Stsubai * 741.1Stsubai * from: Utah $Hdr: grfioctl.h 1.1 90/07/09$ 751.1Stsubai * 761.1Stsubai * @(#)grfioctl.h 7.2 (Berkeley) 11/4/90 771.1Stsubai */ 781.1Stsubai 791.3Sfair#ifndef _MACPPC_GRFIOCTL_H_ 801.3Sfair#define _MACPPC_GRFIOCTL_H_ 811.3Sfair 821.1Stsubaistruct grfinfo { 831.5Schristos void * gd_regaddr; /* control registers physaddr */ 841.1Stsubai int gd_regsize; /* control registers size */ 851.5Schristos void * gd_fbaddr; /* frame buffer physaddr */ 861.1Stsubai int gd_fbsize; /* frame buffer size */ 871.1Stsubai short gd_colors; /* number of colors */ 881.1Stsubai short gd_planes; /* number of planes */ 891.1Stsubai int gd_fbwidth; /* frame buffer width */ 901.1Stsubai int gd_fbheight; /* frame buffer height */ 911.1Stsubai int gd_fbrowbytes; /* frame buffer rowbytes */ 921.1Stsubai int gd_dwidth; /* displayed part width */ 931.1Stsubai int gd_dheight; /* displayed part height */ 941.5Schristos void * gd_devaddr; /* physaddr of the device */ 951.1Stsubai int gd_devsize; /* size of the device */ 961.1Stsubai int gd_pad[4]; /* for future expansion */ 971.1Stsubai}; 981.1Stsubai 991.1Stsubai/* 1001.1Stsubai * BSD ioctls 1011.1Stsubai */ 1021.1Stsubai#define GRFIOCGINFO _IOR('G', 0, struct grfinfo) /* get info on device */ 1031.1Stsubai#define GRFIOCON _IO('G', 1) /* turn graphics on */ 1041.1Stsubai#define GRFIOCOFF _IO('G', 2) /* turn graphics off */ 1051.3Sfair 1061.3Sfair#endif /* _MACPPC_GRFIOCTL_H_ */ 107