Merge tag 'iommu-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
[linux/fpc-iii.git] / include / drm / drm_gem_ttm_helper.h
blob7c6d874910b89b358d953d17987430baa7770132
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #ifndef DRM_GEM_TTM_HELPER_H
4 #define DRM_GEM_TTM_HELPER_H
6 #include <linux/kernel.h>
8 #include <drm/drm_gem.h>
9 #include <drm/drm_device.h>
10 #include <drm/ttm/ttm_bo_api.h>
11 #include <drm/ttm/ttm_bo_driver.h>
13 struct dma_buf_map;
15 #define drm_gem_ttm_of_gem(gem_obj) \
16 container_of(gem_obj, struct ttm_buffer_object, base)
18 void drm_gem_ttm_print_info(struct drm_printer *p, unsigned int indent,
19 const struct drm_gem_object *gem);
20 int drm_gem_ttm_vmap(struct drm_gem_object *gem,
21 struct dma_buf_map *map);
22 void drm_gem_ttm_vunmap(struct drm_gem_object *gem,
23 struct dma_buf_map *map);
24 int drm_gem_ttm_mmap(struct drm_gem_object *gem,
25 struct vm_area_struct *vma);
27 #endif