linux/drivers/media/platform/nxp/dw100/dw100_regs.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * DW100 Hardware dewarper
 *
 * Copyright 2022 NXP
 * Author: Xavier Roumegue ([email protected])
 */

#ifndef _DW100_REGS_H_
#define _DW100_REGS_H_

/* AHB register offset */
#define DW100_DEWARP_ID
#define DW100_DEWARP_CTRL
#define DW100_DEWARP_CTRL_ENABLE
#define DW100_DEWARP_CTRL_START
#define DW100_DEWARP_CTRL_SOFT_RESET
#define DW100_DEWARP_CTRL_FORMAT_YUV422_SP
#define DW100_DEWARP_CTRL_FORMAT_YUV422_PACKED
#define DW100_DEWARP_CTRL_FORMAT_YUV420_SP
#define DW100_DEWARP_CTRL_INPUT_FORMAT_MASK
#define DW100_DEWARP_CTRL_INPUT_FORMAT(x)
#define DW100_DEWARP_CTRL_OUTPUT_FORMAT(x)
#define DW100_DEWARP_CTRL_OUTPUT_FORMAT_MASK
#define DW100_DEWARP_CTRL_SRC_AUTO_SHADOW
#define DW100_DEWARP_CTRL_HW_HANDSHAKE
#define DW100_DEWARP_CTRL_DST_AUTO_SHADOW
#define DW100_DEWARP_CTRL_SPLIT_LINE
#define DW100_DEWARP_CTRL_PREFETCH_MODE_MASK
#define DW100_DEWARP_CTRL_PREFETCH_MODE_TRAVERSAL
#define DW100_DEWARP_CTRL_PREFETCH_MODE_CALCULATION
#define DW100_DEWARP_CTRL_PREFETCH_MODE_AUTO
#define DW100_DEWARP_CTRL_PREFETCH_THRESHOLD_MASK
#define DW100_DEWARP_CTRL_PREFETCH_THRESHOLD(x)

#define DW100_MAP_LUT_ADDR
#define DW100_MAP_LUT_ADDR_ADDR(addr)
#define DW100_MAP_LUT_SIZE
#define DW100_MAP_LUT_SIZE_WIDTH(w)
#define DW100_MAP_LUT_SIZE_HEIGHT(h)
#define DW100_SRC_IMG_Y_BASE
#define DW100_IMG_Y_BASE(base)
#define DW100_SRC_IMG_UV_BASE
#define DW100_IMG_UV_BASE(base)
#define DW100_SRC_IMG_SIZE
#define DW100_IMG_SIZE_WIDTH(w)
#define DW100_IMG_SIZE_HEIGHT(h)

#define DW100_SRC_IMG_STRIDE
#define DW100_MAP_LUT_ADDR2
#define DW100_MAP_LUT_SIZE2
#define DW100_SRC_IMG_Y_BASE2
#define DW100_SRC_IMG_UV_BASE2
#define DW100_SRC_IMG_SIZE2
#define DW100_SRC_IMG_STRIDE2
#define DW100_DST_IMG_Y_BASE
#define DW100_DST_IMG_UV_BASE
#define DW100_DST_IMG_SIZE
#define DW100_DST_IMG_STRIDE
#define DW100_DST_IMG_Y_BASE2
#define DW100_DST_IMG_UV_BASE2
#define DW100_DST_IMG_SIZE2
#define DW100_DST_IMG_STRIDE2
#define DW100_SWAP_CONTROL
#define DW100_SWAP_CONTROL_BYTE
#define DW100_SWAP_CONTROL_SHORT
#define DW100_SWAP_CONTROL_WORD
#define DW100_SWAP_CONTROL_LONG
#define DW100_SWAP_CONTROL_Y(x)
#define DW100_SWAP_CONTROL_UV(x)
#define DW100_SWAP_CONTROL_SRC(x)
#define DW100_SWAP_CONTROL_DST(x)
#define DW100_SWAP_CONTROL_SRC2(x)
#define DW100_SWAP_CONTROL_DST2(x)
#define DW100_SWAP_CONTROL_SRC_MASK
#define DW100_SWAP_CONTROL_DST_MASK
#define DW100_SWAP_CONTROL_SRC2_MASK
#define DW100_SWAP_CONTROL_DST2_MASK
#define DW100_VERTICAL_SPLIT_LINE
#define DW100_HORIZON_SPLIT_LINE
#define DW100_SCALE_FACTOR
#define DW100_ROI_START
#define DW100_ROI_START_X(x)
#define DW100_ROI_START_Y(y)
#define DW100_BOUNDARY_PIXEL
#define DW100_BOUNDARY_PIXEL_V(v)
#define DW100_BOUNDARY_PIXEL_U(u)
#define DW100_BOUNDARY_PIXEL_Y(y)

#define DW100_INTERRUPT_STATUS
#define DW100_INTERRUPT_STATUS_INT_FRAME_DONE
#define DW100_INTERRUPT_STATUS_INT_ERR_TIME_OUT
#define DW100_INTERRUPT_STATUS_INT_ERR_AXI_RESP
#define DW100_INTERRUPT_STATUS_INT_ERR_X
#define DW100_INTERRUPT_STATUS_INT_ERR_MB_FETCH
#define DW100_INTERRUPT_STATUS_INT_ERR_FRAME2
#define DW100_INTERRUPT_STATUS_INT_ERR_FRAME3
#define DW100_INTERRUPT_STATUS_INT_ERR_FRAME_DONE
#define DW100_INTERRUPT_STATUS_INT_ERR_STATUS(x)
#define DW100_INTERRUPT_STATUS_INT_STATUS(x)

#define DW100_INTERRUPT_STATUS_INT_ENABLE_MASK
#define DW100_INTERRUPT_STATUS_INT_ENABLE(x)
#define DW100_INTERRUPT_STATUS_FRAME_BUSY
#define DW100_INTERRUPT_STATUS_INT_CLEAR(x)
#define DW100_BUS_CTRL
#define DW100_BUS_CTRL_AXI_MASTER_ENABLE
#define DW100_BUS_CTRL1
#define DW100_BUS_TIME_OUT_CYCLE
#define DW100_DST_IMG_Y_SIZE1
#define DW100_DST_IMG_Y_SIZE(sz)
#define DW100_DST_IMG_UV_SIZE(sz)
#define DW100_DST_IMG_UV_SIZE1
#define DW100_DST_IMG_Y_SIZE2
#define DW100_DST_IMG_UV_SIZE2

#endif /* _DW100_REGS_H_ */