From 32471b265c6fbce6d519f0420a0ffeb608296502 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Mon, 22 Jun 2015 17:26:03 +0100 Subject: Add blob property create/destroy ioctl wrappers v2: Use memclear to zero out structure. Signed-off-by: Daniel Stone Reviewed-by: Rob Clark --- include/drm/drm_mode.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'include/drm/drm_mode.h') diff --git a/include/drm/drm_mode.h b/include/drm/drm_mode.h index 66f856fc..69c1ac3c 100644 --- a/include/drm/drm_mode.h +++ b/include/drm/drm_mode.h @@ -523,4 +523,25 @@ struct drm_mode_atomic { __u64 user_data; }; +/** + * Create a new 'blob' data property, copying length bytes from data pointer, + * and returning new blob ID. + */ +struct drm_mode_create_blob { + /** Pointer to data to copy. */ + __u64 data; + /** Length of data to copy. */ + __u32 length; + /** Return: new property ID. */ + __u32 blob_id; +}; + +/** + * Destroy a user-created blob property. + */ +struct drm_mode_destroy_blob { + __u32 blob_id; +}; + + #endif -- cgit v1.2.1