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

/* SPDX-License-Identifier: GPL-2.0-only */
/* drivers/gpu/drm/exynos/regs-rotator.h
 *
 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
 *		http://www.samsung.com/
 *
 * Register definition file for Samsung Rotator Interface (Rotator) driver
*/

#ifndef EXYNOS_REGS_ROTATOR_H
#define EXYNOS_REGS_ROTATOR_H

/* Configuration */
#define ROT_CONFIG
#define ROT_CONFIG_IRQ

/* Image Control */
#define ROT_CONTROL
#define ROT_CONTROL_PATTERN_WRITE
#define ROT_CONTROL_FMT_YCBCR420_2P
#define ROT_CONTROL_FMT_RGB888
#define ROT_CONTROL_FMT_MASK
#define ROT_CONTROL_FLIP_VERTICAL
#define ROT_CONTROL_FLIP_HORIZONTAL
#define ROT_CONTROL_FLIP_MASK
#define ROT_CONTROL_ROT_90
#define ROT_CONTROL_ROT_180
#define ROT_CONTROL_ROT_270
#define ROT_CONTROL_ROT_MASK
#define ROT_CONTROL_START

/* Status */
#define ROT_STATUS
#define ROT_STATUS_IRQ_PENDING(x)
#define ROT_STATUS_IRQ(x)
#define ROT_STATUS_IRQ_VAL_COMPLETE
#define ROT_STATUS_IRQ_VAL_ILLEGAL

/* Buffer Address */
#define ROT_SRC_BUF_ADDR(n)
#define ROT_DST_BUF_ADDR(n)

/* Buffer Size */
#define ROT_SRC_BUF_SIZE
#define ROT_DST_BUF_SIZE
#define ROT_SET_BUF_SIZE_H(x)
#define ROT_SET_BUF_SIZE_W(x)
#define ROT_GET_BUF_SIZE_H(x)
#define ROT_GET_BUF_SIZE_W(x)

/* Crop Position */
#define ROT_SRC_CROP_POS
#define ROT_DST_CROP_POS
#define ROT_CROP_POS_Y(x)
#define ROT_CROP_POS_X(x)

/* Source Crop Size */
#define ROT_SRC_CROP_SIZE
#define ROT_SRC_CROP_SIZE_H(x)
#define ROT_SRC_CROP_SIZE_W(x)

/* Round to nearest aligned value */
#define ROT_ALIGN(x, align, mask)
/* Minimum limit value */
#define ROT_MIN(min, mask)
/* Maximum limit value */
#define ROT_MAX(max, mask)

#endif /* EXYNOS_REGS_ROTATOR_H */