aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Paul2015-02-04 12:59:05 -0600
committerSean Paul2015-02-04 22:21:56 -0600
commit5711d56833c1f071d35dcdb9b66df552b10d4dac (patch)
tree9048346976f3e6998ee67e468039307b78d1b0d6 /tegra/tegra.h
parent3880eeda7dd7b24fb075f97a0dc59f357e68c345 (diff)
downloadexternal-libdrm-5711d56833c1f071d35dcdb9b66df552b10d4dac.tar.gz
external-libdrm-5711d56833c1f071d35dcdb9b66df552b10d4dac.tar.xz
external-libdrm-5711d56833c1f071d35dcdb9b66df552b10d4dac.zip
libdrm: tegra: Add funcs to add/fetch name
Add functions within the tegra driver to add a name to a bo as well as fetch a bo from name. Signed-off-by: Sean Paul <seanpaul@chromium.org> Change-Id: I316a3920541040fe478eb5b07c1ef00a3a597e68
Diffstat (limited to 'tegra/tegra.h')
-rw-r--r--tegra/tegra.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tegra/tegra.h b/tegra/tegra.h
index 31b0995a..e10eab71 100644
--- a/tegra/tegra.h
+++ b/tegra/tegra.h
@@ -38,6 +38,11 @@ int drm_tegra_bo_new(struct drm_tegra_bo **bop, struct drm_tegra *drm,
38 uint32_t flags, uint32_t size); 38 uint32_t flags, uint32_t size);
39int drm_tegra_bo_wrap(struct drm_tegra_bo **bop, struct drm_tegra *drm, 39int drm_tegra_bo_wrap(struct drm_tegra_bo **bop, struct drm_tegra *drm,
40 uint32_t handle, uint32_t flags, uint32_t size); 40 uint32_t handle, uint32_t flags, uint32_t size);
41
42int drm_tegra_bo_name_ref(struct drm_tegra *drm, uint32_t name, uint32_t size,
43 struct drm_tegra_bo **bop);
44int drm_tegra_bo_name_get(struct drm_tegra_bo *bo, uint32_t *name);
45
41struct drm_tegra_bo *drm_tegra_bo_ref(struct drm_tegra_bo *bo); 46struct drm_tegra_bo *drm_tegra_bo_ref(struct drm_tegra_bo *bo);
42void drm_tegra_bo_unref(struct drm_tegra_bo *bo); 47void drm_tegra_bo_unref(struct drm_tegra_bo *bo);
43int drm_tegra_bo_get_handle(struct drm_tegra_bo *bo, uint32_t *handle); 48int drm_tegra_bo_get_handle(struct drm_tegra_bo *bo, uint32_t *handle);