hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (C) 2020 Rockchip Electronics Co., Ltd. */
 
#ifndef _RKISP_TB_HELPER_H
#define _RKISP_TB_HELPER_H
 
#include <linux/rk-isp1-config.h>
 
enum rkisp_tb_state {
   RKISP_TB_RUN = 0,
   RKISP_TB_OK,
   RKISP_TB_NG
};
 
#ifdef CONFIG_VIDEO_ROCKCHIP_THUNDER_BOOT_ISP
void rkisp_tb_unprotect_clk(void);
void rkisp_tb_set_state(enum rkisp_tb_state result);
enum rkisp_tb_state rkisp_tb_get_state(void);
long rkisp_tb_shm_ioctl(struct rkisp_thunderboot_shmem *shmem);
#else
static inline void rkisp_tb_unprotect_clk(void) {}
static inline void rkisp_tb_set_state(enum rkisp_tb_state result) {}
static inline enum rkisp_tb_state rkisp_tb_get_state(void)
{
   return RKISP_TB_OK;
}
static inline long rkisp_tb_shm_ioctl(struct rkisp_thunderboot_shmem *shmem)
{
   return 0;
}
#endif
 
#endif