linux/drivers/staging/media/meson/vdec/dos_regs.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (C) 2018 BayLibre, SAS
 * Author: Maxime Jourdan <[email protected]>
 */

#ifndef __MESON_VDEC_DOS_REGS_H_
#define __MESON_VDEC_DOS_REGS_H_

/* DOS registers */
#define VDEC_ASSIST_AMR1_INT8

#define ASSIST_MBOX1_CLR_REG
#define ASSIST_MBOX1_MASK

#define MPSR
#define MCPU_INTR_MSK
#define CPSR

#define IMEM_DMA_CTRL
#define IMEM_DMA_ADR
#define IMEM_DMA_COUNT
#define LMEM_DMA_CTRL

#define MC_STATUS0
#define MC_CTRL1

#define PSCALE_RST
#define PSCALE_CTRL
#define PSCALE_BMEM_ADDR
#define PSCALE_BMEM_DAT

#define DBLK_CTRL
#define DBLK_STATUS

#define GCLK_EN
#define MDEC_PIC_DC_CTRL
#define MDEC_PIC_DC_STATUS
#define ANC0_CANVAS_ADDR
#define MDEC_PIC_DC_THRESH

/* Firmware interface registers */
#define AV_SCRATCH_0
#define AV_SCRATCH_1
#define AV_SCRATCH_2
#define AV_SCRATCH_3
#define AV_SCRATCH_4
#define AV_SCRATCH_5
#define AV_SCRATCH_6
#define AV_SCRATCH_7
#define AV_SCRATCH_8
#define AV_SCRATCH_9
#define AV_SCRATCH_A
#define AV_SCRATCH_B
#define AV_SCRATCH_C
#define AV_SCRATCH_D
#define AV_SCRATCH_E
#define AV_SCRATCH_F
#define AV_SCRATCH_G
#define AV_SCRATCH_H
#define AV_SCRATCH_I
#define AV_SCRATCH_J
#define AV_SCRATCH_K
#define AV_SCRATCH_L

#define MPEG1_2_REG
#define PIC_HEAD_INFO
#define POWER_CTL_VLD
#define M4_CONTROL_REG

/* Stream Buffer (stbuf) regs */
#define VLD_MEM_VIFIFO_START_PTR
#define VLD_MEM_VIFIFO_CURR_PTR
#define VLD_MEM_VIFIFO_END_PTR
#define VLD_MEM_VIFIFO_CONTROL
	#define MEM_FIFO_CNT_BIT
	#define MEM_FILL_ON_LEVEL
	#define MEM_CTRL_EMPTY_EN
	#define MEM_CTRL_FILL_EN
#define VLD_MEM_VIFIFO_WP
#define VLD_MEM_VIFIFO_RP
#define VLD_MEM_VIFIFO_LEVEL
#define VLD_MEM_VIFIFO_BUF_CNTL
	#define MEM_BUFCTRL_MANUAL
#define VLD_MEM_VIFIFO_WRAP_COUNT

#define DCAC_DMA_CTRL

#define DOS_SW_RESET0
#define DOS_GCLK_EN0
#define DOS_GEN_CTRL0
#define DOS_MEM_PD_VDEC
#define DOS_MEM_PD_HEVC
#define DOS_SW_RESET3
#define DOS_GCLK_EN3
#define DOS_VDEC_MCRCC_STALL_CTRL

#endif