From 5b48620c0393be3e3a55e49a46f7ada31f57d6c5 Mon Sep 17 00:00:00 2001 From: Govind Singh Date: Thu, 9 Jun 2016 18:29:42 +0530 Subject: [PATCH] qcacld-3.0: Add host changes for latest fw common changes FW common files needs to be in sync with host and fw. Add changes to compile successfully with latest version of FW interface file. Change-Id: I487a18185c406da5c2fb07e2a95cafe4793578aa CRs-Fixed: 1012542 --- core/bmi/inc/ol_fw.h | 6 +++++ core/hdd/inc/wlan_hdd_cfg.h | 1 + core/utils/fwlog/dbglog_host.h | 43 ++++++++++++++++++++++++++++++++++ core/wma/inc/wma_api.h | 1 + uapi/linux/osapi_linux.h | 6 +++++ 5 files changed, 57 insertions(+) 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 #include #include +#include "osapi_linux.h" #include #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