blob: 95a480fc6056092a8df16df4693af8e8e15dcc46 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#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 */
lh9ed821d2023-04-07 01:36:19 -07009
xf.lidf7f8ba2024-09-12 23:53:34 -070010#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")
lh9ed821d2023-04-07 01:36:19 -070021
lh9ed821d2023-04-07 01:36:19 -070022
xf.lidf7f8ba2024-09-12 23:53:34 -070023#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")
xf.libdd93d52023-05-12 07:10:14 -070031
lh9ed821d2023-04-07 01:36:19 -070032
xf.lidf7f8ba2024-09-12 23:53:34 -070033#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")
lh9ed821d2023-04-07 01:36:19 -070036
xf.lidf7f8ba2024-09-12 23:53:34 -070037#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, ...);
lh9ed821d2023-04-07 01:36:19 -070043#else
xf.lidf7f8ba2024-09-12 23:53:34 -070044static 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; }
lh9ed821d2023-04-07 01:36:19 -070046#endif
47
48#endif