From cf4ce59b3b70238352c7f1729f0f7223214828ad Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 20 Sep 2024 01:46:19 +0000
Subject: [PATCH] rtl88x2CE_WiFi_linux add concurrent mode
---
kernel/include/soc/rockchip/rockchip_rockit.h | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/kernel/include/soc/rockchip/rockchip_rockit.h b/kernel/include/soc/rockchip/rockchip_rockit.h
index 212351b..760a864 100644
--- a/kernel/include/soc/rockchip/rockchip_rockit.h
+++ b/kernel/include/soc/rockchip/rockchip_rockit.h
@@ -14,6 +14,13 @@
#define ROCKIT_VICAP_NUM_MAX 6
+enum {
+ RKISP_NORMAL_ONLINE,
+ RKISP_NORMAL_OFFLINE,
+ RKISP_FAST_ONLINE,
+ RKISP_FAST_OFFLINE,
+};
+
enum function_cmd {
ROCKIT_BUF_QUE,
ROCKIT_MPIBUF_DONE
@@ -28,6 +35,7 @@
int cur_fps;
u64 old_time;
bool is_discard;
+ struct mutex freebuf_lock;
};
struct ISP_VIDEO_FRAMES {
@@ -116,6 +124,7 @@
void *rkisp_rockit_function_register(void *function, int cmd);
int rkisp_rockit_get_ispdev(char **name);
+int rkisp_rockit_get_isp_mode(const char *name);
int rkisp_rockit_buf_queue(struct rockit_cfg *input_rockit_cfg);
int rkisp_rockit_pause_stream(struct rockit_cfg *input_rockit_cfg);
int rkisp_rockit_resume_stream(struct rockit_cfg *input_rockit_cfg);
@@ -124,6 +133,7 @@
int rkisp_rockit_get_tb_stream_info(struct rockit_cfg *input_rockit_cfg,
struct rkisp_tb_stream_info *info);
int rkisp_rockit_free_tb_stream_buf(struct rockit_cfg *input_rockit_cfg);
+int rkisp_rockit_free_stream_buf(struct rockit_cfg *input_rockit_cfg);
void *rkcif_rockit_function_register(void *function, int cmd);
int rkcif_rockit_get_cifdev(char **name);
@@ -137,6 +147,7 @@
static inline void *rkisp_rockit_function_register(void *function, int cmd) { return NULL; }
static inline int rkisp_rockit_get_ispdev(char **name) { return -EINVAL; }
+static inline int rkisp_rockit_get_isp_mode(const char *name) { return -EINVAL; }
static inline int rkisp_rockit_buf_queue(struct rockit_cfg *input_rockit_cfg)
{
return -EINVAL;
@@ -166,6 +177,11 @@
return -EINVAL;
}
+static inline int rkisp_rockit_free_stream_buf(struct rockit_cfg *input_rockit_cfg)
+{
+ return -EINVAL;
+}
+
#endif
#endif
--
Gitblit v1.6.2