diff options
author | Russell King <rmk_cubox@arm.linux.org.uk> | 2013-06-12 15:48:02 +0100 |
---|---|---|
committer | Russell King <rmk@arm.linux.org.uk> | 2013-09-22 15:19:00 +0100 |
commit | 0f0a44812dc57b9bb37346e344bcf50235fa4d94 (patch) | |
tree | 1f4cb13aef893bafd8d9677d5f38eb9216d03993 /armada_bufmgr.h | |
parent | 7923dea762934a715063465338a4d8e9275034e3 (diff) |
Initial prime support
Add initial prime support for exporting gem objects via dmabuf.
Signed-off-by: Russell King <rmk_cubox@arm.linux.org.uk>
Diffstat (limited to 'armada_bufmgr.h')
-rw-r--r-- | armada_bufmgr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/armada_bufmgr.h b/armada_bufmgr.h index 9e6188f..f84785f 100644 --- a/armada_bufmgr.h +++ b/armada_bufmgr.h @@ -36,6 +36,9 @@ struct drm_armada_bo *drm_armada_bo_create_from_name(struct drm_armada_bufmgr *, /* Create a global name from a BO */ int drm_armada_bo_flink(struct drm_armada_bo *bo, uint32_t *name); +/* Create a dmabuf fd for the BO */ +int drm_armada_bo_to_fd(struct drm_armada_bo *bo, int *fd); + int drm_armada_bo_map(struct drm_armada_bo *bo); uint32_t drm_armada_bo_phys(struct drm_armada_bo *bo); void drm_armada_bo_get(struct drm_armada_bo *bo); |