wil6210.h (aea2f8b781b2a76fb0af4de2273d0c56c6d256a4) wil6210.h (0c936b3c96337c3fd5ad4951ca7bdc54fa578a02)
1/*
2 * Copyright (c) 2012-2017 Qualcomm Atheros, Inc.
3 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *

--- 714 unchanged lines hidden (view full) ---

723 struct wil_net_stats stats;
724 /**
725 * 20 latency bins. 1st bin counts packets with latency
726 * of 0..tx_latency_res, last bin counts packets with latency
727 * of 19*tx_latency_res and above.
728 * tx_latency_res is configured from "tx_latency" debug-fs.
729 */
730 u64 *tx_latency_bins;
1/*
2 * Copyright (c) 2012-2017 Qualcomm Atheros, Inc.
3 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *

--- 714 unchanged lines hidden (view full) ---

723 struct wil_net_stats stats;
724 /**
725 * 20 latency bins. 1st bin counts packets with latency
726 * of 0..tx_latency_res, last bin counts packets with latency
727 * of 19*tx_latency_res and above.
728 * tx_latency_res is configured from "tx_latency" debug-fs.
729 */
730 u64 *tx_latency_bins;
731 struct wmi_link_stats_basic fw_stats_basic;
731 /* Rx BACK */
732 struct wil_tid_ampdu_rx *tid_rx[WIL_STA_TID_NUM];
733 spinlock_t tid_rx_lock; /* guarding tid_rx array */
734 unsigned long tid_rx_timer_expired[BITS_TO_LONGS(WIL_STA_TID_NUM)];
735 unsigned long tid_rx_stop_requested[BITS_TO_LONGS(WIL_STA_TID_NUM)];
736 struct wil_tid_crypto_rx tid_crypto_rx[WIL_STA_TID_NUM];
737 struct wil_tid_crypto_rx group_crypto_rx;
738 u8 aid; /* 1-254; 0 if unknown/not reported */

--- 98 unchanged lines hidden (view full) ---

837 struct cfg80211_scan_request *scan_request;
838 struct timer_list scan_timer; /* detect scan timeout */
839 struct wil_p2p_info p2p;
840 /* keep alive */
841 struct list_head probe_client_pending;
842 struct mutex probe_client_mutex; /* protect @probe_client_pending */
843 struct work_struct probe_client_worker;
844 int net_queue_stopped; /* netif_tx_stop_all_queues invoked */
732 /* Rx BACK */
733 struct wil_tid_ampdu_rx *tid_rx[WIL_STA_TID_NUM];
734 spinlock_t tid_rx_lock; /* guarding tid_rx array */
735 unsigned long tid_rx_timer_expired[BITS_TO_LONGS(WIL_STA_TID_NUM)];
736 unsigned long tid_rx_stop_requested[BITS_TO_LONGS(WIL_STA_TID_NUM)];
737 struct wil_tid_crypto_rx tid_crypto_rx[WIL_STA_TID_NUM];
738 struct wil_tid_crypto_rx group_crypto_rx;
739 u8 aid; /* 1-254; 0 if unknown/not reported */

--- 98 unchanged lines hidden (view full) ---

838 struct cfg80211_scan_request *scan_request;
839 struct timer_list scan_timer; /* detect scan timeout */
840 struct wil_p2p_info p2p;
841 /* keep alive */
842 struct list_head probe_client_pending;
843 struct mutex probe_client_mutex; /* protect @probe_client_pending */
844 struct work_struct probe_client_worker;
845 int net_queue_stopped; /* netif_tx_stop_all_queues invoked */
846 bool fw_stats_ready; /* per-cid statistics are ready inside sta_info */
847 u64 fw_stats_tsf; /* measurement timestamp */
845};
846
847/**
848 * RX buffer allocated for enhanced DMA RX descriptors
849 */
850struct wil_rx_buff {
851 struct sk_buff *skb;
852 struct list_head list;

--- 11 unchanged lines hidden (view full) ---

864struct wil_rx_buff_mgmt {
865 struct wil_rx_buff *buff_arr;
866 size_t size; /* number of items in buff_arr */
867 struct list_head active;
868 struct list_head free;
869 unsigned long free_list_empty_cnt; /* statistics */
870};
871
848};
849
850/**
851 * RX buffer allocated for enhanced DMA RX descriptors
852 */
853struct wil_rx_buff {
854 struct sk_buff *skb;
855 struct list_head list;

--- 11 unchanged lines hidden (view full) ---

867struct wil_rx_buff_mgmt {
868 struct wil_rx_buff *buff_arr;
869 size_t size; /* number of items in buff_arr */
870 struct list_head active;
871 struct list_head free;
872 unsigned long free_list_empty_cnt; /* statistics */
873};
874
875struct wil_fw_stats_global {
876 bool ready;
877 u64 tsf; /* measurement timestamp */
878 struct wmi_link_stats_global stats;
879};
880
872struct wil6210_priv {
873 struct pci_dev *pdev;
874 u32 bar_size;
875 struct wiphy *wiphy;
876 struct net_device *main_ndev;
877 int n_msi;
878 void __iomem *csr;
879 DECLARE_BITMAP(status, wil_status_last);

--- 117 unchanged lines hidden (view full) ---

997 bool use_compressed_rx_status;
998 u32 rx_status_ring_order;
999 u32 tx_status_ring_order;
1000 u32 rx_buff_id_count;
1001 bool amsdu_en;
1002 bool use_rx_hw_reordering;
1003 bool secured_boot;
1004 u8 boot_config;
881struct wil6210_priv {
882 struct pci_dev *pdev;
883 u32 bar_size;
884 struct wiphy *wiphy;
885 struct net_device *main_ndev;
886 int n_msi;
887 void __iomem *csr;
888 DECLARE_BITMAP(status, wil_status_last);

--- 117 unchanged lines hidden (view full) ---

1006 bool use_compressed_rx_status;
1007 u32 rx_status_ring_order;
1008 u32 tx_status_ring_order;
1009 u32 rx_buff_id_count;
1010 bool amsdu_en;
1011 bool use_rx_hw_reordering;
1012 bool secured_boot;
1013 u8 boot_config;
1014
1015 struct wil_fw_stats_global fw_stats_global;
1005};
1006
1007#define wil_to_wiphy(i) (i->wiphy)
1008#define wil_to_dev(i) (wiphy_dev(wil_to_wiphy(i)))
1009#define wiphy_to_wil(w) (struct wil6210_priv *)(wiphy_priv(w))
1010#define wdev_to_wil(w) (struct wil6210_priv *)(wdev_priv(w))
1011#define ndev_to_wil(n) (wdev_to_wil(n->ieee80211_ptr))
1012#define ndev_to_vif(n) (struct wil6210_vif *)(netdev_priv(n))

--- 183 unchanged lines hidden (view full) ---

1196int wmi_ps_dev_profile_cfg(struct wil6210_priv *wil,
1197 enum wmi_ps_profile_type ps_profile);
1198int wmi_set_mgmt_retry(struct wil6210_priv *wil, u8 retry_short);
1199int wmi_get_mgmt_retry(struct wil6210_priv *wil, u8 *retry_short);
1200int wmi_new_sta(struct wil6210_vif *vif, const u8 *mac, u8 aid);
1201int wmi_port_allocate(struct wil6210_priv *wil, u8 mid,
1202 const u8 *mac, enum nl80211_iftype iftype);
1203int wmi_port_delete(struct wil6210_priv *wil, u8 mid);
1016};
1017
1018#define wil_to_wiphy(i) (i->wiphy)
1019#define wil_to_dev(i) (wiphy_dev(wil_to_wiphy(i)))
1020#define wiphy_to_wil(w) (struct wil6210_priv *)(wiphy_priv(w))
1021#define wdev_to_wil(w) (struct wil6210_priv *)(wdev_priv(w))
1022#define ndev_to_wil(n) (wdev_to_wil(n->ieee80211_ptr))
1023#define ndev_to_vif(n) (struct wil6210_vif *)(netdev_priv(n))

--- 183 unchanged lines hidden (view full) ---

1207int wmi_ps_dev_profile_cfg(struct wil6210_priv *wil,
1208 enum wmi_ps_profile_type ps_profile);
1209int wmi_set_mgmt_retry(struct wil6210_priv *wil, u8 retry_short);
1210int wmi_get_mgmt_retry(struct wil6210_priv *wil, u8 *retry_short);
1211int wmi_new_sta(struct wil6210_vif *vif, const u8 *mac, u8 aid);
1212int wmi_port_allocate(struct wil6210_priv *wil, u8 mid,
1213 const u8 *mac, enum nl80211_iftype iftype);
1214int wmi_port_delete(struct wil6210_priv *wil, u8 mid);
1215int wmi_link_stats_cfg(struct wil6210_vif *vif, u32 type, u8 cid, u32 interval);
1204int wil_addba_rx_request(struct wil6210_priv *wil, u8 mid,
1205 u8 cidxtid, u8 dialog_token, __le16 ba_param_set,
1206 __le16 ba_timeout, __le16 ba_seq_ctrl);
1207int wil_addba_tx_request(struct wil6210_priv *wil, u8 ringid, u16 wsize);
1208
1209void wil6210_clear_irq(struct wil6210_priv *wil);
1210int wil6210_init_irq(struct wil6210_priv *wil, int irq);
1211void wil6210_fini_irq(struct wil6210_priv *wil, int irq);

--- 137 unchanged lines hidden ---
1216int wil_addba_rx_request(struct wil6210_priv *wil, u8 mid,
1217 u8 cidxtid, u8 dialog_token, __le16 ba_param_set,
1218 __le16 ba_timeout, __le16 ba_seq_ctrl);
1219int wil_addba_tx_request(struct wil6210_priv *wil, u8 ringid, u16 wsize);
1220
1221void wil6210_clear_irq(struct wil6210_priv *wil);
1222int wil6210_init_irq(struct wil6210_priv *wil, int irq);
1223void wil6210_fini_irq(struct wil6210_priv *wil, int irq);

--- 137 unchanged lines hidden ---