linux/drivers/gpu/drm/exynos/regs-vp.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 *
 *  Cloned from drivers/media/video/s5p-tv/regs-vp.h
 *
 * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
 *		http://www.samsung.com/
 *
 * Video processor register header file for Samsung Mixer driver
 */

#ifndef SAMSUNG_REGS_VP_H
#define SAMSUNG_REGS_VP_H

/*
 * Register part
 */

#define VP_ENABLE
#define VP_SRESET
#define VP_SHADOW_UPDATE
#define VP_FIELD_ID
#define VP_MODE
#define VP_IMG_SIZE_Y
#define VP_IMG_SIZE_C
#define VP_PER_RATE_CTRL
#define VP_TOP_Y_PTR
#define VP_BOT_Y_PTR
#define VP_TOP_C_PTR
#define VP_BOT_C_PTR
#define VP_ENDIAN_MODE
#define VP_SRC_H_POSITION
#define VP_SRC_V_POSITION
#define VP_SRC_WIDTH
#define VP_SRC_HEIGHT
#define VP_DST_H_POSITION
#define VP_DST_V_POSITION
#define VP_DST_WIDTH
#define VP_DST_HEIGHT
#define VP_H_RATIO
#define VP_V_RATIO
#define VP_POLY8_Y0_LL
#define VP_POLY4_Y0_LL
#define VP_POLY4_C0_LL

/*
 * Bit definition part
 */

/* generates mask for range of bits */

#define VP_MASK(high_bit, low_bit)

#define VP_MASK_VAL(val, high_bit, low_bit)

 /* VP_ENABLE */
#define VP_ENABLE_ON

/* VP_SRESET */
#define VP_SRESET_PROCESSING

/* VP_SHADOW_UPDATE */
#define VP_SHADOW_UPDATE_ENABLE

/* VP_MODE */
#define VP_MODE_NV12
#define VP_MODE_NV21
#define VP_MODE_LINE_SKIP
#define VP_MODE_MEM_LINEAR
#define VP_MODE_MEM_TILED
#define VP_MODE_FMT_MASK
#define VP_MODE_FIELD_ID_AUTO_TOGGLING
#define VP_MODE_2D_IPC

/* VP_IMG_SIZE_Y */
/* VP_IMG_SIZE_C */
#define VP_IMG_HSIZE(x)
#define VP_IMG_VSIZE(x)

/* VP_SRC_H_POSITION */
#define VP_SRC_H_POSITION_VAL(x)

/* VP_ENDIAN_MODE */
#define VP_ENDIAN_MODE_LITTLE

#endif /* SAMSUNG_REGS_VP_H */