xref: /csrg-svn/sys/luna68k/dev/fbio.h (revision 63192)
157220Sakito /*
2*63192Sbostic  * Copyright (c) 1992, 1993
3*63192Sbostic  *	The Regents of the University of California.  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*63192Sbostic  *	@(#)fbio.h	8.1 (Berkeley) 06/10/93
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)
4257220Sakito 
4357220Sakito 
4457220Sakito /*
4557220Sakito  * Reflesh Countor I/O
4657220Sakito  */
4757220Sakito 
4857220Sakito struct fb_rfc {
4957220Sakito 	short	rfc_hcnt;
5057220Sakito 	short	rfc_vcnt;
5157220Sakito };
5257220Sakito 
5357241Sakito #define	FBIOSETRFCT	_IOW('F', 3, struct fb_rfc)
5457241Sakito #define	FBIOGETRFCT	_IOR('F', 4, struct fb_rfc)
5557220Sakito 
5657220Sakito 
5757220Sakito /*
5857220Sakito  * Color map I/O.
5957220Sakito  */
6057220Sakito 
6157220Sakito #ifdef notyet
6257220Sakito struct fb_palette {
6357220Sakito 	int	index;		/* first element (0 origin) */
6457220Sakito 	int	count;		/* number of elements */
6557220Sakito 	u_char	*red;		/* red color map elements */
6657220Sakito 	u_char	*green;		/* green color map elements */
6757220Sakito 	u_char	*blue;		/* blue color map elements */
6857220Sakito };
6957220Sakito 
7057241Sakito #define	FBIOSETPALT	_IOW('F', 5, struct fb_palette)
7157241Sakito #define	FBIOGETPALT	_IOR('F', 6, struct fb_palette)
7257220Sakito #endif
73