1*5113495bSYour Name /*
2*5113495bSYour Name * Copyright (c) 2014-2016, 2018 The Linux Foundation. All rights reserved.
3*5113495bSYour Name *
4*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for
5*5113495bSYour Name * any purpose with or without fee is hereby granted, provided that the
6*5113495bSYour Name * above copyright notice and this permission notice appear in all
7*5113495bSYour Name * copies.
8*5113495bSYour Name *
9*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10*5113495bSYour Name * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11*5113495bSYour Name * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12*5113495bSYour Name * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13*5113495bSYour Name * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14*5113495bSYour Name * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15*5113495bSYour Name * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16*5113495bSYour Name * PERFORMANCE OF THIS SOFTWARE.
17*5113495bSYour Name */
18*5113495bSYour Name
19*5113495bSYour Name #ifndef _OL_FW_H_
20*5113495bSYour Name #define _OL_FW_H_
21*5113495bSYour Name
22*5113495bSYour Name #include "qdf_types.h"
23*5113495bSYour Name #include "hif.h"
24*5113495bSYour Name #include "hif_hw_version.h"
25*5113495bSYour Name #include "bmi.h"
26*5113495bSYour Name
27*5113495bSYour Name #define AR6320_REV2_VERSION AR6320_REV1_1_VERSION
28*5113495bSYour Name #define AR6320_REV4_VERSION AR6320_REV2_1_VERSION
29*5113495bSYour Name #define SIGN_HEADER_MAGIC 0x454D4F52
30*5113495bSYour Name #define HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_SET (1 << 0)
31*5113495bSYour Name #define HI_ACS_FLAGS_SDIO_REDUCE_TX_COMPL_SET (1 << 1)
32*5113495bSYour Name #define HI_ACS_FLAGS_ALT_DATA_CREDIT_SIZE (1 << 2)
33*5113495bSYour Name
34*5113495bSYour Name #define HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_FW_ACK (1 << 16)
35*5113495bSYour Name #define HI_ACS_FLAGS_SDIO_REDUCE_TX_COMPL_FW_ACK (1 << 17)
36*5113495bSYour Name
37*5113495bSYour Name #ifdef WLAN_FEATURE_BMI
38*5113495bSYour Name void ol_target_failure(void *instance, QDF_STATUS status);
39*5113495bSYour Name
40*5113495bSYour Name void ol_target_ready(struct hif_opaque_softc *scn, void *cfg_ctx);
41*5113495bSYour Name QDF_STATUS ol_extra_initialization(struct ol_context *ol_ctx);
42*5113495bSYour Name #else /* WLAN_FEATURE_BMI */
ol_target_failure(void * instance,QDF_STATUS status)43*5113495bSYour Name static inline void ol_target_failure(void *instance, QDF_STATUS status) {}
44*5113495bSYour Name #endif /* WLAN_FEATURE_BMI */
45*5113495bSYour Name #endif /* _OL_FW_H_ */
46