summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_crtc.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2011-11-29 20:02:54 +0000
committerDave Airlie <airlied@redhat.com>2011-11-29 20:02:54 +0000
commit248dbc2350501e2c7b9f5ceb60c75515d82f4134 (patch)
treefb12f25d61f71eeba77931b96e58950fc9afd46f /include/drm/drm_crtc.h
parent435ddd926e880f14ea2ae37062b9b45231d7fdf9 (diff)
downloadop-kernel-dev-248dbc2350501e2c7b9f5ceb60c75515d82f4134.zip
op-kernel-dev-248dbc2350501e2c7b9f5ceb60c75515d82f4134.tar.gz
drm: move the fb bpp/depth helper into the core.
This is used by nearly everyone including vmwgfx which doesn't generally use the fb helper. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r--include/drm/drm_crtc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index a2fbf33..6718b18 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -902,4 +902,7 @@ extern int drm_mode_mmap_dumb_ioctl(struct drm_device *dev,
void *data, struct drm_file *file_priv);
extern int drm_mode_destroy_dumb_ioctl(struct drm_device *dev,
void *data, struct drm_file *file_priv);
+
+extern void drm_fb_get_bpp_depth(uint32_t format, unsigned int *depth,
+ int *bpp);
#endif /* __DRM_CRTC_H__ */
OpenPOWER on IntegriCloud