linux/drivers/gpu/drm/hisilicon/kirin/kirin_ade_reg.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2016 Linaro Limited.
 * Copyright (c) 2014-2016 HiSilicon Limited.
 */

#ifndef __KIRIN_ADE_REG_H__
#define __KIRIN_ADE_REG_H__

/*
 * ADE Registers
 */
#define MASK(x)

#define ADE_CTRL
#define FRM_END_START_OFST
#define FRM_END_START_MASK
#define AUTO_CLK_GATE_EN_OFST
#define AUTO_CLK_GATE_EN
#define ADE_DISP_SRC_CFG
#define ADE_CTRL1
#define ADE_EN
#define ADE_DISABLE
#define ADE_ENABLE
/* reset and reload regs */
#define ADE_SOFT_RST_SEL(x)
#define ADE_RELOAD_DIS(x)
#define RDMA_OFST
#define CLIP_OFST
#define SCL_OFST
#define CTRAN_OFST
#define OVLY_OFST
/* channel regs */
#define RD_CH_CTRL(x)
#define RD_CH_ADDR(x)
#define RD_CH_SIZE(x)
#define RD_CH_STRIDE(x)
#define RD_CH_SPACE(x)
#define RD_CH_EN(x)
/* overlay regs */
#define ADE_OVLY1_TRANS_CFG
#define ADE_OVLY_CTL
#define ADE_OVLY_CH_XY0(x)
#define ADE_OVLY_CH_XY1(x)
#define ADE_OVLY_CH_CTL(x)
#define ADE_OVLY_OUTPUT_SIZE(x)
#define OUTPUT_XSIZE_OFST
#define ADE_OVLYX_CTL(x)
#define CH_OVLY_SEL_OFST(x)
#define CH_OVLY_SEL_MASK
#define CH_OVLY_SEL_VAL(x)
#define CH_ALP_MODE_OFST
#define CH_ALP_SEL_OFST
#define CH_UNDER_ALP_SEL_OFST
#define CH_EN_OFST
#define CH_ALP_GBL_OFST
#define CH_SEL_OFST
/* ctran regs */
#define ADE_CTRAN_DIS(x)
#define CTRAN_BYPASS_ON
#define CTRAN_BYPASS_OFF
#define ADE_CTRAN_IMAGE_SIZE(x)
/* clip regs */
#define ADE_CLIP_DISABLE(x)
#define ADE_CLIP_SIZE0(x)
#define ADE_CLIP_SIZE1(x)

/*
 * LDI Registers
 */
#define LDI_HRZ_CTRL0
#define HBP_OFST
#define LDI_HRZ_CTRL1
#define LDI_VRT_CTRL0
#define VBP_OFST
#define LDI_VRT_CTRL1
#define LDI_PLR_CTRL
#define FLAG_NVSYNC
#define FLAG_NHSYNC
#define FLAG_NPIXCLK
#define FLAG_NDE
#define LDI_DSP_SIZE
#define VSIZE_OFST
#define LDI_INT_EN
#define FRAME_END_INT_EN_OFST
#define LDI_CTRL
#define BPP_OFST
#define DATA_GATE_EN
#define LDI_EN
#define LDI_MSK_INT
#define LDI_INT_CLR
#define LDI_WORK_MODE
#define LDI_HDMI_DSI_GT

/*
 * ADE media bus service regs
 */
#define ADE0_QOSGENERATOR_MODE
#define QOSGENERATOR_MODE_MASK
#define ADE0_QOSGENERATOR_EXTCONTROL
#define SOCKET_QOS_EN
#define ADE1_QOSGENERATOR_MODE
#define ADE1_QOSGENERATOR_EXTCONTROL

/*
 * ADE regs relevant enums
 */
enum frame_end_start {};

enum ade_fb_format {};

enum ade_channel {};

enum ade_scale {};

enum ade_ctran {};

enum ade_overlay {};

enum ade_alpha_mode {};

enum ade_alpha_blending_mode {};

/*
 * LDI regs relevant enums
 */
enum dsi_pclk_en {};

enum ldi_output_format {};

enum ldi_work_mode {};

enum ldi_input_source {};

/*
 * ADE media bus service relevant enums
 */
enum qos_generator_mode {};

/*
 * Register Write/Read Helper functions
 */
static inline void ade_update_bits(void __iomem *addr, u32 bit_start,
				   u32 mask, u32 val)
{}

#endif