diff options
| author | tinlin <tinlin@codeaurora.org> | 2017-11-22 15:15:27 +0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-11-28 05:52:09 -0800 |
| commit | 435332496b76ffd2b356cad8fb8ca649e672e1f7 (patch) | |
| tree | 0c45a4233b91440bad82e656d85569b2b0f121e7 | |
| parent | a22f65dfa034177f0ac6d0162a4de62291999311 (diff) | |
qcacld-2.0: CL 3663009 - Update fw common interface files
Define WMI_BOARD_MCN_STRING_BUF_SIZE
Change-Id: Ia35ab0159c33c40a5bf5505680eb73e2be2987fe
CRs-fixed: 865207
| -rw-r--r-- | CORE/SERVICES/COMMON/wmi_unified.h | 27 | ||||
| -rw-r--r-- | CORE/SERVICES/COMMON/wmi_version.h | 2 |
2 files changed, 27 insertions, 2 deletions
diff --git a/CORE/SERVICES/COMMON/wmi_unified.h b/CORE/SERVICES/COMMON/wmi_unified.h index 6b465159031d..6255ae2254f2 100644 --- a/CORE/SERVICES/COMMON/wmi_unified.h +++ b/CORE/SERVICES/COMMON/wmi_unified.h @@ -7172,7 +7172,7 @@ typedef struct { * Indicates support by a STA to receive an ack-enabled A-MPDU in which an A-MSDU is carried in * a QoS Data frame for which no block ack agreement exists. */ -#define WMI_HECAP_MAC_AMSDUINAMPDU_GET(he_cap) (hecap, 15, 1) +#define WMI_HECAP_MAC_AMSDUINAMPDU_GET(he_cap) WMI_GET_BITS(hecap, 15, 1) #define WMI_HECAP_MAC_AMSDUINAMPDU_SET(he_cap, value) WMI_SET_BITS(he_cap, 15, 1, value) /*--- HECAP_MAC_HELKAD: DO NOT USE - DEPRECATED ---*/ @@ -20989,6 +20989,16 @@ typedef enum { WMI_CALIBRATION_NOT_OK, /* The calibration status is NOT OK */ } WMI_CALIBRATION_STATUS; +#define WMI_BOARD_MCN_STRING_MAX_SIZE 19 + +/** + * WMI_BOARD_MCN_STRING_BUF_SIZE : represents the number of elements in board_mcn_detail. + * Since board_mcn_detail is of type A_UINT8, the value of WMI_BOARD_MCN_STRING_BUF_SIZE + * should be multiple of 4 for alignement reason. And the last byte byte is reserved for + * null-terminator + */ +#define WMI_BOARD_MCN_STRING_BUF_SIZE (WMI_BOARD_MCN_STRING_MAX_SIZE+1) /* null-terminator */ + typedef struct { /* TLV tag and len; tag equals * WMITLV_TAG_STRUC_wmi_pdev_check_cal_version_event_fixed_param @@ -21000,6 +21010,21 @@ typedef struct { A_UINT32 board_cal_version; /* filled with WMI_CALIBRATION_STATUS enum value */ A_UINT32 cal_status; + + /* board_mcn_detail: + * Provides board's MCN (Material Control Number) information for the host + * to display. This is used to track the Hardware level revisions/versions. + * This array carries the ASCII values of the MCN to the host. And host + * would just print this in a string format whenever user requests. + * Note: On a big-endian host, the 4 bytes within each A_UINT32 portion + * of a WMI message will be automatically byteswapped by the copy engine + * as the messages are transferred between host and target, to convert + * between the target's little-endianness and the host's big-endianness. + * Consequently, a big-endian host will have to manually unswap the bytes + * within the board_mcn_detail string buffer to get the bytes back into + * the desired natural order. + */ + A_UINT8 board_mcn_detail[WMI_BOARD_MCN_STRING_BUF_SIZE]; /** pdev_id for identifying the MAC * See macros starting with WMI_PDEV_ID_ for values. */ diff --git a/CORE/SERVICES/COMMON/wmi_version.h b/CORE/SERVICES/COMMON/wmi_version.h index 83a9c6e97c5b..f6c1a53143cd 100644 --- a/CORE/SERVICES/COMMON/wmi_version.h +++ b/CORE/SERVICES/COMMON/wmi_version.h @@ -36,7 +36,7 @@ #define __WMI_VER_MINOR_ 0 /** WMI revision number has to be incremented when there is a * change that may or may not break compatibility. */ -#define __WMI_REVISION_ 459 +#define __WMI_REVISION_ 460 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work |
