1 /* 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software developed by the Computer Systems 6 * Engineering group at Lawrence Berkeley Laboratory under DARPA 7 * contract BG 91-66 and contributed to Berkeley. 8 * 9 * %sccs.include.redist.c% 10 * 11 * from: $Header: fbio.h,v 1.3 91/12/13 22:16:32 torek Exp $ (LBL) 12 * 13 * from: sys/fbio.h 7.2 (Berkeley) 4/1/92 14 * 15 * @(#)fbio.h 8.1 (Berkeley) 06/10/93 16 */ 17 18 /* 19 * Frame buffer ioctls (from Sprite, trimmed to essentials for X11). 20 */ 21 22 /* 23 * Frame buffer type codes. 24 */ 25 26 #define FBTYPE_BM 100 /* LUNA 4bit(1bit) frame buffer */ 27 28 /* 29 * Frame buffer descriptor as returned by FBIOGTYPE. 30 */ 31 32 struct fbtype { 33 int fb_type; /* as defined above */ 34 int fb_height; /* in pixels */ 35 int fb_width; /* in pixels */ 36 int fb_depth; /* bits per pixel */ 37 int fb_cmsize; /* size of color map (entries) */ 38 int fb_size; /* total size in bytes */ 39 }; 40 41 #define FBIOGTYPE _IOR('F', 0, struct fbtype) 42 43 44 /* 45 * Reflesh Countor I/O 46 */ 47 48 struct fb_rfc { 49 short rfc_hcnt; 50 short rfc_vcnt; 51 }; 52 53 #define FBIOSETRFCT _IOW('F', 3, struct fb_rfc) 54 #define FBIOGETRFCT _IOR('F', 4, struct fb_rfc) 55 56 57 /* 58 * Color map I/O. 59 */ 60 61 #ifdef notyet 62 struct fb_palette { 63 int index; /* first element (0 origin) */ 64 int count; /* number of elements */ 65 u_char *red; /* red color map elements */ 66 u_char *green; /* green color map elements */ 67 u_char *blue; /* blue color map elements */ 68 }; 69 70 #define FBIOSETPALT _IOW('F', 5, struct fb_palette) 71 #define FBIOGETPALT _IOR('F', 6, struct fb_palette) 72 #endif 73