• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 };
16 
17 #if IS_ENABLED(CONFIG_VIDEO_ROCKCHIP_ISPP_FEC)
18 int rkispp_register_fec(struct rkispp_hw_dev *hw);
19 void rkispp_unregister_fec(struct rkispp_hw_dev *hw);
20 void rkispp_fec_irq(struct rkispp_hw_dev *hw);
21 #else
rkispp_register_fec(struct rkispp_hw_dev * hw)22 static inline int rkispp_register_fec(struct rkispp_hw_dev *hw) { return 0; }
rkispp_unregister_fec(struct rkispp_hw_dev * hw)23 static inline void rkispp_unregister_fec(struct rkispp_hw_dev *hw) {  }
rkispp_fec_irq(struct rkispp_hw_dev * hw)24 static inline void rkispp_fec_irq(struct rkispp_hw_dev *hw) {  }
25 #endif
26 
27 #endif
28