File: /usr/src/linux/drivers/video/matrox/matroxfb_crtc2.h

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     	union {
34     #ifdef FBCON_HAS_CFB16
35     		u_int16_t	cfb16[16];
36     #endif
37     #ifdef FBCON_HAS_CFB32
38     		u_int32_t	cfb32[16];
39     #endif
40     	} cmap;
41     	struct { unsigned red, green, blue, transp; } palette[16];
42     };
43     
44     #endif /* __MATROXFB_CRTC2_H__ */
45