Subversion Repositories Kolibri OS

Rev

Rev 3391 | Rev 5056 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3391 Rev 3747
Line 47... Line 47...
47
	u32 surface_depth;
47
	u32 surface_depth;
48
};
48
};
Line 49... Line 49...
49
 
49
 
50
/**
50
/**
51
 * struct drm_fb_helper_funcs - driver callbacks for the fbdev emulation library
51
 * struct drm_fb_helper_funcs - driver callbacks for the fbdev emulation library
52
 * @gamma_set: - Set the given gamma lut register on the given crtc.
52
 * @gamma_set: Set the given gamma lut register on the given crtc.
53
 * @gamma_get: - Read the given gamma lut register on the given crtc, used to
53
 * @gamma_get: Read the given gamma lut register on the given crtc, used to
54
 * 		 save the current lut when force-restoring the fbdev for e.g.
54
 * 		 save the current lut when force-restoring the fbdev for e.g.
55
 * 		 kdbg.
55
 * 		 kdbg.
56
 * @fb_probe: - Driver callback to allocate and initialize the fbdev info
56
 * @fb_probe: Driver callback to allocate and initialize the fbdev info
57
 * 		structure. Futhermore it also needs to allocate the drm
57
 * 		structure. Futhermore it also needs to allocate the drm
-
 
58
 * 		framebuffer used to back the fbdev.
58
 * 		framebuffer used to back the fbdev.
59
 * @initial_config: Setup an initial fbdev display configuration
59
 *
60
 *
60
 * Driver callbacks used by the fbdev emulation helper library.
61
 * Driver callbacks used by the fbdev emulation helper library.
61
 */
62
 */
62
struct drm_fb_helper_funcs {
63
struct drm_fb_helper_funcs {
Line 65... Line 66...
65
	void (*gamma_get)(struct drm_crtc *crtc, u16 *red, u16 *green,
66
	void (*gamma_get)(struct drm_crtc *crtc, u16 *red, u16 *green,
66
			  u16 *blue, int regno);
67
			  u16 *blue, int regno);
Line 67... Line 68...
67
 
68
 
68
	int (*fb_probe)(struct drm_fb_helper *helper,
69
	int (*fb_probe)(struct drm_fb_helper *helper,
-
 
70
			struct drm_fb_helper_surface_size *sizes);
-
 
71
	bool (*initial_config)(struct drm_fb_helper *fb_helper,
-
 
72
			       struct drm_fb_helper_crtc **crtcs,
-
 
73
			       struct drm_display_mode **modes,
69
			struct drm_fb_helper_surface_size *sizes);
74
			       bool *enabled, int width, int height);
Line 70... Line 75...
70
};
75
};
71
 
76
 
72
struct drm_fb_helper_connector {
77
struct drm_fb_helper_connector {
Line 99... Line 104...
99
int drm_fb_helper_pan_display(struct fb_var_screeninfo *var,
104
int drm_fb_helper_pan_display(struct fb_var_screeninfo *var,
100
			      struct fb_info *info);
105
			      struct fb_info *info);
101
int drm_fb_helper_set_par(struct fb_info *info);
106
int drm_fb_helper_set_par(struct fb_info *info);
102
int drm_fb_helper_check_var(struct fb_var_screeninfo *var,
107
int drm_fb_helper_check_var(struct fb_var_screeninfo *var,
103
			    struct fb_info *info);
108
			    struct fb_info *info);
104
int drm_fb_helper_setcolreg(unsigned regno,
-
 
105
			    unsigned red,
-
 
106
			    unsigned green,
-
 
107
			    unsigned blue,
-
 
108
			    unsigned transp,
-
 
109
			    struct fb_info *info);
-
 
Line 110... Line 109...
110
 
109
 
111
bool drm_fb_helper_restore_fbdev_mode(struct drm_fb_helper *fb_helper);
110
bool drm_fb_helper_restore_fbdev_mode(struct drm_fb_helper *fb_helper);
112
void drm_fb_helper_fill_var(struct fb_info *info, struct drm_fb_helper *fb_helper,
111
void drm_fb_helper_fill_var(struct fb_info *info, struct drm_fb_helper *fb_helper,
113
			    uint32_t fb_width, uint32_t fb_height);
112
			    uint32_t fb_width, uint32_t fb_height);