summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-07-07 18:00:23 -0400
committerKristian Høgsberg <krh@redhat.com>2008-07-07 18:00:23 -0400
commit38a5f6686cd38d5204e240f30006538bcf70f5ac (patch)
tree80f013c345155d386dc44a330eccd33afd0d9380 /shared-core
parent3e02f7fd310ae062d250d8db01ddc3b7de3d7943 (diff)
Add back flink, open and close ioctls.
They fell through the cracks in 86accbcb.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/drm.h29
1 files changed, 22 insertions, 7 deletions
diff --git a/shared-core/drm.h b/shared-core/drm.h
index 2d0f1f4d..382e3fa1 100644
--- a/shared-core/drm.h
+++ b/shared-core/drm.h
@@ -993,15 +993,30 @@ struct drm_mm_info_arg {
uint64_t p_size;
};
-struct drm_gem_set_domain {
- /** Handle for the object */
+struct drm_gem_close {
+ /** Handle of the object to be closed. */
uint32_t handle;
- /** New read domains */
- uint32_t read_domains;
- /** New write domain */
- uint32_t write_domain;
+ uint32_t pad;
+};
+
+struct drm_gem_flink {
+ /** Handle for the object being named */
+ uint32_t handle;
+
+ /** Returned global name */
+ uint32_t name;
+};
+
+struct drm_gem_open {
+ /** Name of object being opened */
+ uint32_t name;
+
+ /** Returned handle for the object */
+ uint32_t handle;
+
+ /** Returned size of the object */
+ uint64_t size;
};
-#define DRM_GEM_DOMAIN_CPU 0x00000001
/*
* Drm mode setting