blob: 5adb04b56cb8ef3590eefd08bfd02c980ff265d3 [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 */
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)
15
16#define MODULE_ID_AP_KERNEL_START (101)
17#define MODULE_ID_AP_KERNEL_END (200)
18
19#define MODULE_ID_CAP_KERNEL_START (201)
20#define MODULE_ID_CAP_KERNEL_END (300)
21
22#define MODULE_ID_AP_DRIVES_START (301)
xf.libdd93d52023-05-12 07:10:14 -070023#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
lh9ed821d2023-04-07 01:36:19 -070029#define MODULE_ID_AP_DRIVES_END (400)
30
31#define MODULE_ID_CAP_DRIVES_START (401)
32#define MODULE_ID_CAP_USB (401)
xf.libdd93d52023-05-12 07:10:14 -070033#define MODULE_ID_CAP_TSC (402)
34#define MODULE_ID_CAP_PSM (403)
35#define MODULE_ID_CAP_NAND (404)
36
lh9ed821d2023-04-07 01:36:19 -070037#define MODULE_ID_CAP_DRIVES_END (500)
38
39#define MODULE_ID_AP_FS_START (501)
40#define MODULE_ID_AP_JFFS2 (501)
41#define MODULE_ID_AP_FS_END (600)
42
43#define MODULE_ID_CAP_FS_START (601)
44#define MODULE_ID_CAP_FS_END (700)
45
46#define MODULE_ID_AP_APP_START (701)
47#define MODULE_ID_AP_FOTA (701)
48#define MODULE_ID_AP_FS_CHECK (702)
49#define MODULE_ID_AP_APP_END (800)
50
51#define MODULE_ID_CAP_APP_START (801)
52#define MODULE_ID_CAP_FOTA (801)
53#define MODULE_ID_CAP_FS_CHECK (802)
54#define MODULE_ID_CAP_APP_END (900)
55
56#if defined(_USE_ZXIC_DEBUG_INFO) && !defined(CONFIG_SYSTEM_RECOVERY)
57int sc_debug_info_vrecord(unsigned int id, const char *format, va_list args);
58int sc_debug_info_record(unsigned int id, const char *format, ...);
59#else
60static inline int sc_debug_info_vrecord(unsigned int id, const char *format, va_list args) { return 0; }
61static inline int sc_debug_info_record(unsigned int id, const char *format, ...) { return 0; }
62#endif
63
64#endif