linux/drivers/gpu/drm/loongson/lsdc_gem.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright (C) 2023 Loongson Technology Corporation Limited
 */

#include <linux/dma-buf.h>

#include <drm/drm_debugfs.h>
#include <drm/drm_file.h>
#include <drm/drm_gem.h>
#include <drm/drm_prime.h>

#include "lsdc_drv.h"
#include "lsdc_gem.h"
#include "lsdc_ttm.h"

static int lsdc_gem_prime_pin(struct drm_gem_object *obj)
{}

static void lsdc_gem_prime_unpin(struct drm_gem_object *obj)
{}

static struct sg_table *lsdc_gem_prime_get_sg_table(struct drm_gem_object *obj)
{}

static void lsdc_gem_object_free(struct drm_gem_object *obj)
{}

static int lsdc_gem_object_vmap(struct drm_gem_object *obj, struct iosys_map *map)
{}

static void lsdc_gem_object_vunmap(struct drm_gem_object *obj, struct iosys_map *map)
{}

static int lsdc_gem_object_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma)
{}

static const struct drm_gem_object_funcs lsdc_gem_object_funcs =;

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)
{}

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)
{}

int lsdc_dumb_map_offset(struct drm_file *filp, struct drm_device *ddev,
			 u32 handle, uint64_t *offset)
{}

void lsdc_gem_init(struct drm_device *ddev)
{}

int lsdc_show_buffer_object(struct seq_file *m, void *arg)
{}