uapi.h (8632987380765dee716d460640aa58d58d52998e) uapi.h (c6aeaf56f468a565f6d2f27325fc07d35cdcd3cb)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/* Copyright (c) 2020 NVIDIA Corporation */
3
4#ifndef _TEGRA_DRM_UAPI_H
5#define _TEGRA_DRM_UAPI_H
6
7#include <linux/dma-mapping.h>
8#include <linux/idr.h>

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

22 /* New UAPI state */
23 struct xarray contexts;
24 struct xarray syncpoints;
25};
26
27struct tegra_drm_mapping {
28 struct kref ref;
29
1/* SPDX-License-Identifier: GPL-2.0-only */
2/* Copyright (c) 2020 NVIDIA Corporation */
3
4#ifndef _TEGRA_DRM_UAPI_H
5#define _TEGRA_DRM_UAPI_H
6
7#include <linux/dma-mapping.h>
8#include <linux/idr.h>

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

22 /* New UAPI state */
23 struct xarray contexts;
24 struct xarray syncpoints;
25};
26
27struct tegra_drm_mapping {
28 struct kref ref;
29
30 struct device *dev;
30 struct host1x_bo_mapping *map;
31 struct host1x_bo *bo;
31 struct host1x_bo *bo;
32 struct sg_table *sgt;
33 enum dma_data_direction direction;
32
34 dma_addr_t iova;
35 dma_addr_t iova_end;
36};
37
38int tegra_drm_ioctl_channel_open(struct drm_device *drm, void *data,
39 struct drm_file *file);
40int tegra_drm_ioctl_channel_close(struct drm_device *drm, void *data,
41 struct drm_file *file);

--- 17 unchanged lines hidden ---
33 dma_addr_t iova;
34 dma_addr_t iova_end;
35};
36
37int tegra_drm_ioctl_channel_open(struct drm_device *drm, void *data,
38 struct drm_file *file);
39int tegra_drm_ioctl_channel_close(struct drm_device *drm, void *data,
40 struct drm_file *file);

--- 17 unchanged lines hidden ---