123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- /*
- * 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_ */
|