linux/drivers/gpu/drm/sti/sti_vid.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (C) STMicroelectronics SA 2014
 * Author: Fabien Dessenne <[email protected]> for STMicroelectronics.
 */
#include <linux/seq_file.h>

#include <drm/drm_debugfs.h>
#include <drm/drm_file.h>
#include <drm/drm_print.h>

#include "sti_plane.h"
#include "sti_vid.h"
#include "sti_vtg.h"

/* Registers */
#define VID_CTL
#define VID_ALP
#define VID_CLF
#define VID_VPO
#define VID_VPS
#define VID_KEY1
#define VID_KEY2
#define VID_MPR0
#define VID_MPR1
#define VID_MPR2
#define VID_MPR3
#define VID_MST
#define VID_BC
#define VID_TINT
#define VID_CSAT

/* Registers values */
#define VID_CTL_IGNORE
#define VID_CTL_PSI_ENABLE
#define VID_ALP_OPAQUE
#define VID_BC_DFLT
#define VID_TINT_DFLT
#define VID_CSAT_DFLT
/* YCbCr to RGB BT709:
 * R = Y+1.5391Cr
 * G = Y-0.4590Cr-0.1826Cb
 * B = Y+1.8125Cb */
#define VID_MPR0_BT709
#define VID_MPR1_BT709
#define VID_MPR2_BT709
#define VID_MPR3_BT709
/* YCbCr to RGB BT709:
 * R = Y+1.3711Cr
 * G = Y-0.6992Cr-0.3359Cb
 * B = Y+1.7344Cb
 */
#define VID_MPR0_BT601
#define VID_MPR1_BT601
#define VID_MPR2_BT601
#define VID_MPR3_BT601

#define VID_MIN_HD_HEIGHT

#define DBGFS_DUMP(reg)

static void vid_dbg_ctl(struct seq_file *s, int val)
{}

static void vid_dbg_vpo(struct seq_file *s, int val)
{}

static void vid_dbg_vps(struct seq_file *s, int val)
{}

static void vid_dbg_mst(struct seq_file *s, int val)
{}

static int vid_dbg_show(struct seq_file *s, void *arg)
{}

static struct drm_info_list vid_debugfs_files[] =;

void vid_debugfs_init(struct sti_vid *vid, struct drm_minor *minor)
{}

void sti_vid_commit(struct sti_vid *vid,
		    struct drm_plane_state *state)
{}

void sti_vid_disable(struct sti_vid *vid)
{}

static void sti_vid_init(struct sti_vid *vid)
{}

struct sti_vid *sti_vid_create(struct device *dev, struct drm_device *drm_dev,
			       int id, void __iomem *baseaddr)
{}