linux/drivers/media/platform/samsung/s5p-g2d/g2d-regs.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Samsung S5P G2D - 2D Graphics Accelerator Driver
 *
 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
 * Kamil Debski, <[email protected]>
 */

/* General Registers */
#define SOFT_RESET_REG
#define INTEN_REG
#define INTC_PEND_REG
#define FIFO_STAT_REG
#define AXI_ID_MODE_REG
#define CACHECTL_REG
#define AXI_MODE_REG

/* Command Registers */
#define BITBLT_START_REG
#define BITBLT_COMMAND_REG

/* Parameter Setting Registers (Rotate & Direction) */
#define ROTATE_REG
#define SRC_MSK_DIRECT_REG
#define DST_PAT_DIRECT_REG

/* Parameter Setting Registers (Src) */
#define SRC_SELECT_REG
#define SRC_BASE_ADDR_REG
#define SRC_STRIDE_REG
#define SRC_COLOR_MODE_REG
#define SRC_LEFT_TOP_REG
#define SRC_RIGHT_BOTTOM_REG
#define SRC_SCALE_CTRL_REG
#define SRC_XSCALE_REG
#define SRC_YSCALE_REG

/* Parameter Setting Registers (Dest) */
#define DST_SELECT_REG
#define DST_BASE_ADDR_REG
#define DST_STRIDE_REG
#define DST_COLOR_MODE_REG
#define DST_LEFT_TOP_REG
#define DST_RIGHT_BOTTOM_REG

/* Parameter Setting Registers (Pattern) */
#define PAT_BASE_ADDR_REG
#define PAT_SIZE_REG
#define PAT_COLOR_MODE_REG
#define PAT_OFFSET_REG
#define PAT_STRIDE_REG

/* Parameter Setting Registers (Mask) */
#define MASK_BASE_ADDR_REG
#define MASK_STRIDE_REG

/* Parameter Setting Registers (Clipping Window) */
#define CW_LT_REG
#define CW_RB_REG

/* Parameter Setting Registers (ROP & Alpha Setting) */
#define THIRD_OPERAND_REG
#define ROP4_REG
#define ALPHA_REG

/* Parameter Setting Registers (Color) */
#define FG_COLOR_REG
#define BG_COLOR_REG
#define BS_COLOR_REG

/* Parameter Setting Registers (Color Key) */
#define SRC_COLORKEY_CTRL_REG
#define SRC_COLORKEY_DR_MIN_REG
#define SRC_COLORKEY_DR_MAX_REG
#define DST_COLORKEY_CTRL_REG
#define DST_COLORKEY_DR_MIN_REG
#define DST_COLORKEY_DR_MAX_REG

/* Color mode values */

#define ORDER_XRGB
#define ORDER_RGBX
#define ORDER_XBGR
#define ORDER_BGRX

#define MODE_XRGB_8888
#define MODE_ARGB_8888
#define MODE_RGB_565
#define MODE_XRGB_1555
#define MODE_ARGB_1555
#define MODE_XRGB_4444
#define MODE_ARGB_4444
#define MODE_PACKED_RGB_888

#define COLOR_MODE(o, m)

/* ROP4 operation values */
#define ROP4_COPY
#define ROP4_INVERT

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

#define G2D_TIMEOUT

#define DEFAULT_WIDTH
#define DEFAULT_HEIGHT

#define DEFAULT_SCALE_MODE

/* Command mode register values */
#define CMD_V3_ENABLE_STRETCH