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 */ |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 9 | |
xf.li | df7f8ba | 2024-09-12 23:53:34 -0700 | [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") |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 21 | |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 22 | |
xf.li | df7f8ba | 2024-09-12 23:53:34 -0700 | [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") |
xf.li | bdd93d5 | 2023-05-12 07:10:14 -0700 | [diff] [blame] | 31 | |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 32 | |
xf.li | df7f8ba | 2024-09-12 23:53:34 -0700 | [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") |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 36 | |
xf.li | df7f8ba | 2024-09-12 23:53:34 -0700 | [diff] [blame] | 37 | #define MODULE_ID_CAP_FOTA ("cap_fota") |
| 38 | #define MODULE_ID_CAP_FS_CHECK ("cap_fs_check") |
xf.li | a7d2a2b | 2025-02-10 01:44:22 -0800 | [diff] [blame] | 39 | |
| 40 | #define MODULE_ID_PS_AUDIO ("ps_audio") |
| 41 | #define MODULE_ID_AP_AUDIO ("ap_audio") |
| 42 | #define MODULE_ID_CAP_AUDIO ("cap_audio") |
xf.li | df7f8ba | 2024-09-12 23:53:34 -0700 | [diff] [blame] | 43 | |
| 44 | #if defined(_USE_ZXIC_DEBUG_INFO) |
| 45 | int sc_debug_info_vrecord(char *id, const char *format, va_list args); |
| 46 | int sc_debug_info_record(char *id, const char *format, ...); |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 47 | #else |
xf.li | df7f8ba | 2024-09-12 23:53:34 -0700 | [diff] [blame] | 48 | static inline int sc_debug_info_vrecord(char *id, const char *format, va_list args) { return 0; } |
| 49 | static inline int sc_debug_info_record(char *id, const char *format, ...) { return 0; } |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 50 | #endif |
| 51 | |
| 52 | #endif |