qcacld-3.0: Initial snapshot of ihelium wlan driver
qcacld-3.0: Initial snapshot of ihelium wlan driver to match code-scanned SU Release 5.0.0.139. This is open-source version of wlan for next Android release. Change-Id: Icf598ca97da74f84bea607e4e902d1889806f507
This commit is contained in:
60
core/bmi/inc/bmi.h
Normal file
60
core/bmi/inc/bmi.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2015 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||
*
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
* above copyright notice and this permission notice appear in all
|
||||
* copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
||||
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
||||
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
||||
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
||||
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||||
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This file was originally distributed by Qualcomm Atheros, Inc.
|
||||
* under proprietary terms before Copyright ownership was assigned
|
||||
* to the Linux Foundation.
|
||||
*/
|
||||
|
||||
/* ================================================================ */
|
||||
/* BMI declarations and prototypes */
|
||||
/* */
|
||||
/* ================================================================= */
|
||||
|
||||
#ifndef _BMI_H_
|
||||
#define _BMI_H_
|
||||
#include "bmi_msg.h"
|
||||
#include "cdf_trace.h"
|
||||
#include "ol_if_athvar.h"
|
||||
#include "hif.h"
|
||||
|
||||
#ifdef HIF_PCI
|
||||
void bmi_cleanup(struct ol_softc *scn);
|
||||
CDF_STATUS bmi_done(struct ol_softc *scn);
|
||||
CDF_STATUS bmi_download_firmware(struct ol_softc *scn);
|
||||
#else
|
||||
static inline void bmi_cleanup(struct ol_softc *scn)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
static inline CDF_STATUS bmi_done(struct ol_softc *scn)
|
||||
{
|
||||
return CDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline CDF_STATUS bmi_download_firmware(struct ol_softc *scn)
|
||||
{
|
||||
return CDF_STATUS_SUCCESS;
|
||||
}
|
||||
#endif
|
||||
#endif /* _BMI_H_ */
|
64
core/bmi/inc/ol_fw.h
Normal file
64
core/bmi/inc/ol_fw.h
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright (c) 2014 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||
*
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
* above copyright notice and this permission notice appear in all
|
||||
* copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
||||
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
||||
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
||||
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
||||
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||||
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This file was originally distributed by Qualcomm Atheros, Inc.
|
||||
* under proprietary terms before Copyright ownership was assigned
|
||||
* to the Linux Foundation.
|
||||
*/
|
||||
|
||||
#ifndef _OL_FW_H_
|
||||
#define _OL_FW_H_
|
||||
|
||||
#ifdef QCA_WIFI_FTM
|
||||
#include "cdf_types.h"
|
||||
#endif
|
||||
#include "hif.h"
|
||||
|
||||
#define AR6004_VERSION_REV1_3 0x31c8088a
|
||||
|
||||
#define AR9888_REV2_VERSION 0x4100016c
|
||||
#define AR6320_REV1_VERSION 0x5000000
|
||||
#define AR6320_REV1_1_VERSION 0x5000001
|
||||
#define AR6320_REV1_VERSION_1 AR6320_REV1_1_VERSION
|
||||
#define AR6320_REV1_3_VERSION 0x5000003
|
||||
#define AR6320_REV2_VERSION AR6320_REV1_1_VERSION
|
||||
#define AR6320_REV2_1_VERSION 0x5010000
|
||||
#define AR6320_REV3_VERSION 0x5020000
|
||||
#define AR6320_REV3_2_VERSION 0x5030000
|
||||
#define AR6320_REV4_VERSION AR6320_REV2_1_VERSION
|
||||
#define AR6320_DEV_VERSION 0x1000000
|
||||
|
||||
#ifdef HIF_PCI
|
||||
void ol_target_failure(void *instance, CDF_STATUS status);
|
||||
uint8_t ol_get_number_of_peers_supported(struct ol_softc *scn);
|
||||
#else
|
||||
static inline void ol_target_failure(void *instance, CDF_STATUS status)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
static inline uint8_t ol_get_number_of_peers_supported(struct ol_softc *scn)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
#endif /* _OL_FW_H_ */
|
87
core/bmi/inc/ol_if_athvar.h
Normal file
87
core/bmi/inc/ol_if_athvar.h
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright (c) 2014 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||
*
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
* above copyright notice and this permission notice appear in all
|
||||
* copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
||||
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
||||
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
||||
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
||||
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||||
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This file was originally distributed by Qualcomm Atheros, Inc.
|
||||
* under proprietary terms before Copyright ownership was assigned
|
||||
* to the Linux Foundation.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Defintions for the Atheros Wireless LAN controller driver.
|
||||
*/
|
||||
#ifndef _DEV_OL_ATH_ATHVAR_H
|
||||
#define _DEV_OL_ATH_ATHVAR_H
|
||||
|
||||
#include <osapi_linux.h>
|
||||
#include "cdf_types.h"
|
||||
#include "cdf_lock.h"
|
||||
#include "wmi_unified_api.h"
|
||||
#include "htc_api.h"
|
||||
#include "bmi_msg.h"
|
||||
#include "ol_txrx_api.h"
|
||||
#include "ol_txrx_ctrl_api.h"
|
||||
#include "ol_txrx_osif_api.h"
|
||||
#include "ol_params.h"
|
||||
#include <wdi_event_api.h>
|
||||
|
||||
#ifdef CONFIG_CNSS
|
||||
#include <net/cnss.h>
|
||||
#endif
|
||||
|
||||
#include "ol_ctrl_addba_api.h"
|
||||
typedef void *hif_handle_t;
|
||||
|
||||
struct ol_version {
|
||||
uint32_t host_ver;
|
||||
uint32_t target_ver;
|
||||
uint32_t wlan_ver;
|
||||
uint32_t wlan_ver_1;
|
||||
uint32_t abi_ver;
|
||||
};
|
||||
|
||||
typedef enum _ol_target_status {
|
||||
OL_TRGET_STATUS_CONNECTED = 0, /* target connected */
|
||||
OL_TRGET_STATUS_RESET, /* target got reset */
|
||||
OL_TRGET_STATUS_EJECT, /* target got ejected */
|
||||
OL_TRGET_STATUS_SUSPEND /*target got suspend */
|
||||
} ol_target_status;
|
||||
|
||||
enum ol_ath_tx_ecodes {
|
||||
TX_IN_PKT_INCR = 0,
|
||||
TX_OUT_HDR_COMPL,
|
||||
TX_OUT_PKT_COMPL,
|
||||
PKT_ENCAP_FAIL,
|
||||
TX_PKT_BAD,
|
||||
RX_RCV_MSG_RX_IND,
|
||||
RX_RCV_MSG_PEER_MAP,
|
||||
RX_RCV_MSG_TYPE_TEST
|
||||
};
|
||||
|
||||
/*
|
||||
* structure to hold the packet error count for CE and hif layer
|
||||
*/
|
||||
struct ol_ath_stats {
|
||||
int hif_pipe_no_resrc_count;
|
||||
int ce_ring_delta_fail_count;
|
||||
};
|
||||
|
||||
#endif /* _DEV_OL_ATH_ATHVAR_H */
|
Reference in New Issue
Block a user