fw-api: CL 7739388 - update fw common interface files

Change-Id: Id0a5060bfa85e9f21dfc935bf799e78912e03cdd
WMI: add regulatory DB version info to service ready ext2 msg
CRs-Fixed: 2262693
Цей коміт міститься в:
spuligil
2019-07-29 06:00:38 -07:00
зафіксовано nshrivas
джерело 722cc198b9
коміт 2f53438acb
2 змінених файлів з 49 додано та 1 видалено

Переглянути файл

@@ -2564,8 +2564,56 @@ typedef struct {
*/
} wmi_service_ready_ext_event_fixed_param;
/*
* regdb version GET/SET APIs
*/
#define WMI_REG_DB_VERSION_MAJOR_BITPOS 0
#define WMI_REG_DB_VERSION_MINOR_BITPOS 8
#define WMI_BDF_REG_DB_VERSION_MAJOR_BITPOS 16
#define WMI_BDF_REG_DB_VERSION_MINOR_BITPOS 24
#define WMI_REG_DB_VERSION_NUM_BITS 8
#define WMI_REG_DB_VERSION_MAJOR_GET(dword) \
WMI_GET_BITS(dword, WMI_REG_DB_VERSION_MAJOR_BITPOS, WMI_REG_DB_VERSION_NUM_BITS)
#define WMI_REG_DB_VERSION_MAJOR_SET(dword, value) \
WMI_SET_BITS(dword, WMI_REG_DB_VERSION_MAJOR_BITPOS, WMI_REG_DB_VERSION_NUM_BITS, value)
#define WMI_REG_DB_VERSION_MINOR_GET(dword) \
WMI_GET_BITS(dword, WMI_REG_DB_VERSION_MINOR_BITPOS, WMI_REG_DB_VERSION_NUM_BITS)
#define WMI_REG_DB_VERSION_MINOR_SET(dword, value) \
WMI_SET_BITS(dword, WMI_REG_DB_VERSION_MINOR_BITPOS, WMI_REG_DB_VERSION_NUM_BITS, value)
#define WMI_BDF_REG_DB_VERSION_MAJOR_GET(dword) \
WMI_GET_BITS(dword, WMI_BDF_REG_DB_VERSION_MAJOR_BITPOS, WMI_REG_DB_VERSION_NUM_BITS)
#define WMI_BDF_REG_DB_VERSION_MAJOR_SET(dword, value) \
WMI_SET_BITS(dword, WMI_BDF_REG_DB_VERSION_MAJOR_BITPOS, WMI_REG_DB_VERSION_NUM_BITS, value)
#define WMI_BDF_REG_DB_VERSION_MINOR_GET(dword) \
WMI_GET_BITS(dword, WMI_BDF_REG_DB_VERSION_MINOR_BITPOS, WMI_REG_DB_VERSION_NUM_BITS)
#define WMI_BDF_REG_DB_VERSION_MINOR_SET(dword, value) \
WMI_SET_BITS(dword, WMI_BDF_REG_DB_VERSION_MINOR_BITPOS, WMI_REG_DB_VERSION_NUM_BITS, value)
#define WMI_REG_DB_VERSION_SET(dword, reg_db_ver_major, reg_db_ver_minor, bdf_reg_db_ver_major, bdf_reg_db_ver_minor) \
do { \
WMI_REG_DB_VERSION_MAJOR_SET(dword, reg_db_ver_major); \
WMI_REG_DB_VERSION_MINOR_SET(dword, reg_db_ver_minor); \
WMI_BDF_REG_DB_VERSION_MAJOR_SET(dword, bdf_reg_db_ver_major); \
WMI_BDF_REG_DB_VERSION_MINOR_SET(dword, bdf_reg_db_ver_minor); \
} while (0)
typedef struct {
A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_service_ready_ext2_event_fixed_param.*/
/*
* regDB Version to be sent to Host on WMI service ready ext2 event.
* [7:0] - regDbVersionMajor
* [15:8] - regDbVersionMinor
* [23:16] - bdfRegDbVersionMajor
* [31:24] - bdfRegDbVersionMinor
* The WMI_*REG_DB_VERSION_[MAJOR,MINOR]_[SET,GET] macros are used to
* access these bitfields.
*/
A_UINT32 reg_db_version;
} wmi_service_ready_ext2_event_fixed_param;
typedef struct {

Переглянути файл

@@ -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_ 702
#define __WMI_REVISION_ 703
/** The Version Namespace should not be normally changed. Only
* host and firmware of the same WMI namespace will work