Sravan Kumar Kairam | 4af61cf | 2018-02-22 17:53:44 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * Permission to use, copy, modify, and/or distribute this software for |
| 5 | * any purpose with or without fee is hereby granted, provided that the |
| 6 | * above copyright notice and this permission notice appear in all |
| 7 | * copies. |
| 8 | * |
| 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 10 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 11 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 12 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 13 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 14 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 15 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 16 | * PERFORMANCE OF THIS SOFTWARE. |
| 17 | */ |
| 18 | /** |
| 19 | * DOC: Target interface file for disa component to |
| 20 | * Implement api's which shall be used by ipa component |
| 21 | * in target if internally. |
| 22 | */ |
| 23 | |
| 24 | #include <target_if.h> |
| 25 | #include <qdf_status.h> |
| 26 | #include <wmi_unified_api.h> |
| 27 | #include <wmi_unified_priv.h> |
| 28 | #include <wmi_unified_param.h> |
| 29 | #include <target_if_ipa.h> |
| 30 | #include <wlan_objmgr_psoc_obj.h> |
| 31 | |
| 32 | /** |
| 33 | * target_if_ipa_uc_offload_control_req() - send IPA offload control to FW |
| 34 | * @psoc: pointer to PSOC object |
| 35 | * @req: IPA UC offload enable/disable control param |
| 36 | * |
| 37 | * Return: QDF_STATUS_SUCCESS on success |
| 38 | */ |
| 39 | static QDF_STATUS |
| 40 | target_if_ipa_uc_offload_control_req(struct wlan_objmgr_psoc *psoc, |
| 41 | struct ipa_uc_offload_control_params *req) |
| 42 | { |
Sourav Mohapatra | cf63257 | 2018-04-02 11:01:35 +0530 | [diff] [blame^] | 43 | return wmi_unified_ipa_offload_control_cmd( |
| 44 | get_wmi_unified_hdl_from_psoc(psoc), req); |
Sravan Kumar Kairam | 4af61cf | 2018-02-22 17:53:44 +0530 | [diff] [blame] | 45 | } |
| 46 | |
Sravan Kumar Kairam | 5214f65 | 2018-03-13 09:52:31 +0530 | [diff] [blame] | 47 | void target_if_ipa_register_tx_ops(ipa_uc_offload_control_req *ipa_tx_op) |
Sravan Kumar Kairam | 4af61cf | 2018-02-22 17:53:44 +0530 | [diff] [blame] | 48 | { |
Sravan Kumar Kairam | 5214f65 | 2018-03-13 09:52:31 +0530 | [diff] [blame] | 49 | *ipa_tx_op = target_if_ipa_uc_offload_control_req; |
Sravan Kumar Kairam | 4af61cf | 2018-02-22 17:53:44 +0530 | [diff] [blame] | 50 | } |