ath10k: spelling and miscellaneous neatening
[cascardo/linux.git] / drivers / net / wireless / ath / ath10k / wmi.h
index 3ef4688..6a68817 100644 (file)
@@ -55,7 +55,7 @@
  *    type.
  *
  * 6. Comment each parameter part of the WMI command/event structure by
- *    using the 2 stars at the begining of C comment instead of one star to
+ *    using the 2 stars at the beginning of C comment instead of one star to
  *    enable HTML document generation using Doxygen.
  *
  */
@@ -180,6 +180,7 @@ enum wmi_service {
        WMI_SERVICE_MESH_NON_11S,
        WMI_SERVICE_PEER_STATS,
        WMI_SERVICE_RESTRT_CHNL_SUPPORT,
+       WMI_SERVICE_PERIODIC_CHAN_STAT_SUPPORT,
        WMI_SERVICE_TX_MODE_PUSH_ONLY,
        WMI_SERVICE_TX_MODE_PUSH_PULL,
        WMI_SERVICE_TX_MODE_DYNAMIC,
@@ -305,6 +306,7 @@ enum wmi_10_4_service {
        WMI_10_4_SERVICE_RESTRT_CHNL_SUPPORT,
        WMI_10_4_SERVICE_PEER_STATS,
        WMI_10_4_SERVICE_MESH_11S,
+       WMI_10_4_SERVICE_PERIODIC_CHAN_STAT_SUPPORT,
        WMI_10_4_SERVICE_TX_MODE_PUSH_ONLY,
        WMI_10_4_SERVICE_TX_MODE_PUSH_PULL,
        WMI_10_4_SERVICE_TX_MODE_DYNAMIC,
@@ -402,6 +404,7 @@ static inline char *wmi_service_name(int service_id)
        SVCSTR(WMI_SERVICE_MESH_NON_11S);
        SVCSTR(WMI_SERVICE_PEER_STATS);
        SVCSTR(WMI_SERVICE_RESTRT_CHNL_SUPPORT);
+       SVCSTR(WMI_SERVICE_PERIODIC_CHAN_STAT_SUPPORT);
        SVCSTR(WMI_SERVICE_TX_MODE_PUSH_ONLY);
        SVCSTR(WMI_SERVICE_TX_MODE_PUSH_PULL);
        SVCSTR(WMI_SERVICE_TX_MODE_DYNAMIC);
@@ -652,6 +655,8 @@ static inline void wmi_10_4_svc_map(const __le32 *in, unsigned long *out,
               WMI_SERVICE_PEER_STATS, len);
        SVCMAP(WMI_10_4_SERVICE_MESH_11S,
               WMI_SERVICE_MESH_11S, len);
+       SVCMAP(WMI_10_4_SERVICE_PERIODIC_CHAN_STAT_SUPPORT,
+              WMI_SERVICE_PERIODIC_CHAN_STAT_SUPPORT, len);
        SVCMAP(WMI_10_4_SERVICE_TX_MODE_PUSH_ONLY,
               WMI_SERVICE_TX_MODE_PUSH_ONLY, len);
        SVCMAP(WMI_10_4_SERVICE_TX_MODE_PUSH_PULL,
@@ -2082,7 +2087,7 @@ struct wmi_resource_config {
         * In offload mode target supports features like WOW, chatter and
         * other protocol offloads. In order to support them some
         * functionalities like reorder buffering, PN checking need to be
-        * done in target. This determines maximum number of peers suported
+        * done in target. This determines maximum number of peers supported
         * by target in offload mode
         */
        __le32 num_offload_peers;
@@ -2263,7 +2268,7 @@ struct wmi_resource_config {
         * Max. number of Tx fragments per MSDU
         *  This parameter controls the max number of Tx fragments per MSDU.
         *  This is sent by the target as part of the WMI_SERVICE_READY event
-        *  and is overriden by the OS shim as required.
+        *  and is overridden by the OS shim as required.
         */
        __le32 max_frag_entries;
 } __packed;
@@ -2445,7 +2450,7 @@ struct wmi_resource_config_10x {
         * Max. number of Tx fragments per MSDU
         *  This parameter controls the max number of Tx fragments per MSDU.
         *  This is sent by the target as part of the WMI_SERVICE_READY event
-        *  and is overriden by the OS shim as required.
+        *  and is overridden by the OS shim as required.
         */
        __le32 max_frag_entries;
 } __packed;
@@ -2739,7 +2744,7 @@ struct wmi_init_cmd {
        struct wmi_host_mem_chunks mem_chunks;
 } __packed;
 
-/* _10x stucture is from 10.X FW API */
+/* _10x structure is from 10.X FW API */
 struct wmi_init_cmd_10x {
        struct wmi_resource_config_10x resource_config;
        struct wmi_host_mem_chunks mem_chunks;
@@ -3962,7 +3967,7 @@ struct wmi_pdev_stats_tx {
        /* illegal rate phy errors  */
        __le32 illgl_rate_phy_err;
 
-       /* wal pdev continous xretry */
+       /* wal pdev continuous xretry */
        __le32 pdev_cont_xretry;
 
        /* wal pdev continous xretry */
@@ -4456,9 +4461,9 @@ struct wmi_vdev_start_request_cmd {
        __le32 flags;
        /* ssid field. Only valid for AP/GO/IBSS/BTAmp VDEV type. */
        struct wmi_ssid ssid;
-       /* beacon/probe reponse xmit rate. Applicable for SoftAP. */
+       /* beacon/probe response xmit rate. Applicable for SoftAP. */
        __le32 bcn_tx_rate;
-       /* beacon/probe reponse xmit power. Applicable for SoftAP. */
+       /* beacon/probe response xmit power. Applicable for SoftAP. */
        __le32 bcn_tx_power;
        /* number of p2p NOA descriptor(s) from scan entry */
        __le32 num_noa_descriptors;
@@ -4686,7 +4691,7 @@ enum wmi_vdev_param {
        WMI_VDEV_PARAM_BEACON_INTERVAL,
        /* Listen interval in TUs */
        WMI_VDEV_PARAM_LISTEN_INTERVAL,
-       /* muticast rate in Mbps */
+       /* multicast rate in Mbps */
        WMI_VDEV_PARAM_MULTICAST_RATE,
        /* management frame rate in Mbps */
        WMI_VDEV_PARAM_MGMT_TX_RATE,
@@ -4817,7 +4822,7 @@ enum wmi_10x_vdev_param {
        WMI_10X_VDEV_PARAM_BEACON_INTERVAL,
        /* Listen interval in TUs */
        WMI_10X_VDEV_PARAM_LISTEN_INTERVAL,
-       /* muticast rate in Mbps */
+       /* multicast rate in Mbps */
        WMI_10X_VDEV_PARAM_MULTICAST_RATE,
        /* management frame rate in Mbps */
        WMI_10X_VDEV_PARAM_MGMT_TX_RATE,
@@ -5062,7 +5067,7 @@ struct wmi_vdev_simple_event {
 } __packed;
 
 /* VDEV start response status codes */
-/* VDEV succesfully started */
+/* VDEV successfully started */
 #define WMI_INIFIED_VDEV_START_RESPONSE_STATUS_SUCCESS 0x0
 
 /* requested VDEV not found */
@@ -5378,7 +5383,7 @@ enum wmi_sta_ps_param_pspoll_count {
 #define WMI_UAPSD_AC_TYPE_TRIG 1
 
 #define WMI_UAPSD_AC_BIT_MASK(ac, type) \
-       ((type ==  WMI_UAPSD_AC_TYPE_DELI) ? (1 << (ac << 1)) : (1 << ((ac << 1) + 1)))
+       (type == WMI_UAPSD_AC_TYPE_DELI ? 1 << (ac << 1) : 1 << ((ac << 1) + 1))
 
 enum wmi_sta_ps_param_uapsd {
        WMI_STA_PS_UAPSD_AC0_DELIVERY_EN = (1 << 0),
@@ -6169,6 +6174,20 @@ struct wmi_dbglog_cfg_cmd {
        __le32 config_valid;
 } __packed;
 
+struct wmi_10_4_dbglog_cfg_cmd {
+       /* bitmask to hold mod id config*/
+       __le64 module_enable;
+
+       /* see ATH10K_DBGLOG_CFG_ */
+       __le32 config_enable;
+
+       /* mask of module id bits to be changed */
+       __le64 module_valid;
+
+       /* mask of config bits to be changed, see ATH10K_DBGLOG_CFG_ */
+       __le32 config_valid;
+} __packed;
+
 enum wmi_roam_reason {
        WMI_ROAM_REASON_BETTER_AP = 1,
        WMI_ROAM_REASON_BEACON_MISS = 2,
@@ -6296,6 +6315,10 @@ struct wmi_roam_ev_arg {
        __le32 rssi;
 };
 
+struct wmi_echo_ev_arg {
+       __le32 value;
+};
+
 struct wmi_pdev_temperature_event {
        /* temperature value in Celcius degree */
        __le32 temperature;
@@ -6624,5 +6647,6 @@ void ath10k_wmi_10_4_op_fw_stats_fill(struct ath10k *ar,
                                      char *buf);
 int ath10k_wmi_op_get_vdev_subtype(struct ath10k *ar,
                                   enum wmi_vdev_subtype subtype);
+int ath10k_wmi_barrier(struct ath10k *ar);
 
 #endif /* _WMI_H_ */