.. | .. |
---|
163 | 163 | int rknpu_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf); |
---|
164 | 164 | #endif |
---|
165 | 165 | |
---|
| 166 | +int rknpu_gem_mmap_obj(struct drm_gem_object *obj, struct vm_area_struct *vma); |
---|
| 167 | + |
---|
166 | 168 | /* set vm_flags and we can change the vm attribute to other one at here. */ |
---|
167 | 169 | int rknpu_gem_mmap(struct file *filp, struct vm_area_struct *vma); |
---|
168 | 170 | |
---|
.. | .. |
---|
176 | 178 | rknpu_gem_prime_import_sg_table(struct drm_device *dev, |
---|
177 | 179 | struct dma_buf_attachment *attach, |
---|
178 | 180 | struct sg_table *sgt); |
---|
| 181 | +#if KERNEL_VERSION(6, 1, 0) > LINUX_VERSION_CODE |
---|
179 | 182 | void *rknpu_gem_prime_vmap(struct drm_gem_object *obj); |
---|
180 | 183 | void rknpu_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr); |
---|
| 184 | +#else |
---|
| 185 | +int rknpu_gem_prime_vmap(struct drm_gem_object *obj, struct iosys_map *map); |
---|
| 186 | +void rknpu_gem_prime_vunmap(struct drm_gem_object *obj, struct iosys_map *map); |
---|
| 187 | +#endif |
---|
181 | 188 | int rknpu_gem_prime_mmap(struct drm_gem_object *obj, |
---|
182 | 189 | struct vm_area_struct *vma); |
---|
183 | 190 | |
---|