summaryrefslogtreecommitdiff
path: root/include/drm/drm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/drm/drm.h')
-rw-r--r--include/drm/drm.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/drm/drm.h b/include/drm/drm.h
index 416673af..0578a63b 100644
--- a/include/drm/drm.h
+++ b/include/drm/drm.h
@@ -618,6 +618,15 @@ struct drm_get_cap {
__u64 value;
};
+struct drm_prime_handle {
+ /** Handle for object */
+ __u32 handle;
+
+ /* prime name */
+ __u32 name;
+};
+
+
#include "drm_mode.h"
#define DRM_IOCTL_BASE 'd'
@@ -674,6 +683,9 @@ struct drm_get_cap {
#define DRM_IOCTL_UNLOCK DRM_IOW( 0x2b, struct drm_lock)
#define DRM_IOCTL_FINISH DRM_IOW( 0x2c, struct drm_lock)
+#define DRM_IOCTL_PRIME_SET DRM_IOWR(0x2d, struct drm_prime_handle)
+#define DRM_IOCTL_PRIME_GET DRM_IOWR(0x2e, struct drm_prime_handle)
+
#define DRM_IOCTL_AGP_ACQUIRE DRM_IO( 0x30)
#define DRM_IOCTL_AGP_RELEASE DRM_IO( 0x31)
#define DRM_IOCTL_AGP_ENABLE DRM_IOW( 0x32, struct drm_agp_mode)