drm.h (728d90bdc9e480dc93913e59a0aa3c896c7aa697) drm.h (aacdf19849734d1be5e407932228ae101ba5b92f)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2012 Avionic Design GmbH
4 * Copyright (C) 2012-2013 NVIDIA CORPORATION. All rights reserved.
5 */
6
7#ifndef HOST1X_DRM_H
8#define HOST1X_DRM_H 1

--- 86 unchanged lines hidden (view full) ---

95{
96 return container_of(client, struct tegra_drm_client, base);
97}
98
99int tegra_drm_register_client(struct tegra_drm *tegra,
100 struct tegra_drm_client *client);
101int tegra_drm_unregister_client(struct tegra_drm *tegra,
102 struct tegra_drm_client *client);
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2012 Avionic Design GmbH
4 * Copyright (C) 2012-2013 NVIDIA CORPORATION. All rights reserved.
5 */
6
7#ifndef HOST1X_DRM_H
8#define HOST1X_DRM_H 1

--- 86 unchanged lines hidden (view full) ---

95{
96 return container_of(client, struct tegra_drm_client, base);
97}
98
99int tegra_drm_register_client(struct tegra_drm *tegra,
100 struct tegra_drm_client *client);
101int tegra_drm_unregister_client(struct tegra_drm *tegra,
102 struct tegra_drm_client *client);
103struct iommu_group *host1x_client_iommu_attach(struct host1x_client *client,
104 bool shared);
105void host1x_client_iommu_detach(struct host1x_client *client,
106 struct iommu_group *group);
103int host1x_client_iommu_attach(struct host1x_client *client, bool shared);
104void host1x_client_iommu_detach(struct host1x_client *client);
107
108int tegra_drm_init(struct tegra_drm *tegra, struct drm_device *drm);
109int tegra_drm_exit(struct tegra_drm *tegra);
110
111void *tegra_drm_alloc(struct tegra_drm *tegra, size_t size, dma_addr_t *iova);
112void tegra_drm_free(struct tegra_drm *tegra, size_t size, void *virt,
113 dma_addr_t iova);
114

--- 80 unchanged lines hidden ---
105
106int tegra_drm_init(struct tegra_drm *tegra, struct drm_device *drm);
107int tegra_drm_exit(struct tegra_drm *tegra);
108
109void *tegra_drm_alloc(struct tegra_drm *tegra, size_t size, dma_addr_t *iova);
110void tegra_drm_free(struct tegra_drm *tegra, size_t size, void *virt,
111 dma_addr_t iova);
112

--- 80 unchanged lines hidden ---