|
@@ -30,6 +30,7 @@
|
|
|
#ifdef CONFIG_WIN
|
|
|
#include <cdp_txrx_stats_struct.h>
|
|
|
#endif
|
|
|
+#include "cdp_txrx_handle.h"
|
|
|
|
|
|
/******************************************************************************
|
|
|
*
|
|
@@ -39,55 +40,55 @@
|
|
|
|
|
|
struct cdp_cmn_ops {
|
|
|
|
|
|
- int(*txrx_soc_attach_target)(ol_txrx_soc_handle soc);
|
|
|
+ int (*txrx_soc_attach_target)(ol_txrx_soc_handle soc);
|
|
|
|
|
|
- int(*txrx_pdev_attach_target)(void *pdev);
|
|
|
+ int (*txrx_pdev_attach_target)(struct cdp_pdev *pdev);
|
|
|
|
|
|
- void *(*txrx_vdev_attach)
|
|
|
- (void *pdev, uint8_t *vdev_mac_addr,
|
|
|
+ struct cdp_vdev *(*txrx_vdev_attach)
|
|
|
+ (struct cdp_pdev *pdev, uint8_t *vdev_mac_addr,
|
|
|
uint8_t vdev_id, enum wlan_op_mode op_mode);
|
|
|
|
|
|
- void(*txrx_vdev_detach)
|
|
|
- (void *vdev, ol_txrx_vdev_delete_cb callback,
|
|
|
+ void (*txrx_vdev_detach)
|
|
|
+ (struct cdp_vdev *vdev, ol_txrx_vdev_delete_cb callback,
|
|
|
void *cb_context);
|
|
|
|
|
|
- void *(*txrx_pdev_attach)
|
|
|
- (ol_txrx_soc_handle soc, void *ctrl_pdev,
|
|
|
+ struct cdp_pdev *(*txrx_pdev_attach)
|
|
|
+ (ol_txrx_soc_handle soc, struct cdp_cfg *ctrl_pdev,
|
|
|
HTC_HANDLE htc_pdev, qdf_device_t osdev, uint8_t pdev_id);
|
|
|
|
|
|
- int (*txrx_pdev_post_attach)(void *pdev);
|
|
|
+ int (*txrx_pdev_post_attach)(struct cdp_pdev *pdev);
|
|
|
|
|
|
- void(*txrx_pdev_detach)(void *pdev, int force);
|
|
|
+ void (*txrx_pdev_detach)(struct cdp_pdev *pdev, int force);
|
|
|
|
|
|
void *(*txrx_peer_create)
|
|
|
- (void *vdev, uint8_t *peer_mac_addr);
|
|
|
+ (struct cdp_vdev *vdev, uint8_t *peer_mac_addr);
|
|
|
|
|
|
void (*txrx_peer_setup)
|
|
|
- (void *vdev_hdl, void *peer_hdl);
|
|
|
+ (struct cdp_vdev *vdev_hdl, void *peer_hdl);
|
|
|
|
|
|
void (*txrx_peer_teardown)
|
|
|
- (void *vdev_hdl, void *peer_hdl);
|
|
|
+ (struct cdp_vdev *vdev_hdl, void *peer_hdl);
|
|
|
|
|
|
- void(*txrx_peer_delete)(void *peer);
|
|
|
+ void (*txrx_peer_delete)(void *peer);
|
|
|
|
|
|
- int(*txrx_set_monitor_mode)(void *vdev);
|
|
|
+ int (*txrx_set_monitor_mode)(struct cdp_vdev *vdev);
|
|
|
|
|
|
- void(*txrx_set_curchan)(void *pdev, uint32_t chan_mhz);
|
|
|
+ void (*txrx_set_curchan)(struct cdp_pdev *pdev, uint32_t chan_mhz);
|
|
|
|
|
|
void (*txrx_set_privacy_filters)
|
|
|
- (void *vdev, void *filter, uint32_t num);
|
|
|
+ (struct cdp_vdev *vdev, void *filter, uint32_t num);
|
|
|
|
|
|
/********************************************************************
|
|
|
* Data Interface (B Interface)
|
|
|
********************************************************************/
|
|
|
|
|
|
- void(*txrx_vdev_register)(void *vdev,
|
|
|
+ void (*txrx_vdev_register)(struct cdp_vdev *vdev,
|
|
|
void *osif_vdev, struct ol_txrx_ops *txrx_ops);
|
|
|
|
|
|
- int(*txrx_mgmt_send)(void *vdev,
|
|
|
+ int (*txrx_mgmt_send)(struct cdp_vdev *vdev,
|
|
|
qdf_nbuf_t tx_mgmt_frm, uint8_t type);
|
|
|
|
|
|
- int(*txrx_mgmt_send_ext)(void *vdev,
|
|
|
+ int (*txrx_mgmt_send_ext)(struct cdp_vdev *vdev,
|
|
|
qdf_nbuf_t tx_mgmt_frm, uint8_t type, uint8_t use_6mbps,
|
|
|
uint16_t chanfreq);
|
|
|
|
|
@@ -96,12 +97,12 @@ struct cdp_cmn_ops {
|
|
|
* callback function
|
|
|
*/
|
|
|
|
|
|
- void(*txrx_mgmt_tx_cb_set)
|
|
|
- (void *pdev, uint8_t type,
|
|
|
+ void (*txrx_mgmt_tx_cb_set)
|
|
|
+ (struct cdp_pdev *pdev, uint8_t type,
|
|
|
ol_txrx_mgmt_tx_cb download_cb, ol_txrx_mgmt_tx_cb ota_ack_cb,
|
|
|
void *ctxt);
|
|
|
|
|
|
- int (*txrx_get_tx_pending)(void *pdev);
|
|
|
+ int (*txrx_get_tx_pending)(struct cdp_pdev *pdev);
|
|
|
|
|
|
/**
|
|
|
* ol_txrx_data_tx_cb - Function registered with the data path
|
|
@@ -109,25 +110,26 @@ struct cdp_cmn_ops {
|
|
|
* done being transmitted
|
|
|
*/
|
|
|
|
|
|
- void(*txrx_data_tx_cb_set)(void *data_vdev,
|
|
|
+ void (*txrx_data_tx_cb_set)(struct cdp_vdev *data_vdev,
|
|
|
ol_txrx_data_tx_cb callback, void *ctxt);
|
|
|
|
|
|
/*******************************************************************
|
|
|
* Statistics and Debugging Interface (C Inteface)
|
|
|
********************************************************************/
|
|
|
|
|
|
- int(*txrx_aggr_cfg)(void *vdev, int max_subfrms_ampdu,
|
|
|
+ int (*txrx_aggr_cfg)(struct cdp_vdev *vdev, int max_subfrms_ampdu,
|
|
|
int max_subfrms_amsdu);
|
|
|
|
|
|
- A_STATUS(*txrx_fw_stats_get)(void *vdev, struct ol_txrx_stats_req *req,
|
|
|
+ A_STATUS (*txrx_fw_stats_get)(struct cdp_vdev *vdev,
|
|
|
+ struct ol_txrx_stats_req *req,
|
|
|
bool per_vdev, bool response_expected);
|
|
|
|
|
|
- int(*txrx_debug)(void *vdev, int debug_specs);
|
|
|
+ int (*txrx_debug)(struct cdp_vdev *vdev, int debug_specs);
|
|
|
|
|
|
- void(*txrx_fw_stats_cfg)(void *vdev,
|
|
|
+ void (*txrx_fw_stats_cfg)(struct cdp_vdev *vdev,
|
|
|
uint8_t cfg_stats_type, uint32_t cfg_val);
|
|
|
|
|
|
- void(*txrx_print_level_set)(unsigned level);
|
|
|
+ void (*txrx_print_level_set)(unsigned level);
|
|
|
|
|
|
/**
|
|
|
* ol_txrx_get_vdev_mac_addr() - Return mac addr of vdev
|
|
@@ -135,7 +137,7 @@ struct cdp_cmn_ops {
|
|
|
*
|
|
|
* Return: vdev mac address
|
|
|
*/
|
|
|
- uint8_t *(*txrx_get_vdev_mac_addr)(void *vdev);
|
|
|
+ uint8_t * (*txrx_get_vdev_mac_addr)(struct cdp_vdev *vdev);
|
|
|
|
|
|
/**
|
|
|
* ol_txrx_get_vdev_struct_mac_addr() - Return handle to struct qdf_mac_addr of
|
|
@@ -145,7 +147,7 @@ struct cdp_cmn_ops {
|
|
|
* Return: Handle to struct qdf_mac_addr
|
|
|
*/
|
|
|
struct qdf_mac_addr *
|
|
|
- (*txrx_get_vdev_struct_mac_addr)(void *vdev);
|
|
|
+ (*txrx_get_vdev_struct_mac_addr)(struct cdp_vdev *vdev);
|
|
|
|
|
|
/**
|
|
|
* ol_txrx_get_pdev_from_vdev() - Return handle to pdev of vdev
|
|
@@ -153,8 +155,8 @@ struct cdp_cmn_ops {
|
|
|
*
|
|
|
* Return: Handle to pdev
|
|
|
*/
|
|
|
- void *(*txrx_get_pdev_from_vdev)
|
|
|
- (void *vdev);
|
|
|
+ struct cdp_pdev *(*txrx_get_pdev_from_vdev)
|
|
|
+ (struct cdp_vdev *vdev);
|
|
|
|
|
|
/**
|
|
|
* ol_txrx_get_ctrl_pdev_from_vdev() - Return control pdev of vdev
|
|
@@ -162,11 +164,12 @@ struct cdp_cmn_ops {
|
|
|
*
|
|
|
* Return: Handle to control pdev
|
|
|
*/
|
|
|
- void *
|
|
|
- (*txrx_get_ctrl_pdev_from_vdev)(void *vdev);
|
|
|
+ struct cdp_cfg *
|
|
|
+ (*txrx_get_ctrl_pdev_from_vdev)(struct cdp_vdev *vdev);
|
|
|
|
|
|
- void *
|
|
|
- (*txrx_get_vdev_from_vdev_id)(void *pdev, uint8_t vdev_id);
|
|
|
+ struct cdp_vdev *
|
|
|
+ (*txrx_get_vdev_from_vdev_id)(struct cdp_pdev *pdev,
|
|
|
+ uint8_t vdev_id);
|
|
|
|
|
|
void (*txrx_soc_detach)(void *soc);
|
|
|
|
|
@@ -188,7 +191,7 @@ struct cdp_ctrl_ops {
|
|
|
(*txrx_mempools_attach)(void *ctrl_pdev);
|
|
|
int
|
|
|
(*txrx_set_filter_neighbour_peers)(
|
|
|
- void *pdev,
|
|
|
+ struct cdp_pdev *pdev,
|
|
|
u_int32_t val);
|
|
|
/**
|
|
|
* @brief set the safemode of the device
|
|
@@ -205,7 +208,7 @@ struct cdp_ctrl_ops {
|
|
|
|
|
|
void
|
|
|
(*txrx_set_safemode)(
|
|
|
- void *vdev,
|
|
|
+ struct cdp_vdev *vdev,
|
|
|
u_int32_t val);
|
|
|
/**
|
|
|
* @brief configure the drop unencrypted frame flag
|
|
@@ -219,7 +222,7 @@ struct cdp_ctrl_ops {
|
|
|
*/
|
|
|
void
|
|
|
(*txrx_set_drop_unenc)(
|
|
|
- void *vdev,
|
|
|
+ struct cdp_vdev *vdev,
|
|
|
u_int32_t val);
|
|
|
|
|
|
|
|
@@ -234,7 +237,7 @@ struct cdp_ctrl_ops {
|
|
|
*/
|
|
|
void
|
|
|
(*txrx_set_tx_encap_type)(
|
|
|
- void *vdev,
|
|
|
+ struct cdp_vdev *vdev,
|
|
|
enum htt_cmn_pkt_type val);
|
|
|
/**
|
|
|
* @brief set the Rx decapsulation type of the VDEV
|
|
@@ -248,7 +251,7 @@ struct cdp_ctrl_ops {
|
|
|
*/
|
|
|
void
|
|
|
(*txrx_set_vdev_rx_decap_type)(
|
|
|
- void *vdev,
|
|
|
+ struct cdp_vdev *vdev,
|
|
|
enum htt_cmn_pkt_type val);
|
|
|
|
|
|
/**
|
|
@@ -258,7 +261,7 @@ struct cdp_ctrl_ops {
|
|
|
* @return - the Rx decap type
|
|
|
*/
|
|
|
enum htt_cmn_pkt_type
|
|
|
- (*txrx_get_vdev_rx_decap_type)(void *vdev);
|
|
|
+ (*txrx_get_vdev_rx_decap_type)(struct cdp_vdev *vdev);
|
|
|
|
|
|
/* Is this similar to ol_txrx_peer_state_update() in MCL */
|
|
|
/**
|
|
@@ -278,13 +281,13 @@ struct cdp_ctrl_ops {
|
|
|
u_int32_t authorize);
|
|
|
|
|
|
bool
|
|
|
- (*txrx_set_inact_params)(void *pdev,
|
|
|
+ (*txrx_set_inact_params)(struct cdp_pdev *pdev,
|
|
|
u_int16_t inact_check_interval,
|
|
|
u_int16_t inact_normal,
|
|
|
u_int16_t inact_overload);
|
|
|
bool
|
|
|
(*txrx_start_inact_timer)(
|
|
|
- void *pdev,
|
|
|
+ struct cdp_pdev *pdev,
|
|
|
bool enable);
|
|
|
|
|
|
|
|
@@ -298,7 +301,7 @@ struct cdp_ctrl_ops {
|
|
|
* @param overload - whether the radio is overloaded or not
|
|
|
*/
|
|
|
void (*txrx_set_overload)(
|
|
|
- void *pdev,
|
|
|
+ struct cdp_pdev *pdev,
|
|
|
bool overload);
|
|
|
/**
|
|
|
* @brief Check the inactivity status of the peer/node
|
|
@@ -324,34 +327,34 @@ struct cdp_ctrl_ops {
|
|
|
|
|
|
|
|
|
/* Should be ol_txrx_ctrl_api.h */
|
|
|
- void (*txrx_set_mesh_mode)(void *vdev, u_int32_t val);
|
|
|
+ void (*txrx_set_mesh_mode)(struct cdp_vdev *vdev, u_int32_t val);
|
|
|
|
|
|
- void (*tx_flush_buffers)(void *vdev);
|
|
|
+ void (*tx_flush_buffers)(struct cdp_vdev *vdev);
|
|
|
|
|
|
- int (*txrx_is_target_ar900b)(void *vdev);
|
|
|
+ int (*txrx_is_target_ar900b)(struct cdp_vdev *vdev);
|
|
|
|
|
|
};
|
|
|
|
|
|
struct cdp_me_ops {
|
|
|
|
|
|
u_int16_t (*tx_desc_alloc_and_mark_for_mcast_clone)
|
|
|
- (void *pdev, u_int16_t buf_count);
|
|
|
+ (struct cdp_pdev *pdev, u_int16_t buf_count);
|
|
|
|
|
|
u_int16_t (*tx_desc_free_and_unmark_for_mcast_clone)(
|
|
|
- void *pdev,
|
|
|
+ struct cdp_pdev *pdev,
|
|
|
u_int16_t buf_count);
|
|
|
|
|
|
u_int16_t
|
|
|
(*tx_get_mcast_buf_allocated_marked)
|
|
|
- (void *pdev);
|
|
|
+ (struct cdp_pdev *pdev);
|
|
|
void
|
|
|
- (*tx_me_alloc_descriptor)(void *pdev);
|
|
|
+ (*tx_me_alloc_descriptor)(struct cdp_pdev *pdev);
|
|
|
|
|
|
void
|
|
|
- (*tx_me_free_descriptor)(void *pdev);
|
|
|
+ (*tx_me_free_descriptor)(struct cdp_pdev *pdev);
|
|
|
|
|
|
uint16_t
|
|
|
- (*tx_me_convert_ucast)(void *vdev,
|
|
|
+ (*tx_me_convert_ucast)(struct cdp_vdev *vdev,
|
|
|
qdf_nbuf_t wbuf, u_int8_t newmac[][6],
|
|
|
uint8_t newmaccnt);
|
|
|
/* Should be a function pointer in ol_txrx_osif_ops{} */
|
|
@@ -366,38 +369,38 @@ struct cdp_me_ops {
|
|
|
* @param msdu - the multicast msdu returned by FW for host inspect
|
|
|
*/
|
|
|
|
|
|
- int (*mcast_notify)(void *pdev,
|
|
|
+ int (*mcast_notify)(struct cdp_pdev *pdev,
|
|
|
u_int8_t vdev_id, qdf_nbuf_t msdu);
|
|
|
};
|
|
|
|
|
|
struct cdp_mon_ops {
|
|
|
|
|
|
void (*txrx_monitor_set_filter_ucast_data)
|
|
|
- (void *, u_int8_t val);
|
|
|
+ (struct cdp_pdev *, u_int8_t val);
|
|
|
void (*txrx_monitor_set_filter_mcast_data)
|
|
|
- (void *, u_int8_t val);
|
|
|
+ (struct cdp_pdev *, u_int8_t val);
|
|
|
void (*txrx_monitor_set_filter_non_data)
|
|
|
- (void *, u_int8_t val);
|
|
|
+ (struct cdp_pdev *, u_int8_t val);
|
|
|
|
|
|
u_int8_t (*txrx_monitor_get_filter_ucast_data)
|
|
|
- (void *vdev_txrx_handle);
|
|
|
+ (struct cdp_vdev *vdev_txrx_handle);
|
|
|
u_int8_t (*txrx_monitor_get_filter_mcast_data)
|
|
|
- (void *vdev_txrx_handle);
|
|
|
+ (struct cdp_vdev *vdev_txrx_handle);
|
|
|
u_int8_t (*txrx_monitor_get_filter_non_data)
|
|
|
- (void *vdev_txrx_handle);
|
|
|
- int (*txrx_reset_monitor_mode)(void *pdev);
|
|
|
+ (struct cdp_vdev *vdev_txrx_handle);
|
|
|
+ int (*txrx_reset_monitor_mode)(struct cdp_pdev *pdev);
|
|
|
|
|
|
};
|
|
|
|
|
|
struct cdp_host_stats_ops {
|
|
|
- int (*txrx_host_stats_get)(void *vdev,
|
|
|
+ int (*txrx_host_stats_get)(struct cdp_vdev *vdev,
|
|
|
struct ol_txrx_stats_req *req);
|
|
|
|
|
|
- void (*txrx_host_stats_clr)(void *vdev);
|
|
|
+ void (*txrx_host_stats_clr)(struct cdp_vdev *vdev);
|
|
|
|
|
|
- void (*txrx_host_ce_stats)(void *vdev);
|
|
|
+ void (*txrx_host_ce_stats)(struct cdp_vdev *vdev);
|
|
|
|
|
|
- int (*txrx_stats_publish)(void *pdev,
|
|
|
+ int (*txrx_stats_publish)(struct cdp_pdev *pdev,
|
|
|
void *buf);
|
|
|
/**
|
|
|
* @brief Enable enhanced stats functionality.
|
|
@@ -405,7 +408,7 @@ struct cdp_host_stats_ops {
|
|
|
* @param pdev - the physical device object
|
|
|
* @return - void
|
|
|
*/
|
|
|
- void (*txrx_enable_enhanced_stats)(void *pdev);
|
|
|
+ void (*txrx_enable_enhanced_stats)(struct cdp_pdev *pdev);
|
|
|
|
|
|
/**
|
|
|
* @brief Disable enhanced stats functionality.
|
|
@@ -413,7 +416,7 @@ struct cdp_host_stats_ops {
|
|
|
* @param pdev - the physical device object
|
|
|
* @return - void
|
|
|
*/
|
|
|
- void (*txrx_disable_enhanced_stats)(void *pdev);
|
|
|
+ void (*txrx_disable_enhanced_stats)(struct cdp_pdev *pdev);
|
|
|
|
|
|
/**
|
|
|
* @brief Get the desired stats from the message.
|
|
@@ -423,53 +426,53 @@ struct cdp_host_stats_ops {
|
|
|
* @param type - stats type.
|
|
|
* @return - pointer to requested stat identified by type
|
|
|
*/
|
|
|
- uint32_t*(*txrx_get_stats_base)(void *pdev,
|
|
|
+ uint32_t * (*txrx_get_stats_base)(struct cdp_pdev *pdev,
|
|
|
uint32_t *stats_base, uint32_t msg_len, uint8_t type);
|
|
|
void
|
|
|
- (*tx_print_tso_stats)(void *vdev);
|
|
|
+ (*tx_print_tso_stats)(struct cdp_vdev *vdev);
|
|
|
|
|
|
void
|
|
|
- (*tx_rst_tso_stats)(void *vdev);
|
|
|
+ (*tx_rst_tso_stats)(struct cdp_vdev *vdev);
|
|
|
|
|
|
void
|
|
|
- (*tx_print_sg_stats)(void *vdev);
|
|
|
+ (*tx_print_sg_stats)(struct cdp_vdev *vdev);
|
|
|
|
|
|
void
|
|
|
- (*tx_rst_sg_stats)(void *vdev);
|
|
|
+ (*tx_rst_sg_stats)(struct cdp_vdev *vdev);
|
|
|
|
|
|
void
|
|
|
- (*print_rx_cksum_stats)(void *vdev);
|
|
|
+ (*print_rx_cksum_stats)(struct cdp_vdev *vdev);
|
|
|
|
|
|
void
|
|
|
- (*rst_rx_cksum_stats)(void *vdev);
|
|
|
+ (*rst_rx_cksum_stats)(struct cdp_vdev *vdev);
|
|
|
|
|
|
A_STATUS
|
|
|
- (*txrx_host_me_stats)(void *vdev);
|
|
|
+ (*txrx_host_me_stats)(struct cdp_vdev *vdev);
|
|
|
void
|
|
|
- (*txrx_per_peer_stats)(void *pdev, char *addr);
|
|
|
- int (*txrx_host_msdu_ttl_stats)(void *vdev,
|
|
|
+ (*txrx_per_peer_stats)(struct cdp_pdev *pdev, char *addr);
|
|
|
+ int (*txrx_host_msdu_ttl_stats)(struct cdp_vdev *vdev,
|
|
|
struct ol_txrx_stats_req *req);
|
|
|
|
|
|
void
|
|
|
- (*print_lro_stats)(void *vdev);
|
|
|
+ (*print_lro_stats)(struct cdp_vdev *vdev);
|
|
|
|
|
|
void
|
|
|
- (*reset_lro_stats)(void *vdev);
|
|
|
+ (*reset_lro_stats)(struct cdp_vdev *vdev);
|
|
|
|
|
|
};
|
|
|
|
|
|
struct cdp_wds_ops {
|
|
|
void
|
|
|
- (*txrx_set_wds_rx_policy)(void *vdev,
|
|
|
+ (*txrx_set_wds_rx_policy)(struct cdp_vdev *vdev,
|
|
|
u_int32_t val);
|
|
|
|
|
|
};
|
|
|
|
|
|
struct cdp_raw_ops {
|
|
|
- int (*txrx_get_nwifi_mode)(void *vdev);
|
|
|
+ int (*txrx_get_nwifi_mode)(struct cdp_vdev *vdev);
|
|
|
|
|
|
int
|
|
|
- (*rsim_tx_encap)(void *vdev, qdf_nbuf_t *pnbuf);
|
|
|
+ (*rsim_tx_encap)(struct cdp_vdev *vdev, qdf_nbuf_t *pnbuf);
|
|
|
};
|
|
|
|
|
|
#ifdef CONFIG_WIN
|
|
@@ -511,29 +514,29 @@ struct ol_if_ops {
|
|
|
* @runtime_resume:
|
|
|
*/
|
|
|
struct cdp_misc_ops {
|
|
|
- uint16_t (*set_ibss_vdev_heart_beat_timer)(void *vdev,
|
|
|
+ uint16_t (*set_ibss_vdev_heart_beat_timer)(struct cdp_vdev *vdev,
|
|
|
uint16_t timer_value_sec);
|
|
|
- void (*set_wmm_param)(void *cfg_pdev,
|
|
|
+ void (*set_wmm_param)(struct cdp_pdev *cfg_pdev,
|
|
|
struct ol_tx_wmm_param_t wmm_param);
|
|
|
- void (*bad_peer_txctl_set_setting)(void *pdev, int enable,
|
|
|
+ void (*bad_peer_txctl_set_setting)(struct cdp_pdev *pdev, int enable,
|
|
|
int period, int txq_limit);
|
|
|
- void (*bad_peer_txctl_update_threshold)(void *pdev,
|
|
|
+ void (*bad_peer_txctl_update_threshold)(struct cdp_pdev *pdev,
|
|
|
int level, int tput_thresh, int tx_limit);
|
|
|
- void (*hl_tdls_flag_reset)(void *vdev, bool flag);
|
|
|
- qdf_nbuf_t (*tx_non_std)(void *vdev,
|
|
|
+ void (*hl_tdls_flag_reset)(struct cdp_vdev *vdev, bool flag);
|
|
|
+ qdf_nbuf_t (*tx_non_std)(struct cdp_vdev *vdev,
|
|
|
enum ol_tx_spec tx_spec, qdf_nbuf_t msdu_list);
|
|
|
- uint16_t (*get_vdev_id)(void *vdev);
|
|
|
- QDF_STATUS (*set_wisa_mode)(void *vdev, bool enable);
|
|
|
- QDF_STATUS (*runtime_suspend)(void *pdev);
|
|
|
- QDF_STATUS (*runtime_resume)(void *pdev);
|
|
|
- int (*get_opmode)(void *vdev);
|
|
|
+ uint16_t (*get_vdev_id)(struct cdp_vdev *vdev);
|
|
|
+ QDF_STATUS (*set_wisa_mode)(struct cdp_vdev *vdev, bool enable);
|
|
|
+ QDF_STATUS (*runtime_suspend)(struct cdp_pdev *pdev);
|
|
|
+ QDF_STATUS (*runtime_resume)(struct cdp_pdev *pdev);
|
|
|
+ int (*get_opmode)(struct cdp_vdev *vdev);
|
|
|
void (*mark_first_wakeup_packet)(uint8_t value);
|
|
|
void (*update_mac_id)(uint8_t vdev_id, uint8_t mac_id);
|
|
|
void (*flush_rx_frames)(void *peer, bool drop);
|
|
|
A_STATUS (*get_intra_bss_fwd_pkts_count)(uint8_t vdev_id,
|
|
|
uint64_t *fwd_tx_packets, uint64_t *fwd_rx_packets);
|
|
|
- void (*pkt_log_init)(void *handle, void *scn);
|
|
|
- void (*pkt_log_con_service)(void *pdev, void *scn);
|
|
|
+ void (*pkt_log_init)(struct cdp_pdev *handle, void *scn);
|
|
|
+ void (*pkt_log_con_service)(struct cdp_pdev *pdev, void *scn);
|
|
|
};
|
|
|
|
|
|
/**
|
|
@@ -544,13 +547,15 @@ struct cdp_misc_ops {
|
|
|
* @tx_set_compute_interval:
|
|
|
*/
|
|
|
struct cdp_tx_delay_ops {
|
|
|
- void (*tx_delay)(void *pdev, uint32_t *queue_delay_microsec,
|
|
|
+ void (*tx_delay)(struct cdp_pdev *pdev, uint32_t *queue_delay_microsec,
|
|
|
uint32_t *tx_delay_microsec, int category);
|
|
|
- void (*tx_delay_hist)(void *pdev,
|
|
|
+ void (*tx_delay_hist)(struct cdp_pdev *pdev,
|
|
|
uint16_t *bin_values, int category);
|
|
|
- void (*tx_packet_count)(void *pdev, uint16_t *out_packet_count,
|
|
|
+ void (*tx_packet_count)(struct cdp_pdev *pdev,
|
|
|
+ uint16_t *out_packet_count,
|
|
|
uint16_t *out_packet_loss_count, int category);
|
|
|
- void (*tx_set_compute_interval)(void *pdev, uint32_t interval);
|
|
|
+ void (*tx_set_compute_interval)(struct cdp_pdev *pdev,
|
|
|
+ uint32_t interval);
|
|
|
};
|
|
|
|
|
|
/**
|
|
@@ -575,15 +580,18 @@ struct cdp_pmf_ops {
|
|
|
* @set_flow_control_parameters:
|
|
|
*/
|
|
|
struct cdp_cfg_ops {
|
|
|
- void (*set_cfg_rx_fwd_disabled)(void *pdev, uint8_t disable_rx_fwd);
|
|
|
- void (*set_cfg_packet_log_enabled)(void *pdev, uint8_t val);
|
|
|
- void * (*cfg_attach)(qdf_device_t osdev, void *cfg_param);
|
|
|
- void (*vdev_rx_set_intrabss_fwd)(void *vdev, bool val);
|
|
|
- uint8_t (*is_rx_fwd_disabled)(void *vdev);
|
|
|
+ void (*set_cfg_rx_fwd_disabled)(struct cdp_cfg *cfg_pdev,
|
|
|
+ uint8_t disable_rx_fwd);
|
|
|
+ void (*set_cfg_packet_log_enabled)(struct cdp_cfg *cfg_pdev,
|
|
|
+ uint8_t val);
|
|
|
+ struct cdp_cfg * (*cfg_attach)(qdf_device_t osdev, void *cfg_param);
|
|
|
+ void (*vdev_rx_set_intrabss_fwd)(struct cdp_vdev *vdev, bool val);
|
|
|
+ uint8_t (*is_rx_fwd_disabled)(struct cdp_vdev *vdev);
|
|
|
void (*tx_set_is_mgmt_over_wmi_enabled)(uint8_t value);
|
|
|
- int (*is_high_latency)(void *pdev);
|
|
|
- void (*set_flow_control_parameters)(void *cfg, void *param);
|
|
|
- void (*set_flow_steering)(void *pdev, uint8_t val);
|
|
|
+ int (*is_high_latency)(struct cdp_cfg *cfg_pdev);
|
|
|
+ void (*set_flow_control_parameters)(struct cdp_cfg *cfg_pdev,
|
|
|
+ void *param);
|
|
|
+ void (*set_flow_steering)(struct cdp_cfg *cfg_pdev, uint8_t val);
|
|
|
};
|
|
|
|
|
|
/**
|
|
@@ -614,14 +622,14 @@ struct cdp_lflowctl_ops {
|
|
|
int (*register_tx_flow_control)(uint8_t vdev_id,
|
|
|
ol_txrx_tx_flow_control_fp flowControl, void *osif_fc_ctx);
|
|
|
int (*deregister_tx_flow_control_cb)(uint8_t vdev_id);
|
|
|
- void (*flow_control_cb)(void *vdev, bool tx_resume);
|
|
|
+ void (*flow_control_cb)(struct cdp_vdev *vdev, bool tx_resume);
|
|
|
bool (*get_tx_resource)(uint8_t sta_id,
|
|
|
unsigned int low_watermark,
|
|
|
unsigned int high_watermark_offset);
|
|
|
int (*ll_set_tx_pause_q_depth)(uint8_t vdev_id, int pause_q_depth);
|
|
|
- void (*vdev_flush)(void *vdev);
|
|
|
- void (*vdev_pause)(void *vdev, uint32_t reason);
|
|
|
- void (*vdev_unpause)(void *vdev, uint32_t reason);
|
|
|
+ void (*vdev_flush)(struct cdp_vdev *vdev);
|
|
|
+ void (*vdev_pause)(struct cdp_vdev *vdev, uint32_t reason);
|
|
|
+ void (*vdev_unpause)(struct cdp_vdev *vdev, uint32_t reason);
|
|
|
};
|
|
|
|
|
|
/**
|
|
@@ -635,19 +643,21 @@ struct cdp_lflowctl_ops {
|
|
|
* @ipa_tx_data_frame:
|
|
|
*/
|
|
|
struct cdp_ipa_ops {
|
|
|
- void (*ipa_get_resource)(void *pdev,
|
|
|
+ void (*ipa_get_resource)(struct cdp_pdev *pdev,
|
|
|
struct ol_txrx_ipa_resources *ipa_res);
|
|
|
- void (*ipa_set_doorbell_paddr)(void *pdev,
|
|
|
+ void (*ipa_set_doorbell_paddr)(struct cdp_pdev *pdev,
|
|
|
qdf_dma_addr_t ipa_tx_uc_doorbell_paddr,
|
|
|
qdf_dma_addr_t ipa_rx_uc_doorbell_paddr);
|
|
|
- void (*ipa_set_active)(void *pdev, bool uc_active, bool is_tx);
|
|
|
- void (*ipa_op_response)(void *pdev, uint8_t *op_msg);
|
|
|
- void (*ipa_register_op_cb)(void *pdev,
|
|
|
+ void (*ipa_set_active)(struct cdp_pdev *pdev,
|
|
|
+ bool uc_active, bool is_tx);
|
|
|
+ void (*ipa_op_response)(struct cdp_pdev *pdev, uint8_t *op_msg);
|
|
|
+ void (*ipa_register_op_cb)(struct cdp_pdev *pdev,
|
|
|
void (*ipa_uc_op_cb_type)(uint8_t *op_msg, void *osif_ctxt),
|
|
|
void *osif_dev);
|
|
|
- void (*ipa_get_stat)(void *pdev);
|
|
|
- qdf_nbuf_t (*ipa_tx_data_frame)(void *vdev, qdf_nbuf_t skb);
|
|
|
- void (*ipa_set_uc_tx_partition_base)(void *pdev, uint32_t value);
|
|
|
+ void (*ipa_get_stat)(struct cdp_pdev *pdev);
|
|
|
+ qdf_nbuf_t (*ipa_tx_data_frame)(struct cdp_vdev *vdev, qdf_nbuf_t skb);
|
|
|
+ void (*ipa_set_uc_tx_partition_base)(struct cdp_cfg *cfg_pdev,
|
|
|
+ uint32_t value);
|
|
|
};
|
|
|
|
|
|
/**
|
|
@@ -677,9 +687,10 @@ struct cdp_bus_ops {
|
|
|
* @get_ocb_chan_info:
|
|
|
*/
|
|
|
struct cdp_ocb_ops {
|
|
|
- void (*set_ocb_chan_info)(void *vdev,
|
|
|
- struct ol_txrx_ocb_set_chan ocb_set_chan);
|
|
|
- struct ol_txrx_ocb_chan_info * (*get_ocb_chan_info)(void *vdev);
|
|
|
+ void (*set_ocb_chan_info)(struct cdp_vdev *vdev,
|
|
|
+ struct ol_txrx_ocb_set_chan ocb_set_chan);
|
|
|
+ struct ol_txrx_ocb_chan_info *
|
|
|
+ (*get_ocb_chan_info)(struct cdp_vdev *vdev);
|
|
|
};
|
|
|
|
|
|
/**
|
|
@@ -710,42 +721,46 @@ struct cdp_ocb_ops {
|
|
|
* @update_last_real_peer:
|
|
|
*/
|
|
|
struct cdp_peer_ops {
|
|
|
- QDF_STATUS (*register_peer)(void *pdev,
|
|
|
+ QDF_STATUS (*register_peer)(struct cdp_pdev *pdev,
|
|
|
struct ol_txrx_desc_type *sta_desc);
|
|
|
- QDF_STATUS (*clear_peer)(void *pdev, uint8_t sta_id);
|
|
|
+ QDF_STATUS (*clear_peer)(struct cdp_pdev *pdev, uint8_t sta_id);
|
|
|
QDF_STATUS (*change_peer_state)(uint8_t sta_id,
|
|
|
enum ol_txrx_peer_state sta_state,
|
|
|
bool roam_synch_in_progress);
|
|
|
- void * (*find_peer_by_addr)(void *pdev,
|
|
|
+ void * (*find_peer_by_addr)(struct cdp_pdev *pdev,
|
|
|
uint8_t *peer_addr, uint8_t *peer_id);
|
|
|
- void * (*find_peer_by_addr_and_vdev)(void *pdev, void *vdev,
|
|
|
+ void * (*find_peer_by_addr_and_vdev)(struct cdp_pdev *pdev,
|
|
|
+ struct cdp_vdev *vdev,
|
|
|
uint8_t *peer_addr, uint8_t *peer_id);
|
|
|
uint16_t (*local_peer_id)(void *peer);
|
|
|
- void * (*peer_find_by_local_id)(void *pdev, uint8_t local_peer_id);
|
|
|
- QDF_STATUS (*peer_state_update)(void *pdev, uint8_t *peer_addr,
|
|
|
+ void * (*peer_find_by_local_id)(struct cdp_pdev *pdev,
|
|
|
+ uint8_t local_peer_id);
|
|
|
+ QDF_STATUS (*peer_state_update)(struct cdp_pdev *pdev,
|
|
|
+ uint8_t *peer_addr,
|
|
|
enum ol_txrx_peer_state state);
|
|
|
QDF_STATUS (*get_vdevid)(void *peer, uint8_t *vdev_id);
|
|
|
- void * (*get_vdev_by_sta_id)(uint8_t sta_id);
|
|
|
+ struct cdp_vdev * (*get_vdev_by_sta_id)(uint8_t sta_id);
|
|
|
QDF_STATUS (*register_ocb_peer)(void *cds_ctx, uint8_t *mac_addr,
|
|
|
uint8_t *peer_id);
|
|
|
uint8_t * (*peer_get_peer_mac_addr)(void *peer);
|
|
|
int (*get_peer_state)(void *peer);
|
|
|
- void * (*get_vdev_for_peer)(void *peer);
|
|
|
- int16_t (*update_ibss_add_peer_num_of_vdev)(void *vdev,
|
|
|
+ struct cdp_vdev * (*get_vdev_for_peer)(void *peer);
|
|
|
+ int16_t (*update_ibss_add_peer_num_of_vdev)(struct cdp_vdev *vdev,
|
|
|
int16_t peer_num_delta);
|
|
|
- void (*remove_peers_for_vdev)(void *vdev,
|
|
|
+ void (*remove_peers_for_vdev)(struct cdp_vdev *vdev,
|
|
|
ol_txrx_vdev_peer_remove_cb callback,
|
|
|
void *callback_context, bool remove_last_peer);
|
|
|
- void (*remove_peers_for_vdev_no_lock)(void *vdev,
|
|
|
+ void (*remove_peers_for_vdev_no_lock)(struct cdp_vdev *vdev,
|
|
|
ol_txrx_vdev_peer_remove_cb callback,
|
|
|
void *callback_context);
|
|
|
- void (*copy_mac_addr_raw)(void *vdev, uint8_t *bss_addr);
|
|
|
- void (*add_last_real_peer)(void *pdev, void *vdev, uint8_t *peer_id);
|
|
|
+ void (*copy_mac_addr_raw)(struct cdp_vdev *vdev, uint8_t *bss_addr);
|
|
|
+ void (*add_last_real_peer)(struct cdp_pdev *pdev,
|
|
|
+ struct cdp_vdev *vdev, uint8_t *peer_id);
|
|
|
qdf_time_t * (*last_assoc_received)(void *peer);
|
|
|
qdf_time_t * (*last_disassoc_received)(void *peer);
|
|
|
qdf_time_t * (*last_deauth_received)(void *peer);
|
|
|
bool (*is_vdev_restore_last_peer)(void *peer);
|
|
|
- void (*update_last_real_peer)(void *pdev, void *peer,
|
|
|
+ void (*update_last_real_peer)(struct cdp_pdev *pdev, void *peer,
|
|
|
uint8_t *peer_id, bool restore_last_peer);
|
|
|
void (*peer_detach_force_delete)(void *peer);
|
|
|
};
|
|
@@ -756,9 +771,9 @@ struct cdp_peer_ops {
|
|
|
* @throttle_set_level:
|
|
|
*/
|
|
|
struct cdp_throttle_ops {
|
|
|
- void (*throttle_init_period)(void *pdev, int period,
|
|
|
+ void (*throttle_init_period)(struct cdp_pdev *pdev, int period,
|
|
|
uint8_t *dutycycle_level);
|
|
|
- void (*throttle_set_level)(void *pdev, int level);
|
|
|
+ void (*throttle_set_level)(struct cdp_pdev *pdev, int level);
|
|
|
};
|
|
|
|
|
|
/**
|