[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit

Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/pub/include/infra/pub_debug_info.h b/pub/include/infra/pub_debug_info.h
new file mode 100755
index 0000000..73c79f2
--- /dev/null
+++ b/pub/include/infra/pub_debug_info.h
@@ -0,0 +1,55 @@
+#ifndef _PUB_DEBUG_INFO_H_
+#define _PUB_DEBUG_INFO_H_
+
+#include <stdarg.h>
+
+#define DEBUG_INFO_DEV_PATH "/dev/debug_info"
+
+/* AP²àºÍCAP²àµÄPS\KERNEL\DRIVER\FS\APP  ÒÔSTART~ENDÎªÇø¼ä£¬¸÷²¿·ÖÔ¤ÁôÁË100¸öID */
+#define MODULE_ID_PS_START           (1)
+#define MODULE_ID_PS_NAS             (1)
+#define MODULE_ID_PS_RRC             (2)
+#define MODULE_ID_PS_L2              (3)
+#define MODULE_ID_PS_UICC            (99)
+#define MODULE_ID_PS_END             (100)
+
+#define MODULE_ID_AP_KERNEL_START    (101)
+#define MODULE_ID_AP_KERNEL_END      (200)
+
+#define MODULE_ID_CAP_KERNEL_START   (201)
+#define MODULE_ID_CAP_KERNEL_END     (300)
+
+#define MODULE_ID_AP_DRIVES_START    (301)
+#define MODULE_ID_AP_USB             (301)
+#define MODULE_ID_AP_DRIVES_END      (400)
+
+#define MODULE_ID_CAP_DRIVES_START   (401)
+#define MODULE_ID_CAP_USB            (401)
+#define MODULE_ID_CAP_DRIVES_END     (500)
+
+#define MODULE_ID_AP_FS_START        (501)
+#define MODULE_ID_AP_JFFS2           (501)
+#define MODULE_ID_AP_FS_END          (600)
+
+#define MODULE_ID_CAP_FS_START       (601)
+#define MODULE_ID_CAP_FS_END         (700)
+
+#define MODULE_ID_AP_APP_START       (701)
+#define MODULE_ID_AP_FOTA            (701)
+#define MODULE_ID_AP_FS_CHECK        (702)
+#define MODULE_ID_AP_APP_END         (800)
+
+#define MODULE_ID_CAP_APP_START      (801)
+#define MODULE_ID_CAP_FOTA           (801)
+#define MODULE_ID_CAP_FS_CHECK       (802)
+#define MODULE_ID_CAP_APP_END        (900)
+
+#if defined(_USE_ZXIC_DEBUG_INFO) && !defined(CONFIG_SYSTEM_RECOVERY)
+int sc_debug_info_vrecord(unsigned int id, const char *format, va_list args);
+int sc_debug_info_record(unsigned int id, const char *format, ...);
+#else
+static inline int sc_debug_info_vrecord(unsigned int id, const char *format, va_list args) { return 0; }
+static inline int sc_debug_info_record(unsigned int id, const char *format, ...) { return 0; }
+#endif
+
+#endif
\ No newline at end of file