MALI: utgard: upgrade DDK to r6p1-01rel0
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / arm / mali400 / ump / common / ump_uk_types.h
index 48b588f8e2b76a4234a2ee2d2fb79d3a0c56833f..0e42a89db01387dd420d9c13815901115975d651 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010, 2012-2014 ARM Limited. All rights reserved.
+ * Copyright (C) 2010, 2012-2014, 2016 ARM Limited. All rights reserved.
  * 
  * This program is free software and is provided to you under the terms of the GNU General Public License version 2
  * as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence.
@@ -48,6 +48,7 @@ typedef enum
        _UMP_IOC_SWITCH_HW_USAGE,
        _UMP_IOC_LOCK,
        _UMP_IOC_UNLOCK,
+       _UMP_IOC_DMABUF_IMPORT,
 } _ump_uk_functions;
 
 typedef enum
@@ -186,6 +187,14 @@ typedef struct _ump_uk_unlock_s
        u32 secure_id;        /**< [in] secure_id that identifies the ump buffer */
 } _ump_uk_unlock_s;
 
+typedef struct _ump_uk_dmabuf_s
+{
+       void *ctx;            /**< [in,out] user-kernel context (trashed on output) */
+       int fd;               /**< [in] dmabuf_fd that identifies the dmabuf buffer */
+       size_t size;          /**< [in] size of the buffer */
+       u32 secure_id;        /**< [out] secure_id that identifies the ump buffer */
+} _ump_uk_dmabuf_s;
+
 #ifdef __cplusplus
 }
 #endif