.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) Fuzhou Rockchip Electronics Co.Ltd |
---|
3 | 4 | * Author:Mark Yao <mark.yao@rock-chips.com> |
---|
4 | | - * |
---|
5 | | - * This software is licensed under the terms of the GNU General Public |
---|
6 | | - * License version 2, as published by the Free Software Foundation, and |
---|
7 | | - * may be copied, distributed, and modified under those terms. |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope that it will be useful, |
---|
10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | | - * GNU General Public License for more details. |
---|
13 | 5 | */ |
---|
14 | 6 | |
---|
15 | 7 | #ifndef _ROCKCHIP_DRM_GEM_H |
---|
16 | 8 | #define _ROCKCHIP_DRM_GEM_H |
---|
| 9 | + |
---|
| 10 | +#include <linux/dma-direction.h> |
---|
17 | 11 | |
---|
18 | 12 | #define to_rockchip_obj(x) container_of(x, struct rockchip_gem_object, base) |
---|
19 | 13 | |
---|
.. | .. |
---|
29 | 23 | enum rockchip_gem_buf_type buf_type; |
---|
30 | 24 | |
---|
31 | 25 | void *kvaddr; |
---|
32 | | - void *cookie; |
---|
33 | 26 | dma_addr_t dma_addr; /* iova if iommu enable, otherwise physical address */ |
---|
34 | 27 | dma_addr_t dma_handle; /* physical address */ |
---|
35 | | - |
---|
36 | 28 | /* Used when IOMMU is disabled */ |
---|
37 | 29 | unsigned long dma_attrs; |
---|
38 | 30 | |
---|
.. | .. |
---|
68 | 60 | int rockchip_gem_dumb_create(struct drm_file *file_priv, |
---|
69 | 61 | struct drm_device *dev, |
---|
70 | 62 | struct drm_mode_create_dumb *args); |
---|
71 | | -int rockchip_gem_dumb_map_offset(struct drm_file *file_priv, |
---|
72 | | - struct drm_device *dev, uint32_t handle, |
---|
73 | | - uint64_t *offset); |
---|
74 | 63 | /* |
---|
75 | 64 | * request gem object creation and buffer allocation as the size |
---|
76 | 65 | * that it is calculated with framebuffer information such as width, |
---|
.. | .. |
---|
92 | 81 | int rockchip_gem_prime_end_cpu_access(struct drm_gem_object *obj, |
---|
93 | 82 | enum dma_data_direction dir); |
---|
94 | 83 | |
---|
95 | | -int rockchip_gem_prime_begin_cpu_access_partial(struct drm_gem_object *obj, |
---|
96 | | - enum dma_data_direction dir, |
---|
97 | | - unsigned int offset, |
---|
98 | | - unsigned int len); |
---|
99 | | - |
---|
100 | | -int rockchip_gem_prime_end_cpu_access_partial(struct drm_gem_object *obj, |
---|
101 | | - enum dma_data_direction dir, |
---|
102 | | - unsigned int offset, |
---|
103 | | - unsigned int len); |
---|
104 | | - |
---|
| 84 | +void rockchip_gem_get_ddr_info(void); |
---|
105 | 85 | #endif /* _ROCKCHIP_DRM_GEM_H */ |
---|