blob: 10357aa34e6251e6c1698bdb7a251f7643be2169 [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 */
xf.li6c8fc1e2023-08-12 00:11:09 -07009#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)
lh9ed821d2023-04-07 01:36:19 -070015
xf.li6c8fc1e2023-08-12 00:11:09 -070016#define MODULE_ID_AP_KERNEL_START (101)
17#define MODULE_ID_AP_KERNEL_END (200)
lh9ed821d2023-04-07 01:36:19 -070018
xf.li6c8fc1e2023-08-12 00:11:09 -070019#define MODULE_ID_CAP_KERNEL_START (201)
20#define MODULE_ID_CAP_KERNEL_END (300)
lh9ed821d2023-04-07 01:36:19 -070021
xf.li6c8fc1e2023-08-12 00:11:09 -070022#define MODULE_ID_AP_DRIVES_START (301)
23#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#define MODULE_ID_AP_MMC (306)
xf.lie31de8b2023-12-26 23:38:58 -080029#define MODULE_ID_AP_WIFI (307)
xf.li6c8fc1e2023-08-12 00:11:09 -070030#define MODULE_ID_AP_DRIVES_END (400)
xf.libdd93d52023-05-12 07:10:14 -070031
xf.li6c8fc1e2023-08-12 00:11:09 -070032#define MODULE_ID_CAP_DRIVES_START (401)
33#define MODULE_ID_CAP_USB (401)
34#define MODULE_ID_CAP_TSC (402)
35#define MODULE_ID_CAP_PSM (403)
36#define MODULE_ID_CAP_NAND (404)
37#define MODULE_ID_CAP_SPI (405)
38#define MODULE_ID_CAP_MMC (406)
xf.lie31de8b2023-12-26 23:38:58 -080039#define MODULE_ID_CAP_UART (407)
xf.li6c8fc1e2023-08-12 00:11:09 -070040#define MODULE_ID_CAP_DRIVES_END (500)
lh9ed821d2023-04-07 01:36:19 -070041
xf.li6c8fc1e2023-08-12 00:11:09 -070042#define MODULE_ID_AP_FS_START (501)
43#define MODULE_ID_AP_JFFS2 (501)
44#define MODULE_ID_AP_FS_END (600)
lh9ed821d2023-04-07 01:36:19 -070045
xf.li6c8fc1e2023-08-12 00:11:09 -070046#define MODULE_ID_CAP_FS_START (601)
47#define MODULE_ID_CAP_FS_END (700)
lh9ed821d2023-04-07 01:36:19 -070048
xf.li6c8fc1e2023-08-12 00:11:09 -070049#define MODULE_ID_AP_APP_START (701)
50#define MODULE_ID_AP_FOTA (701)
51#define MODULE_ID_AP_FS_CHECK (702)
52#define MODULE_ID_AP_APP_END (800)
lh9ed821d2023-04-07 01:36:19 -070053
xf.li6c8fc1e2023-08-12 00:11:09 -070054#define MODULE_ID_CAP_APP_START (801)
55#define MODULE_ID_CAP_FOTA (801)
56#define MODULE_ID_CAP_FS_CHECK (802)
57#define MODULE_ID_CAP_APP_END (900)
lh9ed821d2023-04-07 01:36:19 -070058
59#if defined(_USE_ZXIC_DEBUG_INFO) && !defined(CONFIG_SYSTEM_RECOVERY)
60int sc_debug_info_vrecord(unsigned int id, const char *format, va_list args);
61int sc_debug_info_record(unsigned int id, const char *format, ...);
62#else
63static inline int sc_debug_info_vrecord(unsigned int id, const char *format, va_list args) { return 0; }
64static inline int sc_debug_info_record(unsigned int id, const char *format, ...) { return 0; }
65#endif
66
67#endif