blob: afd143899ec2a7d48e4934ad38a8a98ce3f96fc8 [file] [log] [blame]
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001/*
Anurag Chouhan6d760662016-02-20 16:05:43 +05302 * Copyright (c) 2014-2016 The Linux Foundation. All rights reserved.
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003 *
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 Chouhan6d760662016-02-20 16:05:43 +053035#include "qdf_types.h"
Anurag Chouhana37b5b72016-02-21 14:53:42 +053036#include "qdf_lock.h"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080037#include "wmi_unified_api.h"
38#include "htc_api.h"
39#include "bmi_msg.h"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080040#include "ol_params.h"
41#include <wdi_event_api.h>
42
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080043#include "ol_ctrl_addba_api.h"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080044
45struct 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 Dhavali7090c5f2015-11-02 17:55:19 -080053enum 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 */
67struct 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 */