aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Reding2014-11-27 08:32:43 -0600
committerThierry Reding2014-11-27 10:20:32 -0600
commitf99522e678dbbaffeca9462a8edcbe900574dc12 (patch)
tree32cceb8018648474e208c12056f80367282e32b9 /tegra/tegra.h
parentd3ad65db4215f5fb5419d78a14c12833d5ed150a (diff)
downloadexternal-libdrm-f99522e678dbbaffeca9462a8edcbe900574dc12.tar.gz
external-libdrm-f99522e678dbbaffeca9462a8edcbe900574dc12.tar.xz
external-libdrm-f99522e678dbbaffeca9462a8edcbe900574dc12.zip
tegra: Implement drm_tegra_bo_{get,set}_tiling()
These two functions are simple wrappers around the corresponding IOCTLs and operate on drm_tegra_bo objects. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'tegra/tegra.h')
-rw-r--r--tegra/tegra.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tegra/tegra.h b/tegra/tegra.h
index a8624180..31b0995a 100644
--- a/tegra/tegra.h
+++ b/tegra/tegra.h
@@ -47,4 +47,14 @@ int drm_tegra_bo_unmap(struct drm_tegra_bo *bo);
47int drm_tegra_bo_get_flags(struct drm_tegra_bo *bo, uint32_t *flags); 47int drm_tegra_bo_get_flags(struct drm_tegra_bo *bo, uint32_t *flags);
48int drm_tegra_bo_set_flags(struct drm_tegra_bo *bo, uint32_t flags); 48int drm_tegra_bo_set_flags(struct drm_tegra_bo *bo, uint32_t flags);
49 49
50struct drm_tegra_bo_tiling {
51 uint32_t mode;
52 uint32_t value;
53};
54
55int drm_tegra_bo_get_tiling(struct drm_tegra_bo *bo,
56 struct drm_tegra_bo_tiling *tiling);
57int drm_tegra_bo_set_tiling(struct drm_tegra_bo *bo,
58 const struct drm_tegra_bo_tiling *tiling);
59
50#endif /* __DRM_TEGRA_H__ */ 60#endif /* __DRM_TEGRA_H__ */