linux/drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c

/*
 * SPDX-License-Identifier: MIT
 *
 * Copyright © 2016 Intel Corporation
 */

#include <linux/vmalloc.h>
#include "mock_dmabuf.h"

static struct sg_table *mock_map_dma_buf(struct dma_buf_attachment *attachment,
					 enum dma_data_direction dir)
{}

static void mock_unmap_dma_buf(struct dma_buf_attachment *attachment,
			       struct sg_table *st,
			       enum dma_data_direction dir)
{}

static void mock_dmabuf_release(struct dma_buf *dma_buf)
{}

static int mock_dmabuf_vmap(struct dma_buf *dma_buf, struct iosys_map *map)
{}

static void mock_dmabuf_vunmap(struct dma_buf *dma_buf, struct iosys_map *map)
{}

static int mock_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma)
{}

static const struct dma_buf_ops mock_dmabuf_ops =;

static struct dma_buf *mock_dmabuf(int npages)
{}