l.yang | b8fdece | 2024-10-10 14:56:17 +0800 | [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 */ |
l.yang | b8fdece | 2024-10-10 14:56:17 +0800 | [diff] [blame] | 9 | |
l.yang | c3c1e4d | 2024-10-10 15:12:55 +0800 | [diff] [blame] | 10 | #define MODULE_ID_PS_NAS ("ps_nas") |
| 11 | #define MODULE_ID_PS_RRC ("ps_rrc") |
| 12 | #define MODULE_ID_PS_L2 ("ps_l2") |
| 13 | #define MODULE_ID_PS_UICC ("ps_uicc") |
| 14 | #define MODULE_ID_AP_USB ("ap_usb") |
| 15 | #define MODULE_ID_AP_REBOOT ("ap_reboot") |
| 16 | #define MODULE_ID_AP_TSC ("ap_tsc") |
| 17 | #define MODULE_ID_AP_PSM ("ap_psm") |
| 18 | #define MODULE_ID_AP_NAND ("ap_nand") |
| 19 | #define MODULE_ID_AP_MMC ("ap_mmc") |
| 20 | #define MODULE_ID_AP_WIFI ("ap_wifi") |
l.yang | b8fdece | 2024-10-10 14:56:17 +0800 | [diff] [blame] | 21 | |
l.yang | b8fdece | 2024-10-10 14:56:17 +0800 | [diff] [blame] | 22 | |
l.yang | c3c1e4d | 2024-10-10 15:12:55 +0800 | [diff] [blame] | 23 | #define MODULE_ID_CAP_USB ("cap_usb") |
| 24 | #define MODULE_ID_CAP_TSC ("cap_tsc") |
| 25 | #define MODULE_ID_CAP_PSM ("cap_psm") |
| 26 | #define MODULE_ID_CAP_NAND ("cap_nand") |
| 27 | #define MODULE_ID_CAP_SPI ("cap_spi") |
| 28 | #define MODULE_ID_CAP_MMC ("cap_mmc") |
| 29 | #define MODULE_ID_CAP_UART ("cap_uart") |
| 30 | #define MODULE_ID_CAP_PM ("cap_pm") |
l.yang | b8fdece | 2024-10-10 14:56:17 +0800 | [diff] [blame] | 31 | |
l.yang | b8fdece | 2024-10-10 14:56:17 +0800 | [diff] [blame] | 32 | |
l.yang | c3c1e4d | 2024-10-10 15:12:55 +0800 | [diff] [blame] | 33 | #define MODULE_ID_AP_JFFS2 ("ap_jffs2") |
| 34 | #define MODULE_ID_AP_FOTA ("ap_fota") |
| 35 | #define MODULE_ID_AP_FS_CHECK ("ap_fs_check") |
l.yang | b8fdece | 2024-10-10 14:56:17 +0800 | [diff] [blame] | 36 | |
l.yang | c3c1e4d | 2024-10-10 15:12:55 +0800 | [diff] [blame] | 37 | #define MODULE_ID_CAP_FOTA ("cap_fota") |
| 38 | #define MODULE_ID_CAP_FS_CHECK ("cap_fs_check") |
| 39 | |
| 40 | #if defined(_USE_ZXIC_DEBUG_INFO) |
| 41 | int sc_debug_info_vrecord(char *id, const char *format, va_list args); |
| 42 | int sc_debug_info_record(char *id, const char *format, ...); |
l.yang | b8fdece | 2024-10-10 14:56:17 +0800 | [diff] [blame] | 43 | #else |
l.yang | c3c1e4d | 2024-10-10 15:12:55 +0800 | [diff] [blame] | 44 | static inline int sc_debug_info_vrecord(char *id, const char *format, va_list args) { return 0; } |
| 45 | static inline int sc_debug_info_record(char *id, const char *format, ...) { return 0; } |
l.yang | b8fdece | 2024-10-10 14:56:17 +0800 | [diff] [blame] | 46 | #endif |
| 47 | |
| 48 | #endif |