blob: 93b5a803e68f6b2d2d7b87683fc331a53cf2eaa5 [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)
29#define MODULE_ID_AP_DRIVES_END (400)
xf.libdd93d52023-05-12 07:10:14 -070030
xf.li6c8fc1e2023-08-12 00:11:09 -070031#define MODULE_ID_CAP_DRIVES_START (401)
32#define MODULE_ID_CAP_USB (401)
33#define MODULE_ID_CAP_TSC (402)
34#define MODULE_ID_CAP_PSM (403)
35#define MODULE_ID_CAP_NAND (404)
36#define MODULE_ID_CAP_SPI (405)
37#define MODULE_ID_CAP_MMC (406)
38#define MODULE_ID_CAP_DRIVES_END (500)
lh9ed821d2023-04-07 01:36:19 -070039
xf.li6c8fc1e2023-08-12 00:11:09 -070040#define MODULE_ID_AP_FS_START (501)
41#define MODULE_ID_AP_JFFS2 (501)
42#define MODULE_ID_AP_FS_END (600)
lh9ed821d2023-04-07 01:36:19 -070043
xf.li6c8fc1e2023-08-12 00:11:09 -070044#define MODULE_ID_CAP_FS_START (601)
45#define MODULE_ID_CAP_FS_END (700)
lh9ed821d2023-04-07 01:36:19 -070046
xf.li6c8fc1e2023-08-12 00:11:09 -070047#define MODULE_ID_AP_APP_START (701)
48#define MODULE_ID_AP_FOTA (701)
49#define MODULE_ID_AP_FS_CHECK (702)
50#define MODULE_ID_AP_APP_END (800)
lh9ed821d2023-04-07 01:36:19 -070051
xf.li6c8fc1e2023-08-12 00:11:09 -070052#define MODULE_ID_CAP_APP_START (801)
53#define MODULE_ID_CAP_FOTA (801)
54#define MODULE_ID_CAP_FS_CHECK (802)
55#define MODULE_ID_CAP_APP_END (900)
lh9ed821d2023-04-07 01:36:19 -070056
57#if defined(_USE_ZXIC_DEBUG_INFO) && !defined(CONFIG_SYSTEM_RECOVERY)
58int sc_debug_info_vrecord(unsigned int id, const char *format, va_list args);
59int sc_debug_info_record(unsigned int id, const char *format, ...);
60#else
61static inline int sc_debug_info_vrecord(unsigned int id, const char *format, va_list args) { return 0; }
62static inline int sc_debug_info_record(unsigned int id, const char *format, ...) { return 0; }
63#endif
64
65#endif