157220Sakito /* 257220Sakito * Copyright (c) 1992 Regents of the University of California. 357220Sakito * All rights reserved. 457220Sakito * 557220Sakito * This code is derived from software developed by the Computer Systems 657220Sakito * Engineering group at Lawrence Berkeley Laboratory under DARPA 757220Sakito * contract BG 91-66 and contributed to Berkeley. 857220Sakito * 957220Sakito * %sccs.include.redist.c% 1057220Sakito * 1157220Sakito * from: $Header: fbio.h,v 1.3 91/12/13 22:16:32 torek Exp $ (LBL) 1257220Sakito * 1357220Sakito * from: sys/fbio.h 7.2 (Berkeley) 4/1/92 1457220Sakito * 15*57241Sakito * @(#)fbio.h 7.2 (Berkeley) 12/20/92 1657220Sakito */ 1757220Sakito 1857220Sakito /* 1957220Sakito * Frame buffer ioctls (from Sprite, trimmed to essentials for X11). 2057220Sakito */ 2157220Sakito 2257220Sakito /* 2357220Sakito * Frame buffer type codes. 2457220Sakito */ 2557220Sakito 2657220Sakito #define FBTYPE_BM 100 /* LUNA 4bit(1bit) frame buffer */ 2757220Sakito 2857220Sakito /* 2957220Sakito * Frame buffer descriptor as returned by FBIOGTYPE. 3057220Sakito */ 3157220Sakito 3257220Sakito struct fbtype { 3357220Sakito int fb_type; /* as defined above */ 3457220Sakito int fb_height; /* in pixels */ 3557220Sakito int fb_width; /* in pixels */ 3657220Sakito int fb_depth; /* bits per pixel */ 3757220Sakito int fb_cmsize; /* size of color map (entries) */ 3857220Sakito int fb_size; /* total size in bytes */ 3957220Sakito }; 4057220Sakito 4157220Sakito #define FBIOGTYPE _IOR('F', 0, struct fbtype) 42*57241Sakito #define FBIO_ON _IO('F', 1) 43*57241Sakito #define FBIO_OFF _IO('F', 2) 4457220Sakito 4557220Sakito 4657220Sakito /* 4757220Sakito * Reflesh Countor I/O 4857220Sakito */ 4957220Sakito 5057220Sakito struct fb_rfc { 5157220Sakito short rfc_hcnt; 5257220Sakito short rfc_vcnt; 5357220Sakito }; 5457220Sakito 55*57241Sakito #define FBIOSETRFCT _IOW('F', 3, struct fb_rfc) 56*57241Sakito #define FBIOGETRFCT _IOR('F', 4, struct fb_rfc) 5757220Sakito 5857220Sakito 5957220Sakito /* 6057220Sakito * Color map I/O. 6157220Sakito */ 6257220Sakito 6357220Sakito #ifdef notyet 6457220Sakito struct fb_palette { 6557220Sakito int index; /* first element (0 origin) */ 6657220Sakito int count; /* number of elements */ 6757220Sakito u_char *red; /* red color map elements */ 6857220Sakito u_char *green; /* green color map elements */ 6957220Sakito u_char *blue; /* blue color map elements */ 7057220Sakito }; 7157220Sakito 72*57241Sakito #define FBIOSETPALT _IOW('F', 5, struct fb_palette) 73*57241Sakito #define FBIOGETPALT _IOR('F', 6, struct fb_palette) 7457220Sakito #endif 75