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 | |
| 43 | #ifdef CONFIG_CNSS |
| 44 | #include <net/cnss.h> |
| 45 | #endif |
| 46 | |
| 47 | #include "ol_ctrl_addba_api.h" |
| 48 | typedef void *hif_handle_t; |
| 49 | |
| 50 | struct ol_version { |
| 51 | uint32_t host_ver; |
| 52 | uint32_t target_ver; |
| 53 | uint32_t wlan_ver; |
| 54 | uint32_t wlan_ver_1; |
| 55 | uint32_t abi_ver; |
| 56 | }; |
| 57 | |
| 58 | typedef enum _ol_target_status { |
| 59 | OL_TRGET_STATUS_CONNECTED = 0, /* target connected */ |
| 60 | OL_TRGET_STATUS_RESET, /* target got reset */ |
| 61 | OL_TRGET_STATUS_EJECT, /* target got ejected */ |
| 62 | OL_TRGET_STATUS_SUSPEND /*target got suspend */ |
| 63 | } ol_target_status; |
| 64 | |
| 65 | enum ol_ath_tx_ecodes { |
| 66 | TX_IN_PKT_INCR = 0, |
| 67 | TX_OUT_HDR_COMPL, |
| 68 | TX_OUT_PKT_COMPL, |
| 69 | PKT_ENCAP_FAIL, |
| 70 | TX_PKT_BAD, |
| 71 | RX_RCV_MSG_RX_IND, |
| 72 | RX_RCV_MSG_PEER_MAP, |
| 73 | RX_RCV_MSG_TYPE_TEST |
| 74 | }; |
| 75 | |
| 76 | /* |
| 77 | * structure to hold the packet error count for CE and hif layer |
| 78 | */ |
| 79 | struct ol_ath_stats { |
| 80 | int hif_pipe_no_resrc_count; |
| 81 | int ce_ring_delta_fail_count; |
| 82 | }; |
| 83 | |
| 84 | #endif /* _DEV_OL_ATH_ATHVAR_H */ |