• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef __DFX_SYS_H__
17 #define __DFX_SYS_H__
18 
19 #include "hi_types.h"
20 #include "hi_mdm_types.h"
21 #include <hi_ft_nv.h>
22 
23 HI_START_HEADER
24 
25 typedef struct {
26     hi_u16 send_uart_fail_cnt;
27     hi_u16 ack_ind_malloc_fail_cnt;
28     hi_u16 msg_malloc_fail_cnt;
29     hi_u16 msg_send_fail_cnt;
30     hi_u16 msg_overbig_cnt;
31     hi_u16 ind_send_fail_cnt;
32     hi_u16 ind_malloc_fail_cnt;
33     hi_u8 diag_queue_used_cnt;
34     hi_u8 diag_queue_total_cnt;
35     hi_u8 dec_fail_cnt;
36     hi_u8 enc_fail_cnt;
37     hi_u16 pkt_size_err_cnt;
38     hi_u32 local_req_cnt;
39     hi_u16 req_cache_overflow_cnt;
40     hi_u8 conn_excep_cnt;
41     hi_u8 conn_bu_cnt;
42     hi_u8 chl_busy_cnt;
43     hi_u8 req_overbig1_cnt;
44     hi_u8 cmd_list_total_cnt;
45     hi_u8 cmd_list_used_cnt;
46     hi_u8 stat_list_total_cnt;
47     hi_u8 stat_list_used_cnt;
48     hi_u8 req_overbig2_cnt;
49     hi_u8 invalid_dec_id;
50     hi_u8 heart_beat_timeout_cnt;
51     hi_u8 rx_start_flag_wrong_cnt;
52     hi_u8 rx_cs_wrong_cnt;
53     hi_u8 rx_pkt_data_size_wrong_cnt;
54     hi_u16 msg_enqueue_fail_cnt;
55     hi_u16 pad;
56 } hi_stat_diag;
57 
58 HI_END_HEADER
59 #endif  /* __DFX_SYS_H__ */
60