| .. | .. |
|---|
| 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 |
|---|
| 58 | + |
|---|
| 59 | +/* reuse old debug bit flag */ |
|---|
| 60 | +#define DEBUG_PART_TIMING 0x00000080 |
|---|
| 61 | +#define DEBUG_SLICE 0x00000002 |
|---|
| 55 | 62 | |
|---|
| 56 | 63 | extern unsigned int mpp_dev_debug; |
|---|
| 57 | 64 | |
|---|
| 58 | 65 | #define mpp_debug_unlikely(type) \ |
|---|
| 59 | | - (unlikely(mpp_dev_debug & type)) |
|---|
| 66 | + (unlikely(mpp_dev_debug & (type))) |
|---|
| 60 | 67 | |
|---|
| 61 | 68 | #define mpp_debug_func(type, fmt, args...) \ |
|---|
| 62 | 69 | do { \ |
|---|
| 63 | | - if (unlikely(mpp_dev_debug & type)) { \ |
|---|
| 70 | + if (unlikely(mpp_dev_debug & (type))) { \ |
|---|
| 64 | 71 | pr_info("%s:%d: " fmt, \ |
|---|
| 65 | 72 | __func__, __LINE__, ##args); \ |
|---|
| 66 | 73 | } \ |
|---|
| 67 | 74 | } while (0) |
|---|
| 68 | 75 | #define mpp_debug(type, fmt, args...) \ |
|---|
| 69 | 76 | do { \ |
|---|
| 70 | | - if (unlikely(mpp_dev_debug & type)) { \ |
|---|
| 77 | + if (unlikely(mpp_dev_debug & (type))) { \ |
|---|
| 71 | 78 | pr_info(fmt, ##args); \ |
|---|
| 72 | 79 | } \ |
|---|
| 73 | 80 | } while (0) |
|---|
| .. | .. |
|---|
| 91 | 98 | #define mpp_err(fmt, args...) \ |
|---|
| 92 | 99 | pr_err("%s:%d: " fmt, __func__, __LINE__, ##args) |
|---|
| 93 | 100 | |
|---|
| 94 | | -#define mpp_dbg_link_flow(fmt, args...) \ |
|---|
| 101 | +#define mpp_dbg_link(fmt, args...) \ |
|---|
| 95 | 102 | do { \ |
|---|
| 96 | 103 | if (unlikely(mpp_dev_debug & DEBUG_LINK_TABLE)) { \ |
|---|
| 97 | 104 | pr_info("%s:%d: " fmt, \ |
|---|
| .. | .. |
|---|
| 106 | 113 | } \ |
|---|
| 107 | 114 | } while (0) |
|---|
| 108 | 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 | + |
|---|
| 109 | 138 | #endif |
|---|