linux/drivers/media/platform/samsung/s5p-g2d/g2d.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Samsung S5P G2D - 2D Graphics Accelerator Driver
 *
 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
 * Kamil Debski, <[email protected]>
 */

#include <linux/module.h>
#include <linux/fs.h>
#include <linux/timer.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/clk.h>
#include <linux/interrupt.h>
#include <linux/of.h>

#include <linux/platform_device.h>
#include <media/v4l2-mem2mem.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>
#include <media/videobuf2-v4l2.h>
#include <media/videobuf2-dma-contig.h>

#include "g2d.h"
#include "g2d-regs.h"

#define fh2ctx(__fh)

static struct g2d_fmt formats[] =;
#define NUM_FORMATS

static struct g2d_frame def_frame =;

static struct g2d_fmt *find_fmt(struct v4l2_format *f)
{}


static struct g2d_frame *get_frame(struct g2d_ctx *ctx,
				   enum v4l2_buf_type type)
{}

static int g2d_queue_setup(struct vb2_queue *vq,
			   unsigned int *nbuffers, unsigned int *nplanes,
			   unsigned int sizes[], struct device *alloc_devs[])
{}

static int g2d_buf_prepare(struct vb2_buffer *vb)
{}

static void g2d_buf_queue(struct vb2_buffer *vb)
{}

static const struct vb2_ops g2d_qops =;

static int queue_init(void *priv, struct vb2_queue *src_vq,
						struct vb2_queue *dst_vq)
{}

static int g2d_s_ctrl(struct v4l2_ctrl *ctrl)
{}

static const struct v4l2_ctrl_ops g2d_ctrl_ops =;

static int g2d_setup_ctrls(struct g2d_ctx *ctx)
{}

static int g2d_open(struct file *file)
{}

static int g2d_release(struct file *file)
{}


static int vidioc_querycap(struct file *file, void *priv,
				struct v4l2_capability *cap)
{}

static int vidioc_enum_fmt(struct file *file, void *prv, struct v4l2_fmtdesc *f)
{}

static int vidioc_g_fmt(struct file *file, void *prv, struct v4l2_format *f)
{}

static int vidioc_try_fmt(struct file *file, void *prv, struct v4l2_format *f)
{}

static int vidioc_s_fmt(struct file *file, void *prv, struct v4l2_format *f)
{}

static int vidioc_g_selection(struct file *file, void *prv,
			      struct v4l2_selection *s)
{}

static int vidioc_try_selection(struct file *file, void *prv,
				const struct v4l2_selection *s)
{}

static int vidioc_s_selection(struct file *file, void *prv,
			      struct v4l2_selection *s)
{}

static void device_run(void *prv)
{}

static irqreturn_t g2d_isr(int irq, void *prv)
{}

static const struct v4l2_file_operations g2d_fops =;

static const struct v4l2_ioctl_ops g2d_ioctl_ops =;

static const struct video_device g2d_videodev =;

static const struct v4l2_m2m_ops g2d_m2m_ops =;

static const struct of_device_id exynos_g2d_match[];

static int g2d_probe(struct platform_device *pdev)
{}

static void g2d_remove(struct platform_device *pdev)
{}

static struct g2d_variant g2d_drvdata_v3x =;

static struct g2d_variant g2d_drvdata_v4x =;

static const struct of_device_id exynos_g2d_match[] =;
MODULE_DEVICE_TABLE(of, exynos_g2d_match);

static struct platform_driver g2d_pdrv =;

module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();