Manjunathappa Prakash | 1fef6fb | 2020-01-08 15:43:35 -0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2020, The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * Permission to use, copy, modify, and/or distribute this software for any |
| 5 | * purpose with or without fee is hereby granted, provided that the above |
| 6 | * copyright notice and this permission notice appear in all copies. |
| 7 | * |
| 8 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 9 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 10 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 11 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 12 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 13 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 15 | */ |
| 16 | |
| 17 | #include <dp_types.h> |
| 18 | #include <qdf_status.h> |
| 19 | |
| 20 | //#define FISA_DEBUG_ENABLE |
| 21 | |
| 22 | #ifdef FISA_DEBUG_ENABLE |
| 23 | #define dp_fisa_debug dp_info |
| 24 | #else |
| 25 | #define dp_fisa_debug dp_debug |
| 26 | #endif |
| 27 | |
| 28 | #if defined(WLAN_SUPPORT_RX_FISA) |
| 29 | /** |
| 30 | * dp_rx_dump_fisa_stats() - Dump fisa stats |
| 31 | * @soc: core txrx main context |
| 32 | * |
| 33 | * Return: QDF_STATUS |
| 34 | */ |
| 35 | QDF_STATUS dp_rx_dump_fisa_stats(struct dp_soc *soc); |
| 36 | |
| 37 | /** |
| 38 | * dp_fisa_rx() - FISA Rx packet delivery entry function |
| 39 | * @soc: core txrx main context |
| 40 | * @vdev: core txrx vdev |
| 41 | * @nbuf_list: Delivery list of nbufs |
| 42 | * |
| 43 | * Return: QDF_STATUS |
| 44 | */ |
| 45 | QDF_STATUS dp_fisa_rx(struct dp_soc *dp_fisa_rx_hdl, struct dp_vdev *vdev, |
| 46 | qdf_nbuf_t nbuf_list); |
| 47 | |
| 48 | /** |
| 49 | * dp_rx_fisa_flush() - FISA Rx flush function to flush aggregation at end of |
| 50 | * NAPI |
| 51 | * @soc: core txrx main context |
| 52 | * @napi_id: Flows which are rxed on the NAPI ID to be flushed |
| 53 | * |
| 54 | * Return: QDF_STATUS |
| 55 | */ |
| 56 | QDF_STATUS dp_rx_fisa_flush(struct dp_soc *soc, int napi_id); |
| 57 | |
| 58 | #else |
| 59 | static QDF_STATUS dp_rx_dump_fisa_stats(struct dp_soc *soc) |
| 60 | { |
| 61 | return QDF_STATUS_SUCCESS; |
| 62 | } |
| 63 | |
| 64 | void dp_rx_dump_fisa_table(struct dp_soc *soc) |
| 65 | { |
| 66 | } |
| 67 | #endif |