linux/drivers/media/platform/qcom/camss/camss-csid-4-1.c

// SPDX-License-Identifier: GPL-2.0
/*
 * camss-csid-4-1.c
 *
 * Qualcomm MSM Camera Subsystem - CSID (CSI Decoder) Module
 *
 * Copyright (C) 2020 Linaro Ltd.
 */

#include <linux/completion.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/of.h>

#include "camss-csid.h"
#include "camss-csid-gen1.h"
#include "camss.h"

#define CAMSS_CSID_HW_VERSION
#define CAMSS_CSID_CORE_CTRL_0
#define CAMSS_CSID_CORE_CTRL_1
#define CAMSS_CSID_RST_CMD
#define CAMSS_CSID_CID_LUT_VC_n(n)
#define CAMSS_CSID_CID_n_CFG(n)
#define CAMSS_CSID_CID_n_CFG_ISPIF_EN
#define CAMSS_CSID_CID_n_CFG_RDI_EN
#define CAMSS_CSID_CID_n_CFG_DECODE_FORMAT_SHIFT
#define CAMSS_CSID_CID_n_CFG_PLAIN_FORMAT_8
#define CAMSS_CSID_CID_n_CFG_PLAIN_FORMAT_16
#define CAMSS_CSID_CID_n_CFG_PLAIN_ALIGNMENT_LSB
#define CAMSS_CSID_CID_n_CFG_PLAIN_ALIGNMENT_MSB
#define CAMSS_CSID_CID_n_CFG_RDI_MODE_RAW_DUMP
#define CAMSS_CSID_CID_n_CFG_RDI_MODE_PLAIN_PACKING
#define CAMSS_CSID_IRQ_CLEAR_CMD
#define CAMSS_CSID_IRQ_MASK
#define CAMSS_CSID_IRQ_STATUS
#define CAMSS_CSID_TG_CTRL
#define CAMSS_CSID_TG_CTRL_DISABLE
#define CAMSS_CSID_TG_CTRL_ENABLE
#define CAMSS_CSID_TG_VC_CFG
#define CAMSS_CSID_TG_VC_CFG_H_BLANKING
#define CAMSS_CSID_TG_VC_CFG_V_BLANKING
#define CAMSS_CSID_TG_DT_n_CGG_0(n)
#define CAMSS_CSID_TG_DT_n_CGG_1(n)
#define CAMSS_CSID_TG_DT_n_CGG_2(n)

static void csid_configure_stream(struct csid_device *csid, u8 enable)
{}

static int csid_configure_testgen_pattern(struct csid_device *csid, s32 val)
{}

static u32 csid_hw_version(struct csid_device *csid)
{}

static irqreturn_t csid_isr(int irq, void *dev)
{}

static int csid_reset(struct csid_device *csid)
{}

static u32 csid_src_pad_code(struct csid_device *csid, u32 sink_code,
			     unsigned int match_format_idx, u32 match_code)
{}

static void csid_subdev_init(struct csid_device *csid)
{}

const struct csid_hw_ops csid_ops_4_1 =;