Bladeren bron

qcacmn: Add tlv formation of wmi power commands in common wmi layer

Move tlv formation of wmi power commands from umac to
common wmi layer.

Change-Id: Ie1940d8fafad600e8c245f24beec9e33c6bb6b54
CRs-Fixed: 982337
Govind Singh 9 jaren geleden
bovenliggende
commit
50988ccfbd
3 gewijzigde bestanden met toevoegingen van 76 en 0 verwijderingen
  1. 24 0
      wmi_unified_api.h
  2. 26 0
      wmi_unified_priv.h
  3. 26 0
      wmi_unified_tlv.h

+ 24 - 0
wmi_unified_api.h

@@ -324,4 +324,28 @@ int32_t wmi_unified_pdev_utf_cmd_send(void *wmi_hdl,
 int32_t wmi_unified_dbglog_cmd_send(void *wmi_hdl,
 				struct dbglog_params *param);
 
+int32_t wmi_mgmt_unified_cmd_send(void *wmi_hdl,
+				struct wmi_mgmt_params *param);
+
+int32_t wmi_unified_modem_power_state(void *wmi_hdl,
+		uint32_t param_value);
+
+int32_t wmi_unified_set_sta_ps_mode(void *wmi_hdl,
+			       uint32_t vdev_id, uint8_t val);
+int32_t
+wmi_unified_set_sta_uapsd_auto_trig_cmd(void *wmi_hdl,
+				struct sta_uapsd_trig_params *param);
+
+int32_t wmi_unified_get_temperature(void *wmi_hdl);
+
+int32_t wmi_unified_set_p2pgo_oppps_req(void *wmi_hdl,
+		struct p2p_ps_params *oppps);
+
+int32_t wmi_unified_set_p2pgo_noa_req_cmd(void *wmi_hdl,
+			struct p2p_ps_params *noa);
+
+int32_t wmi_unified_set_smps_params(void *wmi_hdl, uint8_t vdev_id,
+			       int value);
+
+int32_t wmi_unified_set_mimops(void *wmi_hdl, uint8_t vdev_id, int value);
 #endif /* _WMI_UNIFIED_API_H_ */

+ 26 - 0
wmi_unified_priv.h

@@ -164,6 +164,32 @@ int32_t (*send_scan_stop_cmd)(wmi_unified_t wmi_handle,
 
 int32_t (*send_scan_chan_list_cmd)(wmi_unified_t wmi_handle,
 				struct scan_chan_list_params *param);
+
+int32_t (*send_mgmt_cmd)(wmi_unified_t wmi_handle,
+				struct wmi_mgmt_params *param);
+
+int32_t (*send_modem_power_state_cmd)(wmi_unified_t wmi_handle,
+		uint32_t param_value);
+
+int32_t (*send_set_sta_ps_mode_cmd)(wmi_unified_t wmi_handle,
+			       uint32_t vdev_id, uint8_t val);
+
+int32_t (*send_get_temperature_cmd)(wmi_unified_t wmi_handle);
+
+int32_t (*send_set_p2pgo_oppps_req_cmd)(wmi_unified_t wmi_handle,
+		struct p2p_ps_params *oppps);
+
+int32_t (*send_set_p2pgo_noa_req_cmd)(wmi_unified_t wmi_handle,
+			struct p2p_ps_params *noa);
+
+int32_t (*send_set_smps_params_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id,
+			       int value);
+
+int32_t (*send_set_mimops_cmd)(wmi_unified_t wmi_handle,
+			uint8_t vdev_id, int value);
+
+int32_t (*send_set_sta_uapsd_auto_trig_cmd)(wmi_unified_t wmi_handle,
+				struct sta_uapsd_trig_params *param);
 };
 
 struct wmi_unified {

+ 26 - 0
wmi_unified_tlv.h

@@ -127,3 +127,29 @@ int32_t send_scan_stop_cmd_tlv(wmi_unified_t wmi_handle,
 int32_t send_scan_chan_list_cmd_tlv(wmi_unified_t wmi_handle,
 				struct scan_chan_list_params *param);
 
+int32_t send_mgmt_cmd_tlv(wmi_unified_t wmi_handle,
+				struct wmi_mgmt_params *param);
+
+int32_t send_modem_power_state_cmd_tlv(wmi_unified_t wmi_handle,
+		uint32_t param_value);
+
+int32_t send_set_sta_ps_mode_cmd_tlv(wmi_unified_t wmi_handle,
+			       uint32_t vdev_id, uint8_t val);
+
+int32_t send_set_sta_uapsd_auto_trig_cmd_tlv(wmi_unified_t wmi_handle,
+				struct sta_uapsd_trig_params *param);
+
+int32_t send_get_temperature_cmd_tlv(wmi_unified_t wmi_handle);
+
+int32_t send_set_p2pgo_oppps_req_cmd_tlv(wmi_unified_t wmi_handle,
+		struct p2p_ps_params *oppps);
+
+int32_t send_set_p2pgo_noa_req_cmd_tlv(wmi_unified_t wmi_handle,
+			struct p2p_ps_params *noa);
+
+int32_t send_set_smps_params_cmd_tlv(wmi_unified_t wmi_handle, uint8_t vdev_id,
+			       int value);
+
+int32_t send_set_mimops_cmd_tlv(wmi_unified_t wmi_handle,
+			uint8_t vdev_id, int value);
+