summaryrefslogtreecommitdiff
path: root/src/etnaviv/viv.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/etnaviv/viv.h')
-rw-r--r--src/etnaviv/viv.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/etnaviv/viv.h b/src/etnaviv/viv.h
index ec044f5..4496840 100644
--- a/src/etnaviv/viv.h
+++ b/src/etnaviv/viv.h
@@ -268,6 +268,11 @@ int viv_free_contiguous(struct viv_conn *conn, size_t bytes, viv_addr_t physical
*/
int viv_map_dmabuf(struct viv_conn *conn, int fd, viv_usermem_t *info, viv_addr_t *address, int prot);
+/** Map user memory to GPU memory, allowing for read/write protections.
+ * Note: GPU is not protected against reads/writes.
+ */
+int viv_map_user_memory_prot(struct viv_conn *conn, void *memory, size_t size, int prot, viv_usermem_t *info, viv_addr_t *address);
+
/** Map user memory to GPU memory.
*/
int viv_map_user_memory(struct viv_conn *conn, void *memory, size_t size, viv_usermem_t *info, viv_addr_t *address);