linux/drivers/media/platform/st/stm32/dma2d/dma2d-regs.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * ST stm32 Chrom-Art - 2D Graphics Accelerator Driver
 *
 * Copyright (c) 2021 Dillon Min
 * Dillon Min, <[email protected]>
 *
 * based on s5p-g2d
 *
 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
 * Kamil Debski, <[email protected]>
 */

#ifndef __DMA2D_REGS_H__
#define __DMA2D_REGS_H__

#define DMA2D_CR_REG
#define CR_MODE_MASK
#define CR_MODE_SHIFT
#define CR_M2M
#define CR_M2M_PFC
#define CR_M2M_BLEND
#define CR_R2M
#define CR_CEIE
#define CR_CTCIE
#define CR_CAEIE
#define CR_TWIE
#define CR_TCIE
#define CR_TEIE
#define CR_ABORT
#define CR_SUSP
#define CR_START

#define DMA2D_ISR_REG
#define ISR_CEIF
#define ISR_CTCIF
#define ISR_CAEIF
#define ISR_TWIF
#define ISR_TCIF
#define ISR_TEIF

#define DMA2D_IFCR_REG
#define IFCR_CCEIF
#define IFCR_CCTCIF
#define IFCR_CAECIF
#define IFCR_CTWIF
#define IFCR_CTCIF
#define IFCR_CTEIF

#define DMA2D_FGMAR_REG
#define DMA2D_FGOR_REG
#define FGOR_LO_MASK

#define DMA2D_BGMAR_REG
#define DMA2D_BGOR_REG
#define BGOR_LO_MASK

#define DMA2D_FGPFCCR_REG
#define FGPFCCR_ALPHA_MASK
#define FGPFCCR_AM_MASK
#define FGPFCCR_CS_MASK
#define FGPFCCR_START
#define FGPFCCR_CCM_RGB888
#define FGPFCCR_CM_MASK

#define DMA2D_FGCOLR_REG
#define FGCOLR_REG_MASK
#define FGCOLR_GREEN_MASK
#define FGCOLR_BLUE_MASK

#define DMA2D_BGPFCCR_REG
#define BGPFCCR_ALPHA_MASK
#define BGPFCCR_AM_MASK
#define BGPFCCR_CS_MASK
#define BGPFCCR_START
#define BGPFCCR_CCM_RGB888
#define BGPFCCR_CM_MASK

#define DMA2D_BGCOLR_REG
#define BGCOLR_REG_MASK
#define BGCOLR_GREEN_MASK
#define BGCOLR_BLUE_MASK

#define DMA2D_OPFCCR_REG
#define OPFCCR_CM_MASK

#define DMA2D_OCOLR_REG
#define OCOLR_ALPHA_MASK
#define OCOLR_RED_MASK
#define OCOLR_GREEN_MASK
#define OCOLR_BLUE_MASK

#define DMA2D_OMAR_REG

#define DMA2D_OOR_REG
#define OOR_LO_MASK

#define DMA2D_NLR_REG
#define NLR_PL_MASK
#define NLR_NL_MASK

/* Hardware limits */
#define MAX_WIDTH
#define MAX_HEIGHT

#define DEFAULT_WIDTH
#define DEFAULT_HEIGHT
#define DEFAULT_SIZE

#define CM_MODE_ARGB8888
#define CM_MODE_ARGB4444
#define CM_MODE_A4
#endif /* __DMA2D_REGS_H__ */