qcacld-3.0: abstract Linux identifiers from IPA component

Abstract Linux based OS identifiers from IPA component in
HDD/OSIF layer.

Change-Id: I82a5db8c796d47d552757b1a450df10c72061177
This commit is contained in:
Vevek Venkatesan
2019-05-28 18:19:15 +05:30
committed by nshrivas
parent 3e1e16e52f
commit 24018994a5
6 changed files with 14 additions and 7 deletions

View File

@@ -492,7 +492,8 @@ void wlan_ipa_reg_sap_xmit_cb(struct wlan_ipa_priv *ipa_ctx,
* Return: None * Return: None
*/ */
static inline static inline
void wlan_ipa_reg_send_to_nw_cb(struct wlan_ipa_priv *ipa_ctx, void *cb) void wlan_ipa_reg_send_to_nw_cb(struct wlan_ipa_priv *ipa_ctx,
wlan_ipa_send_to_nw cb)
{ {
ipa_ctx->send_to_nw = cb; ipa_ctx->send_to_nw = cb;
} }

View File

@@ -253,7 +253,8 @@ void ipa_reg_sap_xmit_cb(struct wlan_objmgr_pdev *pdev,
* *
* Return: None * Return: None
*/ */
void ipa_reg_send_to_nw_cb(struct wlan_objmgr_pdev *pdev, void *cb); void ipa_reg_send_to_nw_cb(struct wlan_objmgr_pdev *pdev,
wlan_ipa_send_to_nw cb);
/** /**
* ipa_set_mcc_mode() - Set MCC mode * ipa_set_mcc_mode() - Set MCC mode
@@ -433,6 +434,7 @@ uint32_t ipa_get_tx_buf_count(void);
#else /* Not IPA_OFFLOAD */ #else /* Not IPA_OFFLOAD */
typedef QDF_STATUS (*wlan_ipa_softap_xmit)(qdf_nbuf_t nbuf, qdf_netdev_t dev); typedef QDF_STATUS (*wlan_ipa_softap_xmit)(qdf_nbuf_t nbuf, qdf_netdev_t dev);
typedef void (*wlan_ipa_send_to_nw)(qdf_nbuf_t nbuf, qdf_netdev_t dev);
#endif /* IPA_OFFLOAD */ #endif /* IPA_OFFLOAD */
#endif /* end of _WLAN_IPA_MAIN_H_ */ #endif /* end of _WLAN_IPA_MAIN_H_ */

View File

@@ -567,7 +567,7 @@ struct wlan_ipa_tx_desc {
}; };
typedef QDF_STATUS (*wlan_ipa_softap_xmit)(qdf_nbuf_t nbuf, qdf_netdev_t dev); typedef QDF_STATUS (*wlan_ipa_softap_xmit)(qdf_nbuf_t nbuf, qdf_netdev_t dev);
typedef void (*wlan_ipa_send_to_nw)(qdf_nbuf_t skb, qdf_netdev_t dev); typedef void (*wlan_ipa_send_to_nw)(qdf_nbuf_t nbuf, qdf_netdev_t dev);
/* IPA private context structure definition */ /* IPA private context structure definition */
struct wlan_ipa_priv { struct wlan_ipa_priv {

View File

@@ -300,7 +300,8 @@ void ipa_reg_sap_xmit_cb(struct wlan_objmgr_pdev *pdev, wlan_ipa_softap_xmit cb)
return wlan_ipa_reg_sap_xmit_cb(ipa_obj, cb); return wlan_ipa_reg_sap_xmit_cb(ipa_obj, cb);
} }
void ipa_reg_send_to_nw_cb(struct wlan_objmgr_pdev *pdev, void *cb) void ipa_reg_send_to_nw_cb(struct wlan_objmgr_pdev *pdev,
wlan_ipa_send_to_nw cb)
{ {
struct wlan_ipa_priv *ipa_obj; struct wlan_ipa_priv *ipa_obj;

View File

@@ -161,7 +161,8 @@ void ucfg_ipa_reg_sap_xmit_cb(struct wlan_objmgr_pdev *pdev,
* *
* Return: None * Return: None
*/ */
void ucfg_ipa_reg_send_to_nw_cb(struct wlan_objmgr_pdev *pdev, void *cb); void ucfg_ipa_reg_send_to_nw_cb(struct wlan_objmgr_pdev *pdev,
wlan_ipa_send_to_nw cb);
/** /**
* ucfg_ipa_set_mcc_mode() - Set MCC mode * ucfg_ipa_set_mcc_mode() - Set MCC mode
@@ -423,7 +424,8 @@ void ucfg_ipa_reg_sap_xmit_cb(struct wlan_objmgr_pdev *pdev,
} }
static inline static inline
void ucfg_ipa_reg_send_to_nw_cb(struct wlan_objmgr_pdev *pdev, void *cb) void ucfg_ipa_reg_send_to_nw_cb(struct wlan_objmgr_pdev *pdev,
wlan_ipa_send_to_nw cb)
{ {
} }

View File

@@ -95,7 +95,8 @@ void ucfg_ipa_reg_sap_xmit_cb(struct wlan_objmgr_pdev *pdev,
return ipa_reg_sap_xmit_cb(pdev, cb); return ipa_reg_sap_xmit_cb(pdev, cb);
} }
void ucfg_ipa_reg_send_to_nw_cb(struct wlan_objmgr_pdev *pdev, void *cb) void ucfg_ipa_reg_send_to_nw_cb(struct wlan_objmgr_pdev *pdev,
wlan_ipa_send_to_nw cb)
{ {
return ipa_reg_send_to_nw_cb(pdev, cb); return ipa_reg_send_to_nw_cb(pdev, cb);