hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/gpu/drm/tegra/gem.h
....@@ -1,11 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Tegra host1x GEM implementation
34 *
45 * Copyright (c) 2012-2013, NVIDIA Corporation.
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
96 */
107
118 #ifndef __HOST1X_GEM_H
....@@ -14,7 +11,6 @@
1411 #include <linux/host1x.h>
1512
1613 #include <drm/drm.h>
17
-#include <drm/drmP.h>
1814 #include <drm/drm_gem.h>
1915
2016 #define TEGRA_BO_BOTTOM_UP (1 << 0)
....@@ -35,7 +31,7 @@
3531 struct host1x_bo base;
3632 unsigned long flags;
3733 struct sg_table *sgt;
38
- dma_addr_t paddr;
34
+ dma_addr_t iova;
3935 void *vaddr;
4036
4137 struct drm_mm_node *mm;
....@@ -73,8 +69,7 @@
7369 int __tegra_gem_mmap(struct drm_gem_object *gem, struct vm_area_struct *vma);
7470 int tegra_drm_mmap(struct file *file, struct vm_area_struct *vma);
7571
76
-struct dma_buf *tegra_gem_prime_export(struct drm_device *drm,
77
- struct drm_gem_object *gem,
72
+struct dma_buf *tegra_gem_prime_export(struct drm_gem_object *gem,
7873 int flags);
7974 struct drm_gem_object *tegra_gem_prime_import(struct drm_device *drm,
8075 struct dma_buf *buf);