xref: /original-bsd/sys/luna68k/dev/fbio.h (revision 02e832b2)
1 /*
2  * Copyright (c) 1992 Regents of the University of California.
3  * 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	7.2 (Berkeley) 12/20/92
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 #define	FBIO_ON		_IO('F', 1)
43 #define	FBIO_OFF	_IO('F', 2)
44 
45 
46 /*
47  * Reflesh Countor I/O
48  */
49 
50 struct fb_rfc {
51 	short	rfc_hcnt;
52 	short	rfc_vcnt;
53 };
54 
55 #define	FBIOSETRFCT	_IOW('F', 3, struct fb_rfc)
56 #define	FBIOGETRFCT	_IOR('F', 4, struct fb_rfc)
57 
58 
59 /*
60  * Color map I/O.
61  */
62 
63 #ifdef notyet
64 struct fb_palette {
65 	int	index;		/* first element (0 origin) */
66 	int	count;		/* number of elements */
67 	u_char	*red;		/* red color map elements */
68 	u_char	*green;		/* green color map elements */
69 	u_char	*blue;		/* blue color map elements */
70 };
71 
72 #define	FBIOSETPALT	_IOW('F', 5, struct fb_palette)
73 #define	FBIOGETPALT	_IOR('F', 6, struct fb_palette)
74 #endif
75