| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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. |
|---|
| 12 | 4 | */ |
|---|
| 13 | 5 | |
|---|
| 14 | 6 | #ifndef _MTK_DRM_GEM_H_ |
|---|
| .. | .. |
|---|
| 37 | 29 | dma_addr_t dma_addr; |
|---|
| 38 | 30 | unsigned long dma_attrs; |
|---|
| 39 | 31 | struct sg_table *sg; |
|---|
| 32 | + struct page **pages; |
|---|
| 40 | 33 | }; |
|---|
| 41 | 34 | |
|---|
| 42 | 35 | #define to_mtk_gem_obj(x) container_of(x, struct mtk_drm_gem_obj, base) |
|---|
| .. | .. |
|---|
| 52 | 45 | struct sg_table *mtk_gem_prime_get_sg_table(struct drm_gem_object *obj); |
|---|
| 53 | 46 | struct drm_gem_object *mtk_gem_prime_import_sg_table(struct drm_device *dev, |
|---|
| 54 | 47 | 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); |
|---|
| 55 | 50 | |
|---|
| 56 | 51 | #endif |
|---|