summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorService qcabuildsw <qcabuildsw@localhost>2016-07-13 11:12:12 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-07-13 11:12:12 -0700
commitf6bcb1de8d4cb51233dc13dd7b5bf753a4f59899 (patch)
tree0a9fd848feb537ecb688bc40c9d01cc89a50daa7
parent2ea922dbc96ada6bba34b8e01a69baf17231cb95 (diff)
parent5b48620c0393be3e3a55e49a46f7ada31f57d6c5 (diff)
Merge "qcacld-3.0: Add host changes for latest fw common changes" into wlan-cld3.driver.lnx.1.1-dev
-rw-r--r--core/bmi/inc/ol_fw.h6
-rw-r--r--core/hdd/inc/wlan_hdd_cfg.h1
-rw-r--r--core/utils/fwlog/dbglog_host.h43
-rw-r--r--core/wma/inc/wma_api.h1
-rw-r--r--uapi/linux/osapi_linux.h6
5 files changed, 57 insertions, 0 deletions
diff --git a/core/bmi/inc/ol_fw.h b/core/bmi/inc/ol_fw.h
index 07a8e9c0222a..5243228970cf 100644
--- a/core/bmi/inc/ol_fw.h
+++ b/core/bmi/inc/ol_fw.h
@@ -38,6 +38,12 @@
#define AR6320_REV2_VERSION AR6320_REV1_1_VERSION
#define AR6320_REV4_VERSION AR6320_REV2_1_VERSION
#define SIGN_HEADER_MAGIC 0x454D4F52
+#define HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_SET (1 << 0)
+#define HI_ACS_FLAGS_SDIO_REDUCE_TX_COMPL_SET (1 << 1)
+#define HI_ACS_FLAGS_ALT_DATA_CREDIT_SIZE (1 << 2)
+
+#define HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_FW_ACK (1 << 16)
+#define HI_ACS_FLAGS_SDIO_REDUCE_TX_COMPL_FW_ACK (1 << 17)
void ol_target_failure(void *instance, QDF_STATUS status);
diff --git a/core/hdd/inc/wlan_hdd_cfg.h b/core/hdd/inc/wlan_hdd_cfg.h
index 85fb179b76eb..6df864c8b0f6 100644
--- a/core/hdd/inc/wlan_hdd_cfg.h
+++ b/core/hdd/inc/wlan_hdd_cfg.h
@@ -43,6 +43,7 @@
#include <qdf_types.h>
#include <csr_api.h>
#include <sap_api.h>
+#include "osapi_linux.h"
#include <wmi_unified.h>
#define FW_MODULE_LOG_LEVEL_STRING_LENGTH (255)
diff --git a/core/utils/fwlog/dbglog_host.h b/core/utils/fwlog/dbglog_host.h
index bbcf50a10b3c..cefeed6c656e 100644
--- a/core/utils/fwlog/dbglog_host.h
+++ b/core/utils/fwlog/dbglog_host.h
@@ -35,6 +35,49 @@ extern "C" {
#include "dbglog_common.h"
#include "ol_defines.h"
+#define DIAG_FWID_OFFSET 24
+#define DIAG_FWID_MASK 0xFF000000 /* Bit 24-31 */
+
+#define DIAG_TIMESTAMP_OFFSET 0
+#define DIAG_TIMESTAMP_MASK 0x00FFFFFF /* Bit 0-23 */
+
+#define DIAG_ID_OFFSET 16
+#define DIAG_ID_MASK 0xFFFF0000 /* Bit 16-31 */
+
+#define DIAG_VDEVID_OFFSET 11
+#define DIAG_VDEVID_MASK 0x0000F800 /* Bit 11-15 */
+#define DIAG_VDEVID_NUM_MAX 16
+
+#define DIAG_VDEVLEVEL_OFFSET 8
+#define DIAG_VDEVLEVEL_MASK 0x00000700 /* Bit 8-10 */
+
+#define DIAG_PAYLEN_OFFSET 0
+#define DIAG_PAYLEN_MASK 0x000000FF /* Bit 0-7 */
+
+#define DIAG_PAYLEN_OFFSET16 0
+#define DIAG_PAYLEN_MASK16 0x0000FFFF /* Bit 0-16 */
+
+#define DIAG_GET_TYPE(arg) \
+ ((arg & DIAG_FWID_MASK) >> DIAG_FWID_OFFSET)
+
+#define DIAG_GET_TIME_STAMP(arg) \
+ ((arg & DIAG_TIMESTAMP_MASK) >> DIAG_TIMESTAMP_OFFSET)
+
+#define DIAG_GET_ID(arg) \
+ ((arg & DIAG_ID_MASK) >> DIAG_ID_OFFSET)
+
+#define DIAG_GET_VDEVID(arg) \
+ ((arg & DIAG_VDEVID_MASK) >> DIAG_VDEVID_OFFSET)
+
+#define DIAG_GET_VDEVLEVEL(arg) \
+ ((arg & DIAG_VDEVLEVEL_MASK) >> DIAG_VDEVLEVEL_OFFSET)
+
+#define DIAG_GET_PAYLEN(arg) \
+ ((arg & DIAG_PAYLEN_MASK) >> DIAG_PAYLEN_OFFSET)
+
+#define DIAG_GET_PAYLEN16(arg) \
+ ((arg & DIAG_PAYLEN_MASK16) >> DIAG_PAYLEN_OFFSET16)
+
/*
* set the dbglog parser type
*/int
diff --git a/core/wma/inc/wma_api.h b/core/wma/inc/wma_api.h
index c690f55529c9..00b64767a203 100644
--- a/core/wma/inc/wma_api.h
+++ b/core/wma/inc/wma_api.h
@@ -32,6 +32,7 @@
#include "cds_mq.h"
#include "ani_global.h"
#include "a_types.h"
+#include "osapi_linux.h"
#include "wmi_unified.h"
#ifdef NOT_YET
#include "htc_api.h"
diff --git a/uapi/linux/osapi_linux.h b/uapi/linux/osapi_linux.h
index 221c1a4b0d4f..77de5272aac2 100644
--- a/uapi/linux/osapi_linux.h
+++ b/uapi/linux/osapi_linux.h
@@ -57,10 +57,16 @@
#define __ATTRIB_PACK __attribute__ ((packed))
#define __ATTRIB_PRINTF __attribute__ ((format (printf, 1, 2)))
#define __ATTRIB_NORETURN __attribute__ ((noreturn))
+#ifndef INLINE
+#define INLINE __inline__
+#endif
#else /* Not GCC */
#define __ATTRIB_PACK
#define __ATTRIB_PRINTF
#define __ATTRIB_NORETURN
+#ifndef INLINE
+#define INLINE __inline
+#endif
#endif /* End __GNUC__ */
#define PREPACK