|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1988 University of Utah. ! 3: * Copyright (c) 1990 The Regents of the University of California. ! 4: * All rights reserved. ! 5: * ! 6: * This code is derived from software contributed to Berkeley by ! 7: * the Systems Programming Group of the University of Utah Computer ! 8: * Science Department. ! 9: * ! 10: * Redistribution and use in source and binary forms, with or without ! 11: * modification, are permitted provided that the following conditions ! 12: * are met: ! 13: * 1. Redistributions of source code must retain the above copyright ! 14: * notice, this list of conditions and the following disclaimer. ! 15: * 2. Redistributions in binary form must reproduce the above copyright ! 16: * notice, this list of conditions and the following disclaimer in the ! 17: * documentation and/or other materials provided with the distribution. ! 18: * 3. All advertising materials mentioning features or use of this software ! 19: * must display the following acknowledgement: ! 20: * This product includes software developed by the University of ! 21: * California, Berkeley and its contributors. ! 22: * 4. Neither the name of the University nor the names of its contributors ! 23: * may be used to endorse or promote products derived from this software ! 24: * without specific prior written permission. ! 25: * ! 26: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ! 27: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ! 28: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ! 29: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE ! 30: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ! 31: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ! 32: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ! 33: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ! 34: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ! 35: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ! 36: * SUCH DAMAGE. ! 37: * ! 38: * from: Utah $Hdr: grfioctl.h 1.1 90/07/09$ ! 39: * ! 40: * @(#)grfioctl.h 7.2 (Berkeley) 11/4/90 ! 41: */ ! 42: ! 43: struct grfinfo { ! 44: int gd_id; /* HPUX identifier */ ! 45: caddr_t gd_regaddr; /* control registers physaddr */ ! 46: int gd_regsize; /* control registers size */ ! 47: caddr_t gd_fbaddr; /* frame buffer physaddr */ ! 48: int gd_fbsize; /* frame buffer size */ ! 49: short gd_colors; /* number of colors */ ! 50: short gd_planes; /* number of planes */ ! 51: /* new stuff */ ! 52: int gd_fbwidth; /* frame buffer width */ ! 53: int gd_fbheight; /* frame buffer height */ ! 54: int gd_dwidth; /* displayed part width */ ! 55: int gd_dheight; /* displayed part height */ ! 56: int gd_pad[6]; /* for future expansion */ ! 57: }; ! 58: ! 59: /* types */ ! 60: #define GRFGATOR 8 ! 61: #define GRFBOBCAT 9 ! 62: #define GRFCATSEYE 9 ! 63: #define GRFRBOX 10 ! 64: #define GRFDAVINCI 14 ! 65: ! 66: /* ! 67: * HPUX ioctls (here for the benefit of the driver) ! 68: */ ! 69: struct grf_slot { ! 70: int slot; ! 71: u_char *addr; ! 72: }; ! 73: ! 74: #ifndef _IOH ! 75: #define _IOH(x,y) (IOC_IN|((x)<<8)|y) /* IOC_IN is IOC_VOID */ ! 76: ! 77: #define GCID _IOR('G', 0, int) ! 78: #define GCON _IOH('G', 1) ! 79: #define GCOFF _IOH('G', 2) ! 80: #define GCAON _IOH('G', 3) ! 81: #define GCAOFF _IOH('G', 4) ! 82: #define GCMAP _IOWR('G', 5, int) ! 83: #define GCUNMAP _IOWR('G', 6, int) ! 84: #define GCLOCK _IOH('G', 7) ! 85: #define GCUNLOCK _IOH('G', 8) ! 86: #define GCLOCK_MINIMUM _IOH('G', 9) ! 87: #define GCUNLOCK_MINIMUM _IOH('G', 10) ! 88: #define GCSTATIC_CMAP _IOH('G', 11) ! 89: #define GCVARIABLE_CMAP _IOH('G', 12) ! 90: #define GCSLOT _IOWR('G', 13, struct grf_slot) ! 91: ! 92: /* XXX: for now */ ! 93: #define IOMAPID _IOR('M',0,int) /* ??? */ ! 94: #define IOMAPMAP _IOWR('M',1,int) ! 95: #define IOMAPUNMAP _IOWR('M',2,int) ! 96: #endif ! 97: ! 98: /* ! 99: * BSD ioctls ! 100: */ ! 101: #define GRFIOCGINFO _IOR('G', 0, struct grfinfo) /* get info on device */ ! 102: #define GRFIOCON _IO('G', 1) /* turn graphics on */ ! 103: #define GRFIOCOFF _IO('G', 2) /* turn graphics off */ ! 104: #define GRFIOCMAP _IOWR('G', 5, int) /* map in regs+framebuffer */ ! 105: #define GRFIOCUNMAP _IOW('G', 6, int) /* unmap regs+framebuffer */ ! 106: ! 107: /* compat - for old grfinfo structure */ ! 108: struct ogrfinfo { char oinfo[24]; }; ! 109: #define OGRFIOCGINFO _IOR('G', 0, struct ogrfinfo)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.