xref: /OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/ispp/fec.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (c) 2020 Rockchip Electronics Co., Ltd. */
3 
4 #ifndef _RKISPP_FEC_H
5 #define _RKISPP_FEC_H
6 
7 #include "hw.h"
8 
9 struct rkispp_fec_dev {
10 	struct rkispp_hw_dev *hw;
11 	struct v4l2_device v4l2_dev;
12 	struct video_device vfd;
13 	struct mutex apilock;
14 	struct completion cmpl;
15 	struct list_head list;
16 };
17 
18 #if IS_ENABLED(CONFIG_VIDEO_ROCKCHIP_ISPP_FEC)
19 int rkispp_register_fec(struct rkispp_hw_dev *hw);
20 void rkispp_unregister_fec(struct rkispp_hw_dev *hw);
21 void rkispp_fec_irq(struct rkispp_hw_dev *hw);
22 #else
rkispp_register_fec(struct rkispp_hw_dev * hw)23 static inline int rkispp_register_fec(struct rkispp_hw_dev *hw) { return 0; }
rkispp_unregister_fec(struct rkispp_hw_dev * hw)24 static inline void rkispp_unregister_fec(struct rkispp_hw_dev *hw) {  }
rkispp_fec_irq(struct rkispp_hw_dev * hw)25 static inline void rkispp_fec_irq(struct rkispp_hw_dev *hw) {  }
26 #endif
27 
28 #endif
29