Merge tag 'regmap-fix-v5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux/fpc-iii.git] / drivers / media / platform / s5p-mfc / s5p_mfc_cmd.h
blobed4e32a12552d0f5e8c88f18198c6ccb8dd95866
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * linux/drivers/media/platform/s5p-mfc/s5p_mfc_cmd.h
5 * Copyright (C) 2012 Samsung Electronics Co., Ltd.
6 * http://www.samsung.com/
7 */
9 #ifndef S5P_MFC_CMD_H_
10 #define S5P_MFC_CMD_H_
12 #include "s5p_mfc_common.h"
14 #define MAX_H2R_ARG 4
16 struct s5p_mfc_cmd_args {
17 unsigned int arg[MAX_H2R_ARG];
20 struct s5p_mfc_hw_cmds {
21 int (*cmd_host2risc)(struct s5p_mfc_dev *dev, int cmd,
22 struct s5p_mfc_cmd_args *args);
23 int (*sys_init_cmd)(struct s5p_mfc_dev *dev);
24 int (*sleep_cmd)(struct s5p_mfc_dev *dev);
25 int (*wakeup_cmd)(struct s5p_mfc_dev *dev);
26 int (*open_inst_cmd)(struct s5p_mfc_ctx *ctx);
27 int (*close_inst_cmd)(struct s5p_mfc_ctx *ctx);
30 void s5p_mfc_init_hw_cmds(struct s5p_mfc_dev *dev);
31 #endif /* S5P_MFC_CMD_H_ */