2 * linux/drivers/media/video/samsung/mfc5x/mfc_cmd.h
4 * Copyright (c) 2010 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com/
7 * Command interface for Samsung MFC (Multi Function Codec - FIMV) driver
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
15 #define __MFC_CMD_H __FILE__
17 #include <linux/interrupt.h>
22 #define H2R_CMD_TIMEOUT 100 /* ms */
23 #define H2R_INT_TIMEOUT 5000 /* ms */
24 #define CODEC_INT_TIMEOUT 1000 /* ms */
43 FRAME_START_REALLOC = 5,
44 FRAME_BATCH_START = 6,
63 INIT_BUFFERS_RET = 15,
70 unsigned int arg[MAX_H2R_ARG];
73 irqreturn_t mfc_irq(int irq, void *dev_id);
75 int mfc_cmd_fw_start(struct mfc_dev *dev);
76 int mfc_cmd_sys_init(struct mfc_dev *dev);
77 int mfc_cmd_sys_sleep(struct mfc_dev *dev);
78 int mfc_cmd_sys_wakeup(struct mfc_dev *dev);
80 int mfc_cmd_inst_open(struct mfc_inst_ctx *ctx);
81 int mfc_cmd_inst_close(struct mfc_inst_ctx *ctx);
82 int mfc_cmd_seq_start(struct mfc_inst_ctx *ctx);
83 int mfc_cmd_init_buffers(struct mfc_inst_ctx *ctx);
84 int mfc_cmd_frame_start(struct mfc_inst_ctx *ctx);
86 #endif /* __MFC_CMD_H */