-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrf_hif.h
More file actions
64 lines (59 loc) · 2.02 KB
/
rf_hif.h
File metadata and controls
64 lines (59 loc) · 2.02 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0)
* Copyright 2020 NXP
*
*/
#ifndef __RF_HIF_H__
#define __RF_HIF_H__
#include "rf_sw_cmds.h"
struct rf_ep_stats {
uint32_t init_state[E200_CORE_COUNT];
uint32_t core_task_state;
uint32_t remote_isr_hit_count[RF_TOTAL_USERS];
uint32_t remote_isr_enqueue_failed[RF_TOTAL_USERS];
uint32_t remote_isr_event_send_failed[RF_TOTAL_USERS];
uint32_t remote_cmd_timeout[RF_TOTAL_USERS][RF_SW_CMD_MAX_COUNT];
uint32_t core_task_local_cmd_count;
uint32_t core_task_remote_cmd_count;
uint32_t rfic_test;
uint32_t local_invalid_cmd_count;
uint32_t local_desc_errors;
uint32_t remote_desc_errors;
uint32_t remote_invalid_cmd_count[RF_TOTAL_USERS];
uint32_t core_task_local_cmd_errors;
uint32_t core_task_remote_cmd_error;
uint32_t local_queue_recv_failed;
uint32_t remote_queue_recv_failed[RF_TOTAL_USERS];
uint32_t local_resp_send_failed;
uint32_t local_sw_cmd_timeout_count;
uint32_t local_queue_send_failed;
uint32_t local_event_send_failed;
uint32_t remote_event_failure;
uint32_t desc_latest_result[RF_TOTAL_USERS];
uint32_t cmd_counts[RF_TOTAL_USERS][RF_SW_CMD_MAX_COUNT];
uint32_t cmd_complete_counts[RF_TOTAL_USERS][RF_SW_CMD_MAX_COUNT];
uint32_t cmd_latencies[RF_TOTAL_USERS][RF_SW_CMD_MAX_COUNT];
uint32_t max_cmd_latencies[RF_TOTAL_USERS][RF_SW_CMD_MAX_COUNT];
uint32_t sqt_pending_cmd;
uint32_t sqt_pending_cmd_trx_type;
uint32_t sqt_pending_cmd_pending_trx_count;
uint32_t sqt_pending_cmd_inserted_fpga;
uint32_t sqt_rejected_cmd[RF_SW_CMD_MAX_COUNT];
uint32_t sqt_error_cmd[RF_SW_CMD_MAX_COUNT];
uint32_t sqt_completed_cmd[RF_SW_CMD_MAX_COUNT];
uint32_t vcxo_index;
uint32_t rx_gain_lut_index;
uint32_t rx_gain_beam_mask;
uint32_t bbk_index_rx;
uint32_t bbk_index_tx;
uint32_t tx_gain_lut_index;
} __attribute__ ((packed));
struct rf_stats {
struct rf_ep_stats ep_stats;
} __attribute__ ((packed));
struct rf_host_if {
struct rf_common_mdata rf_mdata;
struct rf_priv_mdata rf_prv_mdata;
struct rf_stats stats;
} __attribute__ ((packed));
#endif /* __RF_HIF_H__ */