xref: /OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/isp/procfs.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (c) 2020 Rockchip Electronics Co., Ltd. */
3 
4 #ifndef _RKISP_PROCFS_H
5 #define _RKISP_PROCFS_H
6 
7 enum {
8 	RKISP_PROCFS_DUMP_REG = BIT(0),
9 	RKISP_PROCFS_DUMP_MEM = BIT(1),
10 
11 	RKISP_PROCFS_FIL_AIQ = BIT(8),
12 	RKISP_PROCFS_FIL_SW = BIT(9),
13 };
14 
15 struct rkisp_procfs {
16 	struct proc_dir_entry *procfs;
17 	wait_queue_head_t fs_wait;
18 	wait_queue_head_t fe_wait;
19 	u32 mode;
20 	bool is_fs_wait;
21 	bool is_fe_wait;
22 };
23 
24 #ifdef CONFIG_PROC_FS
25 int rkisp_proc_init(struct rkisp_device *dev);
26 void rkisp_proc_cleanup(struct rkisp_device *dev);
27 #else
rkisp_proc_init(struct rkisp_device * dev)28 static inline int rkisp_proc_init(struct rkisp_device *dev)
29 {
30 	return 0;
31 }
rkisp_proc_cleanup(struct rkisp_device * dev)32 static inline void rkisp_proc_cleanup(struct rkisp_device *dev)
33 {
34 
35 }
36 #endif
37 
38 #endif
39