qcacld-3.0: Move DP init code in CDS layer to DP component

Currently the CDS layer calls the cdp functions
directly to initialize common DP.

Move these calls to DP component, so that DP
component can handle other DP related initialization
inside the DP component itself.

Change-Id: Ib257ac4f41d468706078cd34a8cbec004a9a622e
CRs-Fixed: 3499726
このコミットが含まれているのは:
Rakesh Pillai
2023-05-16 03:33:10 -07:00
committed by Rahul Choudhary
コミット b8f4110c6e
6個のファイルの変更271行の追加94行の削除

ファイルの表示

@@ -293,6 +293,18 @@ struct dp_rsp_stats {
uint32_t icmpv4_rsp_recvd;
};
/**
* struct dp_txrx_soc_attach_params - SoC attach params
* @dp_ol_if_ops: DP ol_if ops
* @target_psoc: target psoc
* @target_type: Target type
*/
struct dp_txrx_soc_attach_params {
struct ol_if_ops *dp_ol_if_ops;
void *target_psoc;
uint32_t target_type;
};
struct dp_tx_rx_stats {
struct {
/* start_xmit stats */

ファイルの表示

@@ -1435,6 +1435,52 @@ QDF_STATUS ucfg_dp_config_direct_link(struct wlan_objmgr_vdev *vdev,
}
#endif
/**
* ucfg_dp_txrx_soc_attach() - Datapath soc attach
* @params: SoC attach params
* @is_wifi3_0_target: [OUT] Pointer to update if the target is wifi3.0
*
* Return: SoC handle
*/
void *ucfg_dp_txrx_soc_attach(struct dp_txrx_soc_attach_params *params,
bool *is_wifi3_0_target);
/**
* ucfg_dp_txrx_soc_detach() - Datapath SoC detach
* @soc: DP SoC handle
*
* Return: None
*/
void ucfg_dp_txrx_soc_detach(ol_txrx_soc_handle soc);
/**
* ucfg_dp_txrx_attach_target() - DP target attach
* @soc: DP SoC handle
* @pdev_id: DP pdev id
*
* Return: QDF_STATUS
*/
QDF_STATUS ucfg_dp_txrx_attach_target(ol_txrx_soc_handle soc, uint8_t pdev_id);
/**
* ucfg_dp_txrx_pdev_attach() - DP pdev attach
* @soc: DP SoC handle
*
* Return: QDF_STATUS
*/
QDF_STATUS ucfg_dp_txrx_pdev_attach(ol_txrx_soc_handle soc);
/**
* ucfg_dp_txrx_pdev_detach() - DP pdev detach
* @soc: DP SoC handle
* @pdev_id: DP pdev id
* @force: indicates if force detach is to be done or not
*
* Return: QDF_STATUS
*/
QDF_STATUS ucfg_dp_txrx_pdev_detach(ol_txrx_soc_handle soc, uint8_t pdev_id,
int force);
/**
* ucfg_dp_txrx_init() - initialize DP TXRX module
* @soc: ol_txrx_soc_handle