blob: 73c79f262de4ea3da3b2cfc813cd5aef24201023 [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)
23#define MODULE_ID_AP_USB (301)
24#define MODULE_ID_AP_DRIVES_END (400)
25
26#define MODULE_ID_CAP_DRIVES_START (401)
27#define MODULE_ID_CAP_USB (401)
28#define MODULE_ID_CAP_DRIVES_END (500)
29
30#define MODULE_ID_AP_FS_START (501)
31#define MODULE_ID_AP_JFFS2 (501)
32#define MODULE_ID_AP_FS_END (600)
33
34#define MODULE_ID_CAP_FS_START (601)
35#define MODULE_ID_CAP_FS_END (700)
36
37#define MODULE_ID_AP_APP_START (701)
38#define MODULE_ID_AP_FOTA (701)
39#define MODULE_ID_AP_FS_CHECK (702)
40#define MODULE_ID_AP_APP_END (800)
41
42#define MODULE_ID_CAP_APP_START (801)
43#define MODULE_ID_CAP_FOTA (801)
44#define MODULE_ID_CAP_FS_CHECK (802)
45#define MODULE_ID_CAP_APP_END (900)
46
47#if defined(_USE_ZXIC_DEBUG_INFO) && !defined(CONFIG_SYSTEM_RECOVERY)
48int sc_debug_info_vrecord(unsigned int id, const char *format, va_list args);
49int sc_debug_info_record(unsigned int id, const char *format, ...);
50#else
51static inline int sc_debug_info_vrecord(unsigned int id, const char *format, va_list args) { return 0; }
52static inline int sc_debug_info_record(unsigned int id, const char *format, ...) { return 0; }
53#endif
54
55#endif