mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 15:04:27 +08:00
a3185f91d0
Merge and cleanup the two headers into a single description of the object API. Also move all the documentation to the implementation and drop unnecessary includes from the header. No functional change. v2: minimal checkpatch.pl cleanup Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20221125102137.1801-4-christian.koenig@amd.com
30 lines
822 B
C
30 lines
822 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#ifndef DRM_GEM_TTM_HELPER_H
|
|
#define DRM_GEM_TTM_HELPER_H
|
|
|
|
#include <linux/container_of.h>
|
|
|
|
#include <drm/drm_device.h>
|
|
#include <drm/drm_gem.h>
|
|
#include <drm/ttm/ttm_bo.h>
|
|
|
|
struct iosys_map;
|
|
|
|
#define drm_gem_ttm_of_gem(gem_obj) \
|
|
container_of(gem_obj, struct ttm_buffer_object, base)
|
|
|
|
void drm_gem_ttm_print_info(struct drm_printer *p, unsigned int indent,
|
|
const struct drm_gem_object *gem);
|
|
int drm_gem_ttm_vmap(struct drm_gem_object *gem,
|
|
struct iosys_map *map);
|
|
void drm_gem_ttm_vunmap(struct drm_gem_object *gem,
|
|
struct iosys_map *map);
|
|
int drm_gem_ttm_mmap(struct drm_gem_object *gem,
|
|
struct vm_area_struct *vma);
|
|
|
|
int drm_gem_ttm_dumb_map_offset(struct drm_file *file, struct drm_device *dev,
|
|
uint32_t handle, uint64_t *offset);
|
|
|
|
#endif
|