linux/drivers/media/platform/mediatek/mdp3/mtk-img-ipi.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2022 MediaTek Inc.
 * Author: Holmes Chiou <[email protected]>
 *         Ping-Hsun Wu <[email protected]>
 */

#ifndef __MTK_IMG_IPI_H__
#define __MTK_IMG_IPI_H__

#include <linux/err.h>
#include "mdp_sm_mt8183.h"
#include "mdp_sm_mt8195.h"
#include "mtk-mdp3-type.h"

/* ISP-MDP generic input information */

#define IMG_IPI_INIT
#define IMG_IPI_DEINIT
#define IMG_IPI_FRAME
#define IMG_IPI_DEBUG

struct img_timeval {} __packed;

struct img_addr {} __packed;

struct tuning_addr {} __packed;

struct img_sw_addr {} __packed;

struct img_plane_format {} __packed;

struct img_pix_format {} __packed;

struct img_image_buffer {} __packed;

#define IMG_SUBPIXEL_SHIFT

#define IMG_CTRL_FLAG_HFLIP
#define IMG_CTRL_FLAG_DITHER
#define IMG_CTRL_FLAG_SHARPNESS
#define IMG_CTRL_FLAG_HDR
#define IMG_CTRL_FLAG_DRE

struct img_input {} __packed;

struct img_output {} __packed;

struct img_ipi_frameparam {} __packed;

struct img_sw_buffer {} __packed;

struct img_ipi_param {} __packed;

struct img_frameparam {} __packed;

/* Platform config indicator */
#define MT8183
#define MT8188
#define MT8195

#define CFG_CHECK(plat, p_id)

#define _CFG_OFST(plat, cfg, ofst)
#define CFG_OFST(plat, cfg, ofst)

#define _CFG_ADDR(plat, cfg, mem)
#define CFG_ADDR(plat, cfg, mem)

#define _CFG_GET(plat, cfg, mem)
#define CFG_GET(plat, cfg, mem)

#define _CFG_COMP(plat, comp, mem)
#define CFG_COMP(plat, comp, mem)

struct img_config {} __packed;

struct img_compparam {} __packed;

#endif  /* __MTK_IMG_IPI_H__ */