linux/drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.h

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

#ifndef __MTK_MDP3_COMP_H__
#define __MTK_MDP3_COMP_H__

#include "mtk-mdp3-cmdq.h"

#define MM_REG_WRITE_MASK(cmd, id, base, ofst, val, mask, ...)

#define MM_REG_WRITE(cmd, id, base, ofst, val, mask, ...)

#define MM_REG_WAIT(cmd, evt)

#define MM_REG_WAIT_NO_CLEAR(cmd, evt)

#define MM_REG_CLEAR(cmd, evt)

#define MM_REG_SET_EVENT(cmd, evt)

#define MM_REG_POLL_MASK(cmd, id, base, ofst, val, _mask, ...)

#define MM_REG_POLL(cmd, id, base, ofst, val, mask, ...)

enum mtk_mdp_comp_id {};

enum mdp_comp_type {};

#define MDP_GCE_NO_EVENT
enum {};

struct mdp_comp_match {};

/* Used to describe the item order in MDP property */
struct mdp_comp_info {};

struct mdp_comp_blend {};

struct mdp_comp_data {};

struct mdp_comp_ops;

struct mdp_comp {};

struct mdp_comp_ctx {};

struct mdp_comp_ops {};

struct mdp_dev;

int mdp_comp_config(struct mdp_dev *mdp);
void mdp_comp_destroy(struct mdp_dev *mdp);
int mdp_comp_clock_on(struct device *dev, struct mdp_comp *comp);
void mdp_comp_clock_off(struct device *dev, struct mdp_comp *comp);
int mdp_comp_clocks_on(struct device *dev, struct mdp_comp *comps, int num);
void mdp_comp_clocks_off(struct device *dev, struct mdp_comp *comps, int num);
int mdp_comp_ctx_config(struct mdp_dev *mdp, struct mdp_comp_ctx *ctx,
			const struct img_compparam *param,
			const struct img_ipi_frameparam *frame);

#endif  /* __MTK_MDP3_COMP_H__ */