hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * This module is designed to collect internal diagnostic information.
 *
 *    Author: Cosa
 *    History: Created at 2023/02/03
 */
 
#ifndef _PHL_DIAGNOSE_H_
#define _PHL_DIAGNOSE_H_
 
#define MAX_PHL_DIAG_MSG_LEN 1024
#define INVALID_SUBMODULE_DIAG_EVT 0xff
 
enum rtw_phl_diag_evt_level {
   PHL_DIAG_LVL_FATAL = 0x0, /* unrecoverable error */
   PHL_DIAG_LVL_CRITICAL = 0x1, /* severe error events */
   PHL_DIAG_LVL_ERROR = 0x2, /* non-severe error events */
   PHL_DIAG_LVL_MAX
};
 
enum rtw_phl_diag_evt_type {
   PHL_DIAG_EVT_MAC = 0,
   PHL_DIAG_EVT_BB,
   PHL_DIAG_EVT_RF,
   PHL_DIAG_EVT_BTC,
   PHL_DIAG_EVT_MAX
};
 
struct rtw_phl_diag_msg {
   enum rtw_phl_diag_evt_type type;
   enum rtw_phl_diag_evt_level level;
   u8 sub_evt; /* submodule event id */
   u8 ver; /* version of debug content */
   u32 len;
   u8 buf[MAX_PHL_DIAG_MSG_LEN];
};
 
#endif /* _PHL_DIAGNOSE_H_ */