aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/wmi.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/wmi.h')
-rw-r--r--drivers/net/wireless/ath/ath10k/wmi.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi.h b/drivers/net/wireless/ath/ath10k/wmi.h
index 109ed623b82f..0514b1a525ff 100644
--- a/drivers/net/wireless/ath/ath10k/wmi.h
+++ b/drivers/net/wireless/ath/ath10k/wmi.h
@@ -3121,6 +3121,16 @@ struct wmi_stats_event {
3121 u8 data[0]; 3121 u8 data[0];
3122} __packed; 3122} __packed;
3123 3123
3124struct wmi_10_2_stats_event {
3125 __le32 stats_id; /* %WMI_REQUEST_ */
3126 __le32 num_pdev_stats;
3127 __le32 num_pdev_ext_stats;
3128 __le32 num_vdev_stats;
3129 __le32 num_peer_stats;
3130 __le32 num_bcnflt_stats;
3131 u8 data[0];
3132} __packed;
3133
3124/* 3134/*
3125 * PDEV statistics 3135 * PDEV statistics
3126 * TODO: add all PDEV stats here 3136 * TODO: add all PDEV stats here
@@ -3159,6 +3169,22 @@ struct wmi_10x_pdev_stats {
3159 struct wmi_pdev_stats_extra extra; 3169 struct wmi_pdev_stats_extra extra;
3160} __packed; 3170} __packed;
3161 3171
3172struct wmi_pdev_stats_mem {
3173 __le32 dram_free;
3174 __le32 iram_free;
3175} __packed;
3176
3177struct wmi_10_2_pdev_stats {
3178 struct wmi_pdev_stats_base base;
3179 struct wmi_pdev_stats_tx tx;
3180 __le32 mc_drop;
3181 struct wmi_pdev_stats_rx rx;
3182 __le32 pdev_rx_timeout;
3183 struct wmi_pdev_stats_mem mem;
3184 struct wmi_pdev_stats_peer peer;
3185 struct wmi_pdev_stats_extra extra;
3186} __packed;
3187
3162/* 3188/*
3163 * VDEV statistics 3189 * VDEV statistics
3164 * TODO: add all VDEV stats here 3190 * TODO: add all VDEV stats here
@@ -3182,6 +3208,32 @@ struct wmi_10x_peer_stats {
3182 __le32 peer_rx_rate; 3208 __le32 peer_rx_rate;
3183} __packed; 3209} __packed;
3184 3210
3211struct wmi_10_2_peer_stats {
3212 struct wmi_peer_stats old;
3213 __le32 peer_rx_rate;
3214 __le32 current_per;
3215 __le32 retries;
3216 __le32 tx_rate_count;
3217 __le32 max_4ms_frame_len;
3218 __le32 total_sub_frames;
3219 __le32 tx_bytes;
3220 __le32 num_pkt_loss_overflow[4];
3221 __le32 num_pkt_loss_excess_retry[4];
3222} __packed;
3223
3224struct wmi_10_2_4_peer_stats {
3225 struct wmi_10_2_peer_stats common;
3226 __le32 unknown_value; /* FIXME: what is this word? */
3227} __packed;
3228
3229struct wmi_10_2_pdev_ext_stats {
3230 __le32 rx_rssi_comb;
3231 __le32 rx_rssi[4];
3232 __le32 rx_mcs[10];
3233 __le32 tx_mcs[10];
3234 __le32 ack_rssi;
3235} __packed;
3236
3185struct wmi_vdev_create_cmd { 3237struct wmi_vdev_create_cmd {
3186 __le32 vdev_id; 3238 __le32 vdev_id;
3187 __le32 vdev_type; 3239 __le32 vdev_type;