blob: 95a480fc6056092a8df16df4693af8e8e15dcc46 [file] [log] [blame]
l.yangb8fdece2024-10-10 14:56:17 +08001#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.yangb8fdece2024-10-10 14:56:17 +08009
l.yangc3c1e4d2024-10-10 15:12:55 +080010#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.yangb8fdece2024-10-10 14:56:17 +080021
l.yangb8fdece2024-10-10 14:56:17 +080022
l.yangc3c1e4d2024-10-10 15:12:55 +080023#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.yangb8fdece2024-10-10 14:56:17 +080031
l.yangb8fdece2024-10-10 14:56:17 +080032
l.yangc3c1e4d2024-10-10 15:12:55 +080033#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.yangb8fdece2024-10-10 14:56:17 +080036
l.yangc3c1e4d2024-10-10 15:12:55 +080037#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)
41int sc_debug_info_vrecord(char *id, const char *format, va_list args);
42int sc_debug_info_record(char *id, const char *format, ...);
l.yangb8fdece2024-10-10 14:56:17 +080043#else
l.yangc3c1e4d2024-10-10 15:12:55 +080044static inline int sc_debug_info_vrecord(char *id, const char *format, va_list args) { return 0; }
45static inline int sc_debug_info_record(char *id, const char *format, ...) { return 0; }
l.yangb8fdece2024-10-10 14:56:17 +080046#endif
47
48#endif