Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1 | /* |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 2 | * Copyright (c) 2014-2016 The Linux Foundation. All rights reserved. |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 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 | /* |
| 29 | * Defintions for the Atheros Wireless LAN controller driver. |
| 30 | */ |
| 31 | #ifndef _DEV_OL_ATH_ATHVAR_H |
| 32 | #define _DEV_OL_ATH_ATHVAR_H |
| 33 | |
| 34 | #include <osapi_linux.h> |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 35 | #include "qdf_types.h" |
Anurag Chouhan | a37b5b7 | 2016-02-21 14:53:42 +0530 | [diff] [blame] | 36 | #include "qdf_lock.h" |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 37 | #include "wmi_unified_api.h" |
| 38 | #include "htc_api.h" |
| 39 | #include "bmi_msg.h" |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 40 | #include "ol_params.h" |
| 41 | #include <wdi_event_api.h> |
| 42 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 43 | #include "ol_ctrl_addba_api.h" |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 44 | |
| 45 | struct ol_version { |
| 46 | uint32_t host_ver; |
| 47 | uint32_t target_ver; |
| 48 | uint32_t wlan_ver; |
| 49 | uint32_t wlan_ver_1; |
| 50 | uint32_t abi_ver; |
| 51 | }; |
| 52 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 53 | enum ol_ath_tx_ecodes { |
| 54 | TX_IN_PKT_INCR = 0, |
| 55 | TX_OUT_HDR_COMPL, |
| 56 | TX_OUT_PKT_COMPL, |
| 57 | PKT_ENCAP_FAIL, |
| 58 | TX_PKT_BAD, |
| 59 | RX_RCV_MSG_RX_IND, |
| 60 | RX_RCV_MSG_PEER_MAP, |
| 61 | RX_RCV_MSG_TYPE_TEST |
| 62 | }; |
| 63 | |
| 64 | /* |
| 65 | * structure to hold the packet error count for CE and hif layer |
| 66 | */ |
| 67 | struct ol_ath_stats { |
| 68 | int hif_pipe_no_resrc_count; |
| 69 | int ce_ring_delta_fail_count; |
| 70 | }; |
| 71 | |
| 72 | #endif /* _DEV_OL_ATH_ATHVAR_H */ |