|
|
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 is only permitted until one year after the first shipment ! 11: * of 4.4BSD by the Regents. Otherwise, redistribution and use in source and ! 12: * binary forms are permitted provided that: (1) source distributions retain ! 13: * this entire copyright notice and comment, and (2) distributions including ! 14: * binaries display the following acknowledgement: This product includes ! 15: * software developed by the University of California, Berkeley and its ! 16: * contributors'' in the documentation or other materials provided with the ! 17: * distribution and in all advertising materials mentioning features or use ! 18: * of this software. Neither the name of the University nor the names of ! 19: * its contributors may be used to endorse or promote products derived from ! 20: * this software without specific prior written permission. ! 21: * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED ! 22: * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF ! 23: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 24: * ! 25: * from: Utah $Hdr: grfioctl.h 1.13 89/01/18$ ! 26: * ! 27: * @(#)grfioctl.h 7.1 (Berkeley) 5/8/90 ! 28: */ ! 29: ! 30: struct grfinfo { ! 31: int gd_id; /* HPUX identifier */ ! 32: caddr_t gd_regaddr; /* control registers physaddr */ ! 33: int gd_regsize; /* control registers size */ ! 34: caddr_t gd_fbaddr; /* frame buffer physaddr */ ! 35: int gd_fbsize; /* frame buffer size */ ! 36: short gd_colors; /* number of colors */ ! 37: short gd_planes; /* number of planes */ ! 38: /* new stuff */ ! 39: int gd_fbwidth; /* frame buffer width */ ! 40: int gd_fbheight; /* frame buffer height */ ! 41: int gd_dwidth; /* displayed part width */ ! 42: int gd_dheight; /* displayed part height */ ! 43: int gd_pad[6]; /* for future expansion */ ! 44: }; ! 45: ! 46: /* types */ ! 47: #define GRFGATOR 8 ! 48: #define GRFBOBCAT 9 ! 49: #define GRFCATSEYE 9 ! 50: #define GRFRBOX 10 ! 51: #define GRFDAVINCI 14 ! 52: ! 53: /* ! 54: * HPUX ioctls (here for the benefit of the driver) ! 55: */ ! 56: struct grf_slot { ! 57: int slot; ! 58: u_char *addr; ! 59: }; ! 60: ! 61: #ifndef _IOH ! 62: #define _IOH(x,y) (IOC_IN|((x)<<8)|y) /* IOC_IN is IOC_VOID */ ! 63: ! 64: #define GCID _IOR('G', 0, int) ! 65: #define GCON _IOH('G', 1) ! 66: #define GCOFF _IOH('G', 2) ! 67: #define GCAON _IOH('G', 3) ! 68: #define GCAOFF _IOH('G', 4) ! 69: #define GCMAP _IOWR('G', 5, int) ! 70: #define GCUNMAP _IOWR('G', 6, int) ! 71: #define GCLOCK _IOH('G', 7) ! 72: #define GCUNLOCK _IOH('G', 8) ! 73: #define GCLOCK_MINIMUM _IOH('G', 9) ! 74: #define GCUNLOCK_MINIMUM _IOH('G', 10) ! 75: #define GCSTATIC_CMAP _IOH('G', 11) ! 76: #define GCVARIABLE_CMAP _IOH('G', 12) ! 77: #define GCSLOT _IOWR('G', 13, struct grf_slot) ! 78: ! 79: /* XXX: for now */ ! 80: #define IOMAPID _IOR('M',0,int) /* ??? */ ! 81: #define IOMAPMAP _IOWR('M',1,int) ! 82: #define IOMAPUNMAP _IOWR('M',2,int) ! 83: #endif ! 84: ! 85: /* ! 86: * BSD ioctls ! 87: */ ! 88: #define GRFIOCGINFO _IOR('G', 0, struct grfinfo) /* get info on device */ ! 89: #define GRFIOCON _IO('G', 1) /* turn graphics on */ ! 90: #define GRFIOCOFF _IO('G', 2) /* turn graphics off */ ! 91: #define GRFIOCMAP _IOWR('G', 5, int) /* map in regs+framebuffer */ ! 92: #define GRFIOCUNMAP _IOW('G', 6, int) /* unmap regs+framebuffer */ ! 93: ! 94: /* compat - for old grfinfo structure */ ! 95: struct ogrfinfo { char oinfo[24]; }; ! 96: #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.