qcacmn: Data path converged internal APIs (Set 1)
Initial check-in of the data path converged APIs that are currently only implemented by MCL. Change-Id: I8132aeef4631a8e2fb5e132126a0fc5292c96d12 CRs-Fixed: 993414
This commit is contained in:

committed by
Vishwajith Upendra

parent
d90a4473ec
commit
9c222b15b0
63
dp/inc/cdp_txrx_flow_ctrl_v2.h
Normal file
63
dp/inc/cdp_txrx_flow_ctrl_v2.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright (c) 2016 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This file was originally distributed by Qualcomm Atheros, Inc.
|
||||
* under proprietary terms before Copyright ownership was assigned
|
||||
* to the Linux Foundation.
|
||||
*/
|
||||
/**
|
||||
* @file cdp_txrx_flow_ctrl_v2.h
|
||||
* @brief Define the host data path flow control version 2 API
|
||||
* functions
|
||||
*/
|
||||
#ifndef _CDP_TXRX_FC_V2_H_
|
||||
#define _CDP_TXRX_FC_V2_H_
|
||||
|
||||
#include "cdp_txrx_flow_ctrl_legacy.h"
|
||||
|
||||
/**
|
||||
* @typedef ol_tx_pause_callback_fp
|
||||
* @brief OSIF function registered with the data path
|
||||
*/
|
||||
typedef void (*ol_tx_pause_callback_fp)(uint8_t vdev_id,
|
||||
enum netif_action_type action,
|
||||
enum netif_reason_type reason);
|
||||
|
||||
#ifdef QCA_LL_TX_FLOW_CONTROL_V2
|
||||
QDF_STATUS ol_txrx_register_pause_cb(ol_tx_pause_callback_fp pause_cb);
|
||||
|
||||
void ol_tx_set_desc_global_pool_size(uint32_t num_msdu_desc);
|
||||
#else
|
||||
static inline
|
||||
QDF_STATUS ol_txrx_register_pause_cb(ol_tx_pause_callback_fp pause_cb)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
|
||||
}
|
||||
|
||||
static inline void ol_tx_set_desc_global_pool_size(uint32_t num_msdu_desc)
|
||||
{
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _CDP_TXRX_FC_V2_H_ */
|
Reference in New Issue
Block a user