From 01573e231f18eb2d99162747186f59511f56b64d Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 08 Dec 2023 10:40:48 +0000
Subject: [PATCH] 移去rt
---
kernel/drivers/video/rockchip/mpp/mpp_debug.h | 34 ++++++++++++++++++++++++++++++----
1 files changed, 30 insertions(+), 4 deletions(-)
diff --git a/kernel/drivers/video/rockchip/mpp/mpp_debug.h b/kernel/drivers/video/rockchip/mpp/mpp_debug.h
index acd75dd..4108c69 100644
--- a/kernel/drivers/video/rockchip/mpp/mpp_debug.h
+++ b/kernel/drivers/video/rockchip/mpp/mpp_debug.h
@@ -50,27 +50,31 @@
#define DEBUG_SESSION 0x00400000
#define DEBUG_DEVICE 0x00800000
+#define DEBUG_CCU 0x01000000
+#define DEBUG_CORE 0x02000000
+
#define PRINT_FUNCTION 0x80000000
#define PRINT_LINE 0x40000000
/* reuse old debug bit flag */
#define DEBUG_PART_TIMING 0x00000080
+#define DEBUG_SLICE 0x00000002
extern unsigned int mpp_dev_debug;
#define mpp_debug_unlikely(type) \
- (unlikely(mpp_dev_debug & type))
+ (unlikely(mpp_dev_debug & (type)))
#define mpp_debug_func(type, fmt, args...) \
do { \
- if (unlikely(mpp_dev_debug & type)) { \
+ if (unlikely(mpp_dev_debug & (type))) { \
pr_info("%s:%d: " fmt, \
__func__, __LINE__, ##args); \
} \
} while (0)
#define mpp_debug(type, fmt, args...) \
do { \
- if (unlikely(mpp_dev_debug & type)) { \
+ if (unlikely(mpp_dev_debug & (type))) { \
pr_info(fmt, ##args); \
} \
} while (0)
@@ -94,7 +98,7 @@
#define mpp_err(fmt, args...) \
pr_err("%s:%d: " fmt, __func__, __LINE__, ##args)
-#define mpp_dbg_link_flow(fmt, args...) \
+#define mpp_dbg_link(fmt, args...) \
do { \
if (unlikely(mpp_dev_debug & DEBUG_LINK_TABLE)) { \
pr_info("%s:%d: " fmt, \
@@ -109,4 +113,26 @@
} \
} while (0)
+#define mpp_dbg_ccu(fmt, args...) \
+ do { \
+ if (unlikely(mpp_dev_debug & DEBUG_CCU)) { \
+ pr_info("%s:%d: " fmt, \
+ __func__, __LINE__, ##args); \
+ } \
+ } while (0)
+
+#define mpp_dbg_core(fmt, args...) \
+ do { \
+ if (unlikely(mpp_dev_debug & DEBUG_CORE)) { \
+ pr_info(fmt, ##args); \
+ } \
+ } while (0)
+
+#define mpp_dbg_slice(fmt, args...) \
+ do { \
+ if (unlikely(mpp_dev_debug & DEBUG_SLICE)) { \
+ pr_info(fmt, ##args); \
+ } \
+ } while (0)
+
#endif
--
Gitblit v1.6.2