1
0

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
Este cometimento está contido em:
Rakesh Pillai
2023-05-16 03:33:10 -07:00
cometido por Rahul Choudhary
ascendente da32facf8d
cometimento b8f4110c6e
6 ficheiros modificados com 271 adições e 94 eliminações

Ver ficheiro

@@ -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 */

Ver ficheiro

@@ -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

Ver ficheiro

@@ -2395,6 +2395,33 @@ QDF_STATUS ucfg_dp_config_direct_link(struct wlan_objmgr_vdev *vdev,
}
#endif
void *ucfg_dp_txrx_soc_attach(struct dp_txrx_soc_attach_params *params,
bool *is_wifi3_0_target)
{
return wlan_dp_txrx_soc_attach(params, is_wifi3_0_target);
}
void ucfg_dp_txrx_soc_detach(ol_txrx_soc_handle soc)
{
return wlan_dp_txrx_soc_detach(soc);
}
QDF_STATUS ucfg_dp_txrx_attach_target(ol_txrx_soc_handle soc, uint8_t pdev_id)
{
return wlan_dp_txrx_attach_target(soc, pdev_id);
}
QDF_STATUS ucfg_dp_txrx_pdev_attach(ol_txrx_soc_handle soc)
{
return wlan_dp_txrx_pdev_attach(soc);
}
QDF_STATUS ucfg_dp_txrx_pdev_detach(ol_txrx_soc_handle soc, uint8_t pdev_id,
int force)
{
return wlan_dp_txrx_pdev_detach(soc, pdev_id, force);
}
QDF_STATUS ucfg_dp_txrx_init(ol_txrx_soc_handle soc, uint8_t pdev_id,
struct dp_txrx_config *config)
{