1 #ifndef __MATROXFB_CRTC2_H__
2 #define __MATROXFB_CRTC2_H__
3 
4 #include <linux/ioctl.h>
5 #include <linux/i2c.h>
6 #include <linux/i2c-algo-bit.h>
7 #include "matroxfb_base.h"
8 
9 struct matroxfb_dh_fb_info {
10 	struct fb_info		fbcon;
11 	int			fbcon_registered;
12 
13 	struct matrox_fb_info*	primary_dev;
14 
15 	struct {
16 		unsigned long	base;	/* physical */
17 		vaddr_t		vbase;	/* virtual */
18 		unsigned int	len;
19 		unsigned int	len_usable;
20 		unsigned int	len_maximum;
21 		unsigned int 	offbase;
22 		unsigned int	borrowed;
23 			      } video;
24 	struct {
25 		unsigned long	base;
26 		vaddr_t		vbase;
27 		unsigned int	len;
28 			      } mmio;
29 
30 	int			currcon;
31 	struct display*		currcon_display;
32 
33 	int			interlaced:1;
34 
35 	union {
36 #ifdef FBCON_HAS_CFB16
37 		u_int16_t	cfb16[16];
38 #endif
39 #ifdef FBCON_HAS_CFB32
40 		u_int32_t	cfb32[16];
41 #endif
42 	} cmap;
43 	struct { unsigned red, green, blue, transp; } palette[16];
44 };
45 
46 #endif /* __MATROXFB_CRTC2_H__ */
47