diff options
author | Mikko Perttunen <mperttunen@nvidia.com> | 2021-06-10 14:04:51 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2021-08-10 18:04:05 +0300 |
commit | d7c591bc1a3f23d605b43ac5b207e378d02b01ca (patch) | |
tree | fb19ecf42f862b0cbe68defd4c52d6314816912b /drivers/gpu/drm/tegra/drm.h | |
parent | e0f2977c35733fcccafdabcc02bf4f6ddf7f438d (diff) | |
download | linux-d7c591bc1a3f23d605b43ac5b207e378d02b01ca.tar.xz |
drm/tegra: Implement new UAPI
Implement the non-submission parts of the new UAPI, including
channel management and memory mapping. The UAPI is under the
CONFIG_DRM_TEGRA_STAGING config flag for now.
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.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.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/drm.h b/drivers/gpu/drm/tegra/drm.h index 536861017d24..8b28327c931c 100644 --- a/drivers/gpu/drm/tegra/drm.h +++ b/drivers/gpu/drm/tegra/drm.h @@ -64,12 +64,22 @@ struct tegra_drm { struct tegra_display_hub *hub; }; +static inline struct host1x *tegra_drm_to_host1x(struct tegra_drm *tegra) +{ + return dev_get_drvdata(tegra->drm->dev->parent); +} + struct tegra_drm_client; struct tegra_drm_context { struct tegra_drm_client *client; struct host1x_channel *channel; + + /* Only used by legacy UAPI. */ unsigned int id; + + /* Only used by new UAPI. */ + struct xarray mappings; }; struct tegra_drm_client_ops { |