lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #ifndef _PUB_DEBUG_INFO_H_ |
| 2 | #define _PUB_DEBUG_INFO_H_ |
| 3 | |
| 4 | #include <stdarg.h> |
| 5 | |
| 6 | #define DEBUG_INFO_DEV_PATH "/dev/debug_info" |
| 7 | |
| 8 | /* AP²àºÍCAP²àµÄPS\KERNEL\DRIVER\FS\APP ÒÔSTART~ENDÎªÇø¼ä£¬¸÷²¿·ÖÔ¤ÁôÁË100¸öID */ |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 9 | #define MODULE_ID_PS_START (1) |
| 10 | #define MODULE_ID_PS_NAS (1) |
| 11 | #define MODULE_ID_PS_RRC (2) |
| 12 | #define MODULE_ID_PS_L2 (3) |
| 13 | #define MODULE_ID_PS_UICC (99) |
| 14 | #define MODULE_ID_PS_END (100) |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 15 | |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 16 | #define MODULE_ID_AP_KERNEL_START (101) |
| 17 | #define MODULE_ID_AP_KERNEL_END (200) |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 18 | |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 19 | #define MODULE_ID_CAP_KERNEL_START (201) |
| 20 | #define MODULE_ID_CAP_KERNEL_END (300) |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 21 | |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 22 | #define MODULE_ID_AP_DRIVES_START (301) |
| 23 | #define MODULE_ID_AP_USB (301) |
| 24 | #define MODULE_ID_AP_REBOOT (302) |
| 25 | #define MODULE_ID_AP_TSC (303) |
| 26 | #define MODULE_ID_AP_PSM (304) |
| 27 | #define MODULE_ID_AP_NAND (305) |
| 28 | #define MODULE_ID_AP_MMC (306) |
xf.li | e31de8b | 2023-12-26 23:38:58 -0800 | [diff] [blame] | 29 | #define MODULE_ID_AP_WIFI (307) |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 30 | #define MODULE_ID_AP_DRIVES_END (400) |
xf.li | bdd93d5 | 2023-05-12 07:10:14 -0700 | [diff] [blame] | 31 | |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 32 | #define MODULE_ID_CAP_DRIVES_START (401) |
| 33 | #define MODULE_ID_CAP_USB (401) |
| 34 | #define MODULE_ID_CAP_TSC (402) |
| 35 | #define MODULE_ID_CAP_PSM (403) |
| 36 | #define MODULE_ID_CAP_NAND (404) |
| 37 | #define MODULE_ID_CAP_SPI (405) |
| 38 | #define MODULE_ID_CAP_MMC (406) |
xf.li | e31de8b | 2023-12-26 23:38:58 -0800 | [diff] [blame] | 39 | #define MODULE_ID_CAP_UART (407) |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 40 | #define MODULE_ID_CAP_DRIVES_END (500) |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 41 | |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 42 | #define MODULE_ID_AP_FS_START (501) |
| 43 | #define MODULE_ID_AP_JFFS2 (501) |
| 44 | #define MODULE_ID_AP_FS_END (600) |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 45 | |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 46 | #define MODULE_ID_CAP_FS_START (601) |
| 47 | #define MODULE_ID_CAP_FS_END (700) |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 48 | |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 49 | #define MODULE_ID_AP_APP_START (701) |
| 50 | #define MODULE_ID_AP_FOTA (701) |
| 51 | #define MODULE_ID_AP_FS_CHECK (702) |
| 52 | #define MODULE_ID_AP_APP_END (800) |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 53 | |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 54 | #define MODULE_ID_CAP_APP_START (801) |
| 55 | #define MODULE_ID_CAP_FOTA (801) |
| 56 | #define MODULE_ID_CAP_FS_CHECK (802) |
| 57 | #define MODULE_ID_CAP_APP_END (900) |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 58 | |
| 59 | #if defined(_USE_ZXIC_DEBUG_INFO) && !defined(CONFIG_SYSTEM_RECOVERY) |
| 60 | int sc_debug_info_vrecord(unsigned int id, const char *format, va_list args); |
| 61 | int sc_debug_info_record(unsigned int id, const char *format, ...); |
| 62 | #else |
| 63 | static inline int sc_debug_info_vrecord(unsigned int id, const char *format, va_list args) { return 0; } |
| 64 | static inline int sc_debug_info_record(unsigned int id, const char *format, ...) { return 0; } |
| 65 | #endif |
| 66 | |
| 67 | #endif |