forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/gpu/drm/mediatek/mtk_drm_gem.h
....@@ -1,14 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (c) 2015 MediaTek Inc.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- * GNU General Public License for more details.
124 */
135
146 #ifndef _MTK_DRM_GEM_H_
....@@ -37,6 +29,7 @@
3729 dma_addr_t dma_addr;
3830 unsigned long dma_attrs;
3931 struct sg_table *sg;
32
+ struct page **pages;
4033 };
4134
4235 #define to_mtk_gem_obj(x) container_of(x, struct mtk_drm_gem_obj, base)
....@@ -52,5 +45,7 @@
5245 struct sg_table *mtk_gem_prime_get_sg_table(struct drm_gem_object *obj);
5346 struct drm_gem_object *mtk_gem_prime_import_sg_table(struct drm_device *dev,
5447 struct dma_buf_attachment *attach, struct sg_table *sg);
48
+void *mtk_drm_gem_prime_vmap(struct drm_gem_object *obj);
49
+void mtk_drm_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr);
5550
5651 #endif