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