mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-29 10:26:00 -04:00
Replace the open-coded lsdc_dumb_map_offset() with the generic drm_gem_ttm_dumb_map_offset() helper, which is functionally identical. This removes unnecessary boilerplate and aligns with the DRM convention for TTM-based drivers. Signed-off-by: Amin GATTOUT <amin.gattout@gmail.com> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patch.msgid.link/20260308-master-v1-1-af32d71c8a1d@gmail.com
34 lines
792 B
C
34 lines
792 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2023 Loongson Technology Corporation Limited
|
|
*/
|
|
|
|
#ifndef __LSDC_GEM_H__
|
|
#define __LSDC_GEM_H__
|
|
|
|
#include <drm/drm_device.h>
|
|
#include <drm/drm_gem.h>
|
|
|
|
struct drm_gem_object *
|
|
lsdc_prime_import_sg_table(struct drm_device *ddev,
|
|
struct dma_buf_attachment *attach,
|
|
struct sg_table *sg);
|
|
|
|
|
|
int lsdc_dumb_create(struct drm_file *file,
|
|
struct drm_device *ddev,
|
|
struct drm_mode_create_dumb *args);
|
|
|
|
void lsdc_gem_init(struct drm_device *ddev);
|
|
int lsdc_show_buffer_object(struct seq_file *m, void *arg);
|
|
|
|
struct drm_gem_object *
|
|
lsdc_gem_object_create(struct drm_device *ddev,
|
|
u32 domain,
|
|
size_t size,
|
|
bool kerenl,
|
|
struct sg_table *sg,
|
|
struct dma_resv *resv);
|
|
|
|
#endif
|