summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/drm.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2018-05-16 17:05:04 +0200
committerThierry Reding <treding@nvidia.com>2018-05-18 21:59:51 +0200
commitf3b3cfcc3f09490ffb8e1e997e8a8695a6a55b1b (patch)
treead3f3283aa9b79cd2a4d25e44b41d4a9e7afce0d /drivers/gpu/drm/tegra/drm.h
parent995c5a509fb032ddd83eff4f3772c7fc8ff0b7ec (diff)
downloadlinux-stable-f3b3cfcc3f09490ffb8e1e997e8a8695a6a55b1b.tar.gz
linux-stable-f3b3cfcc3f09490ffb8e1e997e8a8695a6a55b1b.tar.bz2
linux-stable-f3b3cfcc3f09490ffb8e1e997e8a8695a6a55b1b.zip
drm/tegra: Track client version
Userspace needs to know the version of the interface implemented by a client so it can create the proper command streams. Allow individual drivers to store this version along with the client so that it can be returned to userspace upon opening a channel. Acked-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/drm.h')
-rw-r--r--drivers/gpu/drm/tegra/drm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/drm.h b/drivers/gpu/drm/tegra/drm.h
index f47a60592334..92d248784396 100644
--- a/drivers/gpu/drm/tegra/drm.h
+++ b/drivers/gpu/drm/tegra/drm.h
@@ -91,6 +91,7 @@ struct tegra_drm_client {
struct host1x_client base;
struct list_head list;
+ unsigned int version;
const struct tegra_drm_client_ops *ops;
};