blob: 16c749c0cd43a5982d436d7a698095a8cc3ee21f [file] [log] [blame]
Dhanashri Atre9c222b12016-03-22 13:26:13 -07001/*
2 * Copyright (c) 2016 The Linux Foundation. All rights reserved.
3 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
20 */
21
22/*
23 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
26 */
27 /**
28 * @file cdp_txrx_tx_delay.h
29 * @brief Define the host data path histogram API functions
30 * called by the host control SW and the OS interface module
31 */
32#ifndef _CDP_TXRX_COMPUTE_TX_DELAY_H_
33#define _CDP_TXRX_COMPUTE_TX_DELAY_H_
34
35#ifdef QCA_COMPUTE_TX_DELAY
36void
37ol_tx_delay(ol_txrx_pdev_handle pdev,
38 uint32_t *queue_delay_microsec,
39 uint32_t *tx_delay_microsec, int category);
40void
41ol_tx_delay_hist(ol_txrx_pdev_handle pdev,
42 uint16_t *bin_values, int category);
43void
44ol_tx_packet_count(ol_txrx_pdev_handle pdev,
45 uint16_t *out_packet_count,
46 uint16_t *out_packet_loss_count, int category);
Dhanashri Atre9c222b12016-03-22 13:26:13 -070047void ol_tx_set_compute_interval(ol_txrx_pdev_handle pdev,
48 uint32_t interval);
49#else
50static inline void
51ol_tx_delay(ol_txrx_pdev_handle pdev,
52 uint32_t *queue_delay_microsec,
53 uint32_t *tx_delay_microsec, int category)
54{
55 return;
56}
57
58static inline void
59ol_tx_delay_hist(ol_txrx_pdev_handle pdev,
60 uint16_t *bin_values, int category)
61{
62 return;
63}
64
65static inline void
66ol_tx_packet_count(ol_txrx_pdev_handle pdev,
67 uint16_t *out_packet_count,
68 uint16_t *out_packet_loss_count, int category)
69{
70 return;
71}
72
73static inline void
74ol_tx_set_compute_interval(ol_txrx_pdev_handle pdev,
75 uint32_t interval)
76{
77 return;
78}
79#endif
80
81#endif /* _CDP_TXRX_COMPUTE_TX_DELAY_H_ */