summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_legacy.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-08-29 12:12:46 +0200
committerDave Airlie <airlied@redhat.com>2014-09-10 17:43:34 +1000
commitbb6d822ec546603bca01f7ba17c52f0f4f80e329 (patch)
treed7edf6819c03a3195dccd33e9bc242553c00f28a /drivers/gpu/drm/drm_legacy.h
parentd4f68a7506e924e28a9153933076628002ba8bbc (diff)
downloadblackbird-obmc-linux-bb6d822ec546603bca01f7ba17c52f0f4f80e329.tar.gz
blackbird-obmc-linux-bb6d822ec546603bca01f7ba17c52f0f4f80e329.zip
drm: move drm-lock API to drm_legacy.h
Same as the other legacy APIs, most of this is internal, so prefix it with drm_legacy_* and move into drm_legacy.h. Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Reviewed-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_legacy.h')
-rw-r--r--drivers/gpu/drm/drm_legacy.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_legacy.h b/drivers/gpu/drm/drm_legacy.h
index f2d076823b2d..3049af5a01b3 100644
--- a/drivers/gpu/drm/drm_legacy.h
+++ b/drivers/gpu/drm/drm_legacy.h
@@ -83,4 +83,13 @@ struct drm_agp_mem {
struct list_head head;
};
+/*
+ * Generic Userspace Locking-API
+ */
+
+int drm_legacy_i_have_hw_lock(struct drm_device *d, struct drm_file *f);
+int drm_legacy_lock(struct drm_device *d, void *v, struct drm_file *f);
+int drm_legacy_unlock(struct drm_device *d, void *v, struct drm_file *f);
+int drm_legacy_lock_free(struct drm_lock_data *lock, unsigned int ctx);
+
#endif /* __DRM_LEGACY_H__ */
OpenPOWER on IntegriCloud