Gerd Hoffmann | ff540b7 | 2019-09-04 07:47:35 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #ifndef DRM_GEM_TTM_HELPER_H |
| 4 | #define DRM_GEM_TTM_HELPER_H |
| 5 | |
| 6 | #include <linux/kernel.h> |
| 7 | |
| 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> |
| 12 | |
| 13 | #define drm_gem_ttm_of_gem(gem_obj) \ |
| 14 | container_of(gem_obj, struct ttm_buffer_object, base) |
| 15 | |
| 16 | void drm_gem_ttm_print_info(struct drm_printer *p, unsigned int indent, |
| 17 | const struct drm_gem_object *gem); |
Gerd Hoffmann | 231927d | 2019-10-16 13:52:00 +0200 | [diff] [blame] | 18 | int drm_gem_ttm_mmap(struct drm_gem_object *gem, |
| 19 | struct vm_area_struct *vma); |
Gerd Hoffmann | ff540b7 | 2019-09-04 07:47:35 +0200 | [diff] [blame] | 20 | |
| 21 | #endif |