From f99522e678dbbaffeca9462a8edcbe900574dc12 Mon Sep 17 00:00:00 2001 From: Thierry Reding Date: Thu, 27 Nov 2014 15:32:43 +0100 Subject: 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 --- tegra/tegra.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tegra/tegra.h') 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); int drm_tegra_bo_get_flags(struct drm_tegra_bo *bo, uint32_t *flags); int drm_tegra_bo_set_flags(struct drm_tegra_bo *bo, uint32_t flags); +struct drm_tegra_bo_tiling { + uint32_t mode; + uint32_t value; +}; + +int drm_tegra_bo_get_tiling(struct drm_tegra_bo *bo, + struct drm_tegra_bo_tiling *tiling); +int drm_tegra_bo_set_tiling(struct drm_tegra_bo *bo, + const struct drm_tegra_bo_tiling *tiling); + #endif /* __DRM_TEGRA_H__ */ -- cgit v1.2.3