qcacld-3.0: Create IPA CLD component

As part of converged driver model remove IPA from
HDD and create a new IPA CLD component. Add files for
IPA core, dispatcher and target_if. Define IPA related
public and private structures.

Change-Id: I8848331edc7dd878f9fc51ef9f5e311ad91ed70b
CRs-Fixed: 2177925
这个提交包含在:
Sravan Kumar Kairam
2018-02-22 17:53:44 +05:30
提交者 nshrivas
父节点 89ccc3958c
当前提交 4af61cf612
修改 14 个文件,包含 1434 行新增0 行删除

查看文件

@@ -0,0 +1,41 @@
/*
* Copyright (c) 2018 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all
* copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/**
* DOC: Declare various api/struct which shall be used
* by ipa component for wmi cmd (tx path)
*/
#ifndef _TARGET_IF_IPA_H_
#define _TARGET_IF_IPA_H_
#ifdef IPA_OFFLOAD
#include "wlan_ipa_public_struct.h"
/**
* target_if_ipa_register_tx_ops() - Register IPA component TX OPS
* @ipa_tx_op: IPA if transmit op
*
* Return: None
*/
void target_if_ipa_register_tx_ops(ipa_uc_offload_control_req ipa_tx_op);
#endif /* IPA_OFFLOAD */
#endif /* _TARGET_IF_IPA_H_ */

查看文件

@@ -0,0 +1,54 @@
/*
* Copyright (c) 2018 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all
* copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/**
* DOC: Target interface file for disa component to
* Implement api's which shall be used by ipa component
* in target if internally.
*/
#include <target_if.h>
#include <qdf_status.h>
#include <wmi_unified_api.h>
#include <wmi_unified_priv.h>
#include <wmi_unified_param.h>
#include <target_if_ipa.h>
#include <wlan_objmgr_psoc_obj.h>
/**
* target_if_ipa_uc_offload_control_req() - send IPA offload control to FW
* @psoc: pointer to PSOC object
* @req: IPA UC offload enable/disable control param
*
* Return: QDF_STATUS_SUCCESS on success
*/
static QDF_STATUS
target_if_ipa_uc_offload_control_req(struct wlan_objmgr_psoc *psoc,
struct ipa_uc_offload_control_params *req)
{
return QDF_STATUS_SUCCESS;
}
void target_if_ipa_register_tx_ops(ipa_uc_offload_control_req ipa_tx_op)
{
if (!ipa_tx_op) {
target_if_err("ipa_tx_op is null");
return;
}
ipa_tx_op = target_if_ipa_uc_offload_control_req;
}