diff options
author | Dave Airlie <airlied@redhat.com> | 2009-10-05 23:54:01 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-10-05 23:54:01 -0400 |
commit | b8c00ac5b50b54491657f8b6740db1df50149944 (patch) | |
tree | b4cfbc0dbb5ba063bcc933d7339504b80dc5c61c /include/drm | |
parent | 068143d38804825d59d951a192cfadd2e22f457d (diff) |
drm/fb: add more correct 8/16/24/32 bpp fb support.
The previous patches had some unwanted side effects, I've fixed
the lack of 32bpp working, and fixed up 16bpp so it should also work.
this also adds the interface to allow the driver to set a preferred
console depth so for example low memory rn50 can set it to 8bpp.
It also catches 24bpp on cards that can't do it and forces 32bpp.
Tested on r100/r600/i945.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_fb_helper.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_fb_helper.h b/include/drm/drm_fb_helper.h index f1ed08559fc7..58c892a2cbfa 100644 --- a/include/drm/drm_fb_helper.h +++ b/include/drm/drm_fb_helper.h | |||
@@ -39,6 +39,8 @@ struct drm_fb_helper_crtc { | |||
39 | struct drm_fb_helper_funcs { | 39 | struct drm_fb_helper_funcs { |
40 | void (*gamma_set)(struct drm_crtc *crtc, u16 red, u16 green, | 40 | void (*gamma_set)(struct drm_crtc *crtc, u16 red, u16 green, |
41 | u16 blue, int regno); | 41 | u16 blue, int regno); |
42 | void (*gamma_get)(struct drm_crtc *crtc, u16 *red, u16 *green, | ||
43 | u16 *blue, int regno); | ||
42 | }; | 44 | }; |
43 | 45 | ||
44 | /* mode specified on the command line */ | 46 | /* mode specified on the command line */ |
@@ -71,6 +73,7 @@ struct drm_fb_helper { | |||
71 | }; | 73 | }; |
72 | 74 | ||
73 | int drm_fb_helper_single_fb_probe(struct drm_device *dev, | 75 | int drm_fb_helper_single_fb_probe(struct drm_device *dev, |
76 | int preferred_bpp, | ||
74 | int (*fb_create)(struct drm_device *dev, | 77 | int (*fb_create)(struct drm_device *dev, |
75 | uint32_t fb_width, | 78 | uint32_t fb_width, |
76 | uint32_t fb_height, | 79 | uint32_t fb_height, |