.. | .. |
---|
50 | 50 | #define DEBUG_SESSION 0x00400000 |
---|
51 | 51 | #define DEBUG_DEVICE 0x00800000 |
---|
52 | 52 | |
---|
| 53 | +#define DEBUG_CCU 0x01000000 |
---|
| 54 | +#define DEBUG_CORE 0x02000000 |
---|
| 55 | + |
---|
53 | 56 | #define PRINT_FUNCTION 0x80000000 |
---|
54 | 57 | #define PRINT_LINE 0x40000000 |
---|
55 | 58 | |
---|
56 | 59 | /* reuse old debug bit flag */ |
---|
57 | 60 | #define DEBUG_PART_TIMING 0x00000080 |
---|
| 61 | +#define DEBUG_SLICE 0x00000002 |
---|
58 | 62 | |
---|
59 | 63 | extern unsigned int mpp_dev_debug; |
---|
60 | 64 | |
---|
61 | 65 | #define mpp_debug_unlikely(type) \ |
---|
62 | | - (unlikely(mpp_dev_debug & type)) |
---|
| 66 | + (unlikely(mpp_dev_debug & (type))) |
---|
63 | 67 | |
---|
64 | 68 | #define mpp_debug_func(type, fmt, args...) \ |
---|
65 | 69 | do { \ |
---|
66 | | - if (unlikely(mpp_dev_debug & type)) { \ |
---|
| 70 | + if (unlikely(mpp_dev_debug & (type))) { \ |
---|
67 | 71 | pr_info("%s:%d: " fmt, \ |
---|
68 | 72 | __func__, __LINE__, ##args); \ |
---|
69 | 73 | } \ |
---|
70 | 74 | } while (0) |
---|
71 | 75 | #define mpp_debug(type, fmt, args...) \ |
---|
72 | 76 | do { \ |
---|
73 | | - if (unlikely(mpp_dev_debug & type)) { \ |
---|
| 77 | + if (unlikely(mpp_dev_debug & (type))) { \ |
---|
74 | 78 | pr_info(fmt, ##args); \ |
---|
75 | 79 | } \ |
---|
76 | 80 | } while (0) |
---|
.. | .. |
---|
94 | 98 | #define mpp_err(fmt, args...) \ |
---|
95 | 99 | pr_err("%s:%d: " fmt, __func__, __LINE__, ##args) |
---|
96 | 100 | |
---|
97 | | -#define mpp_dbg_link_flow(fmt, args...) \ |
---|
| 101 | +#define mpp_dbg_link(fmt, args...) \ |
---|
98 | 102 | do { \ |
---|
99 | 103 | if (unlikely(mpp_dev_debug & DEBUG_LINK_TABLE)) { \ |
---|
100 | 104 | pr_info("%s:%d: " fmt, \ |
---|
.. | .. |
---|
109 | 113 | } \ |
---|
110 | 114 | } while (0) |
---|
111 | 115 | |
---|
| 116 | +#define mpp_dbg_ccu(fmt, args...) \ |
---|
| 117 | + do { \ |
---|
| 118 | + if (unlikely(mpp_dev_debug & DEBUG_CCU)) { \ |
---|
| 119 | + pr_info("%s:%d: " fmt, \ |
---|
| 120 | + __func__, __LINE__, ##args); \ |
---|
| 121 | + } \ |
---|
| 122 | + } while (0) |
---|
| 123 | + |
---|
| 124 | +#define mpp_dbg_core(fmt, args...) \ |
---|
| 125 | + do { \ |
---|
| 126 | + if (unlikely(mpp_dev_debug & DEBUG_CORE)) { \ |
---|
| 127 | + pr_info(fmt, ##args); \ |
---|
| 128 | + } \ |
---|
| 129 | + } while (0) |
---|
| 130 | + |
---|
| 131 | +#define mpp_dbg_slice(fmt, args...) \ |
---|
| 132 | + do { \ |
---|
| 133 | + if (unlikely(mpp_dev_debug & DEBUG_SLICE)) { \ |
---|
| 134 | + pr_info(fmt, ##args); \ |
---|
| 135 | + } \ |
---|
| 136 | + } while (0) |
---|
| 137 | + |
---|
112 | 138 | #endif |
---|