14d45143bSakito /* 2*b4c7f1a3Sbostic * Copyright (c) 1992, 1993 3*b4c7f1a3Sbostic * The Regents of the University of California. All rights reserved. 44d45143bSakito * 54d45143bSakito * This code is derived from software developed by the Computer Systems 64d45143bSakito * Engineering group at Lawrence Berkeley Laboratory under DARPA 74d45143bSakito * contract BG 91-66 and contributed to Berkeley. 84d45143bSakito * 94d45143bSakito * %sccs.include.redist.c% 104d45143bSakito * 114d45143bSakito * from: $Header: fbio.h,v 1.3 91/12/13 22:16:32 torek Exp $ (LBL) 124d45143bSakito * 134d45143bSakito * from: sys/fbio.h 7.2 (Berkeley) 4/1/92 144d45143bSakito * 15*b4c7f1a3Sbostic * @(#)fbio.h 8.1 (Berkeley) 06/10/93 164d45143bSakito */ 174d45143bSakito 184d45143bSakito /* 194d45143bSakito * Frame buffer ioctls (from Sprite, trimmed to essentials for X11). 204d45143bSakito */ 214d45143bSakito 224d45143bSakito /* 234d45143bSakito * Frame buffer type codes. 244d45143bSakito */ 254d45143bSakito 264d45143bSakito #define FBTYPE_BM 100 /* LUNA 4bit(1bit) frame buffer */ 274d45143bSakito 284d45143bSakito /* 294d45143bSakito * Frame buffer descriptor as returned by FBIOGTYPE. 304d45143bSakito */ 314d45143bSakito 324d45143bSakito struct fbtype { 334d45143bSakito int fb_type; /* as defined above */ 344d45143bSakito int fb_height; /* in pixels */ 354d45143bSakito int fb_width; /* in pixels */ 364d45143bSakito int fb_depth; /* bits per pixel */ 374d45143bSakito int fb_cmsize; /* size of color map (entries) */ 384d45143bSakito int fb_size; /* total size in bytes */ 394d45143bSakito }; 404d45143bSakito 414d45143bSakito #define FBIOGTYPE _IOR('F', 0, struct fbtype) 424d45143bSakito 434d45143bSakito 444d45143bSakito /* 454d45143bSakito * Reflesh Countor I/O 464d45143bSakito */ 474d45143bSakito 484d45143bSakito struct fb_rfc { 494d45143bSakito short rfc_hcnt; 504d45143bSakito short rfc_vcnt; 514d45143bSakito }; 524d45143bSakito 5349ff18c3Sakito #define FBIOSETRFCT _IOW('F', 3, struct fb_rfc) 5449ff18c3Sakito #define FBIOGETRFCT _IOR('F', 4, struct fb_rfc) 554d45143bSakito 564d45143bSakito 574d45143bSakito /* 584d45143bSakito * Color map I/O. 594d45143bSakito */ 604d45143bSakito 614d45143bSakito #ifdef notyet 624d45143bSakito struct fb_palette { 634d45143bSakito int index; /* first element (0 origin) */ 644d45143bSakito int count; /* number of elements */ 654d45143bSakito u_char *red; /* red color map elements */ 664d45143bSakito u_char *green; /* green color map elements */ 674d45143bSakito u_char *blue; /* blue color map elements */ 684d45143bSakito }; 694d45143bSakito 7049ff18c3Sakito #define FBIOSETPALT _IOW('F', 5, struct fb_palette) 7149ff18c3Sakito #define FBIOGETPALT _IOR('F', 6, struct fb_palette) 724d45143bSakito #endif 73