linux/drivers/media/platform/samsung/exynos-gsc/gsc-regs.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2011 - 2012 Samsung Electronics Co., Ltd.
 *		http://www.samsung.com
 *
 * Register definition file for Samsung G-Scaler driver
 */

#ifndef REGS_GSC_H_
#define REGS_GSC_H_

/* G-Scaler enable */
#define GSC_ENABLE
#define GSC_ENABLE_OP_STATUS
#define GSC_ENABLE_SFR_UPDATE
#define GSC_ENABLE_ON

/* G-Scaler S/W reset */
#define GSC_SW_RESET
#define GSC_SW_RESET_SRESET

/* G-Scaler IRQ */
#define GSC_IRQ
#define GSC_IRQ_STATUS_OR_IRQ
#define GSC_IRQ_STATUS_FRM_DONE_IRQ
#define GSC_IRQ_FRMDONE_MASK
#define GSC_IRQ_ENABLE

/* G-Scaler input control */
#define GSC_IN_CON
#define GSC_IN_ROT_MASK
#define GSC_IN_ROT_270
#define GSC_IN_ROT_90_YFLIP
#define GSC_IN_ROT_90_XFLIP
#define GSC_IN_ROT_90
#define GSC_IN_ROT_180
#define GSC_IN_ROT_YFLIP
#define GSC_IN_ROT_XFLIP
#define GSC_IN_RGB_TYPE_MASK
#define GSC_IN_RGB_HD_NARROW
#define GSC_IN_RGB_HD_WIDE
#define GSC_IN_RGB_SD_NARROW
#define GSC_IN_RGB_SD_WIDE
#define GSC_IN_YUV422_1P_ORDER_MASK
#define GSC_IN_YUV422_1P_ORDER_LSB_Y
#define GSC_IN_YUV422_1P_OEDER_LSB_C
#define GSC_IN_CHROMA_ORDER_MASK
#define GSC_IN_CHROMA_ORDER_CBCR
#define GSC_IN_CHROMA_ORDER_CRCB
#define GSC_IN_FORMAT_MASK
#define GSC_IN_XRGB8888
#define GSC_IN_RGB565
#define GSC_IN_YUV420_2P
#define GSC_IN_YUV420_3P
#define GSC_IN_YUV422_1P
#define GSC_IN_YUV422_2P
#define GSC_IN_YUV422_3P
#define GSC_IN_TILE_TYPE_MASK
#define GSC_IN_TILE_C_16x8
#define GSC_IN_TILE_MODE
#define GSC_IN_LOCAL_SEL_MASK
#define GSC_IN_PATH_MASK
#define GSC_IN_PATH_MEMORY

/* G-Scaler source image size */
#define GSC_SRCIMG_SIZE
#define GSC_SRCIMG_HEIGHT(x)
#define GSC_SRCIMG_WIDTH(x)

/* G-Scaler source image offset */
#define GSC_SRCIMG_OFFSET
#define GSC_SRCIMG_OFFSET_Y(x)
#define GSC_SRCIMG_OFFSET_X(x)

/* G-Scaler cropped source image size */
#define GSC_CROPPED_SIZE
#define GSC_CROPPED_HEIGHT(x)
#define GSC_CROPPED_WIDTH(x)

/* G-Scaler output control */
#define GSC_OUT_CON
#define GSC_OUT_GLOBAL_ALPHA_MASK
#define GSC_OUT_GLOBAL_ALPHA(x)
#define GSC_OUT_RGB_TYPE_MASK
#define GSC_OUT_RGB_HD_WIDE
#define GSC_OUT_RGB_HD_NARROW
#define GSC_OUT_RGB_SD_WIDE
#define GSC_OUT_RGB_SD_NARROW
#define GSC_OUT_YUV422_1P_ORDER_MASK
#define GSC_OUT_YUV422_1P_ORDER_LSB_Y
#define GSC_OUT_YUV422_1P_OEDER_LSB_C
#define GSC_OUT_CHROMA_ORDER_MASK
#define GSC_OUT_CHROMA_ORDER_CBCR
#define GSC_OUT_CHROMA_ORDER_CRCB
#define GSC_OUT_FORMAT_MASK
#define GSC_OUT_XRGB8888
#define GSC_OUT_RGB565
#define GSC_OUT_YUV420_2P
#define GSC_OUT_YUV420_3P
#define GSC_OUT_YUV422_1P
#define GSC_OUT_YUV422_2P
#define GSC_OUT_YUV444
#define GSC_OUT_TILE_TYPE_MASK
#define GSC_OUT_TILE_C_16x8
#define GSC_OUT_TILE_MODE
#define GSC_OUT_PATH_MASK
#define GSC_OUT_PATH_LOCAL
#define GSC_OUT_PATH_MEMORY

/* G-Scaler scaled destination image size */
#define GSC_SCALED_SIZE
#define GSC_SCALED_HEIGHT(x)
#define GSC_SCALED_WIDTH(x)

/* G-Scaler pre scale ratio */
#define GSC_PRE_SCALE_RATIO
#define GSC_PRESC_SHFACTOR(x)
#define GSC_PRESC_V_RATIO(x)
#define GSC_PRESC_H_RATIO(x)

/* G-Scaler main scale horizontal ratio */
#define GSC_MAIN_H_RATIO
#define GSC_MAIN_H_RATIO_VALUE(x)

/* G-Scaler main scale vertical ratio */
#define GSC_MAIN_V_RATIO
#define GSC_MAIN_V_RATIO_VALUE(x)

/* G-Scaler destination image size */
#define GSC_DSTIMG_SIZE
#define GSC_DSTIMG_HEIGHT(x)
#define GSC_DSTIMG_WIDTH(x)

/* G-Scaler destination image offset */
#define GSC_DSTIMG_OFFSET
#define GSC_DSTIMG_OFFSET_Y(x)
#define GSC_DSTIMG_OFFSET_X(x)

/* G-Scaler input y address mask */
#define GSC_IN_BASE_ADDR_Y_MASK
/* G-Scaler input y base address */
#define GSC_IN_BASE_ADDR_Y(n)

/* G-Scaler input cb address mask */
#define GSC_IN_BASE_ADDR_CB_MASK
/* G-Scaler input cb base address */
#define GSC_IN_BASE_ADDR_CB(n)

/* G-Scaler input cr address mask */
#define GSC_IN_BASE_ADDR_CR_MASK
/* G-Scaler input cr base address */
#define GSC_IN_BASE_ADDR_CR(n)

/* G-Scaler output y address mask */
#define GSC_OUT_BASE_ADDR_Y_MASK
/* G-Scaler output y base address */
#define GSC_OUT_BASE_ADDR_Y(n)

/* G-Scaler output cb address mask */
#define GSC_OUT_BASE_ADDR_CB_MASK
/* G-Scaler output cb base address */
#define GSC_OUT_BASE_ADDR_CB(n)

/* G-Scaler output cr address mask */
#define GSC_OUT_BASE_ADDR_CR_MASK
/* G-Scaler output cr base address */
#define GSC_OUT_BASE_ADDR_CR(n)

#endif /* REGS_GSC_H_ */