aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/gem.h
diff options
context:
space:
mode:
authorMikko Perttunen <mperttunen@nvidia.com>2021-06-10 14:04:47 +0300
committerThierry Reding <treding@nvidia.com>2021-08-10 14:44:31 +0200
commitf51632cc0ed35b42d5ca1793e364e5942b236ae8 (patch)
tree533462abb4690ca61d1cf263e8656ef6b238b6a8 /drivers/gpu/drm/tegra/gem.h
parentgpu: host1x: Add option to skip firewall for a job (diff)
downloadlinux-dev-f51632cc0ed35b42d5ca1793e364e5942b236ae8.tar.xz
linux-dev-f51632cc0ed35b42d5ca1793e364e5942b236ae8.zip
drm/tegra: Extract tegra_gem_lookup()
The static function host1x_bo_lookup() in drm.c is also useful elsewhere. Extract it as tegra_gem_lookup() in gem.c. Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/gem.h')
-rw-r--r--drivers/gpu/drm/tegra/gem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/gem.h b/drivers/gpu/drm/tegra/gem.h
index c15fd99d6cb2..cb5146a67668 100644
--- a/drivers/gpu/drm/tegra/gem.h
+++ b/drivers/gpu/drm/tegra/gem.h
@@ -80,4 +80,6 @@ struct dma_buf *tegra_gem_prime_export(struct drm_gem_object *gem,
struct drm_gem_object *tegra_gem_prime_import(struct drm_device *drm,
struct dma_buf *buf);
+struct host1x_bo *tegra_gem_lookup(struct drm_file *file, u32 handle);
+
#endif