lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 |
|
| 2 | #ifndef __TRACE_FLAG__
|
| 3 | #define __TRACE_FLAG__
|
| 4 |
|
| 5 | typedef enum _T_TRACE_FLAG
|
| 6 | {
|
| 7 | TRACE_ZLOADER_START = 0x00010000,
|
| 8 | TRACE_ZLOADER_NAND,
|
| 9 | TRACE_ZLOADER_DDR,
|
| 10 | TRACE_ZLOADER_PARTITION,
|
| 11 | TRACE_ZLOADER_LOAD_UBOOT,
|
| 12 | TRACE_ZLOADER_LOAD_RPM,
|
| 13 | TRACE_ZLOADER_RUN_UBOOT,
|
| 14 | TRACE_ZLOADER_END_ERR,
|
| 15 | TRACE_ZLOADER_HANG,
|
| 16 | TRACE_ZLOADER_9,
|
| 17 | TRACE_ZLOADER_10,
|
| 18 | TRACE_ZLOADER_11,
|
| 19 | TRACE_ZLOADER_12,
|
| 20 | TRACE_ZLOADER_13,
|
| 21 | TRACE_ZLOADER_14,
|
| 22 | TRACE_ZLOADER_15,
|
| 23 | TRACE_ZLOADER_16,
|
| 24 | TRACE_ZLOADER_17,
|
| 25 | TRACE_ZLOADER_18,
|
| 26 | TRACE_ZLOADER_RUN_RPM = 0x00019999, /*zloader start normal*/
|
| 27 |
|
| 28 | TRACE_UBOOT_START = 0x00020000,
|
| 29 | TRACE_UBOOT_PMU,
|
| 30 | TRACE_UBOOT_NAND,
|
| 31 | TRACE_UBOOT_TLOAD,
|
| 32 | TRACE_UBOOT_PARTITION,
|
| 33 | TRACE_UBOOT_PSHOLD,
|
| 34 | TRACE_UBOOT_FOTA_UPDATE,
|
| 35 | TRACE_UBOOT_FOTA,
|
| 36 | TRACE_UBOOT_FOTA_RESET,
|
| 37 | TRACE_UBOOT_CHECK_POWERKEY,
|
| 38 | TRACE_UBOOT_POWER_REASON,
|
| 39 | TRACE_UBOOT_LOW_BATTERY,
|
| 40 | TRACE_UBOOT_SHOW_LCD,
|
| 41 | TRACE_UBOOT_LOAD_IMAGE,
|
| 42 | TRACE_UBOOT_LOAD_LINUX,
|
| 43 | TRACE_UBOOT_MAINLOOP,
|
| 44 | TRACE_UBOOT_16,
|
| 45 | TRACE_UBOOT_17,
|
| 46 | TRACE_UBOOT_18,
|
| 47 | TRACE_UBOOT_BOOT_LINUX = 0x00029999, /*uboot start normal*/
|
| 48 |
|
| 49 | TRACE_RPM_0 = 0x00030000,
|
| 50 | TRACE_RPM_1,
|
| 51 | TRACE_RPM_SLEEP,
|
| 52 | TRACE_RPM_RUNNING,
|
| 53 | TRACE_RPM_4,
|
| 54 | TRACE_RPM_5,
|
| 55 | TRACE_RPM_6,
|
| 56 | TRACE_RPM_7,
|
| 57 | TRACE_RPM_8,
|
| 58 | TRACE_RPM_9,
|
| 59 | TRACE_RPM_10,
|
| 60 | TRACE_RPM_11,
|
| 61 | TRACE_RPM_12,
|
| 62 | TRACE_RPM_13,
|
| 63 | TRACE_RPM_14,
|
| 64 | TRACE_RPM_15,
|
| 65 | TRACE_RPM_16,
|
| 66 | TRACE_RPM_17,
|
| 67 | TRACE_RPM_18,
|
| 68 | TRACE_RPM_19,
|
| 69 |
|
| 70 | TRACE_AP_0 = 0x00040000,
|
| 71 | TRACE_AP_INIT_CALL,
|
| 72 | TRACE_AP_SLEEP,
|
| 73 | TRACE_AP_RUNNING,
|
| 74 | TRACE_AP_4,
|
| 75 | TRACE_AP_5,
|
| 76 | TRACE_AP_6,
|
| 77 | TRACE_AP_7,
|
| 78 | TRACE_AP_8,
|
| 79 | TRACE_AP_9,
|
| 80 | TRACE_AP_10,
|
| 81 | TRACE_AP_11,
|
| 82 | TRACE_AP_12,
|
| 83 | TRACE_AP_13,
|
| 84 | TRACE_AP_14,
|
| 85 | TRACE_AP_15,
|
| 86 | TRACE_AP_16,
|
| 87 | TRACE_AP_17,
|
| 88 | TRACE_AP_18,
|
| 89 | TRACE_AP_19,
|
| 90 |
|
| 91 | TRACE_PS_0 = 0x00050000,
|
| 92 | TRACE_PS_1,
|
| 93 | TRACE_PS_SLEEP,
|
| 94 | TRACE_PS_RUNNING,
|
| 95 | TRACE_PS_4,
|
| 96 | TRACE_PS_5,
|
| 97 | TRACE_PS_6,
|
| 98 | TRACE_PS_7,
|
| 99 | TRACE_PS_8,
|
| 100 | TRACE_PS_9,
|
| 101 | TRACE_PS_10,
|
| 102 | TRACE_PS_11,
|
| 103 | TRACE_PS_12,
|
| 104 | TRACE_PS_13,
|
| 105 | TRACE_PS_14,
|
| 106 | TRACE_PS_15,
|
| 107 | TRACE_PS_16,
|
| 108 | TRACE_PS_17,
|
| 109 | TRACE_PS_18,
|
| 110 | TRACE_PS_19,
|
| 111 |
|
| 112 | TRACE_PHY_0 = 0x00060000,
|
| 113 | TRACE_PHY_1,
|
| 114 | TRACE_PHY_SLEEP,
|
| 115 | TRACE_PHY_RUNNING,
|
| 116 | TRACE_PHY_4,
|
| 117 | TRACE_PHY_5,
|
| 118 | TRACE_PHY_6,
|
| 119 | TRACE_PHY_7,
|
| 120 | TRACE_PHY_8,
|
| 121 | TRACE_PHY_9,
|
| 122 | TRACE_PHY_10,
|
| 123 | TRACE_PHY_11,
|
| 124 | TRACE_PHY_12,
|
| 125 | TRACE_PHY_13,
|
| 126 | TRACE_PHY_14,
|
| 127 | TRACE_PHY_15,
|
| 128 | TRACE_PHY_16,
|
| 129 | TRACE_PHY_17,
|
| 130 | TRACE_PHY_18,
|
| 131 | TRACE_PHY_19,
|
| 132 |
|
| 133 | TRACE_SYSENTRY = 0x00070000,
|
| 134 | TRACE_SYSENTRY_FINISH,
|
| 135 | TRACE_HAL_INIT,
|
| 136 | TRACE_HAL_REF_INIT,
|
| 137 | TRACE_SLEEP,
|
| 138 | TRACE_RUNNING,
|
| 139 | TRACE_COMM_6,
|
| 140 | TRACE_COMM_7,
|
| 141 | TRACE_COMM_8,
|
| 142 | TRACE_COMM_9,
|
| 143 | TRACE_COMM_10,
|
| 144 | TRACE_COMM_11,
|
| 145 | TRACE_COMM_12,
|
| 146 | TRACE_COMM_13,
|
| 147 | TRACE_COMM_14,
|
| 148 | TRACE_COMM_15,
|
| 149 | TRACE_COMM_16,
|
| 150 | TRACE_COMM_17,
|
| 151 | TRACE_COMM_18,
|
| 152 | TRACE_COMM_19,
|
| 153 |
|
| 154 | } T_TRACE_FLAG;
|
| 155 |
|
| 156 | /**************************************************************************
|
| 157 | * º¯ÊýÃû³Æ£ºzSys_SetTraceFlag
|
| 158 | * ¹¦ÄÜÃèÊö£ºÉèÖøú×ÙLOG
|
| 159 | * ²ÎÊý˵Ã÷£º
|
| 160 | * ·µ »Ø Öµ£º
|
| 161 | * ÆäËü˵Ã÷£º
|
| 162 | **************************************************************************/
|
| 163 | VOID zSys_SetTraceFlag(T_TRACE_FLAG flag, VOID *data);
|
| 164 |
|
| 165 | /**************************************************************************
|
| 166 | * º¯ÊýÃû³Æ£ºzSys_GetTraceFlag
|
| 167 | * ¹¦ÄÜÃèÊö£º²éѯ¸ú×ÙLOG
|
| 168 | * ²ÎÊý˵Ã÷£º
|
| 169 | * ·µ »Ø Öµ£º
|
| 170 | * ÆäËü˵Ã÷£º
|
| 171 | **************************************************************************/
|
| 172 | T_TRACE_FLAG zSys_GetTraceFlag(VOID);
|
| 173 |
|
| 174 |
|
| 175 | #endif
|