Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2b30ec2 authored by spuligil's avatar spuligil Committed by Madan Koyyalamudi
Browse files

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

Change-Id: Ieef94917033ce236d2149b42a65d8bdf4531e74e
WMI: add CRM sub ID extension bitfield
CRs-Fixed: 2262693
parent a855ce20
Loading
Loading
Loading
Loading
+36 −2
Original line number Diff line number Diff line
@@ -117,6 +117,18 @@ extern "C" {
    (_var) |= (((_val) & ((1 << (_num_bits)) - 1)) << (_index));    \
    } while (0)
#define WMI_APPEND_TWO_SET_BITS(var, lsb_index, lsb_num_bits, msb_index, msb_num_bits, val) \
    do { \
        WMI_SET_BITS(var, lsb_index, lsb_num_bits, val); \
        WMI_SET_BITS(var, msb_index, msb_num_bits, (val >> lsb_num_bits)); \
    } while(0)
#define WMI_APPEND_TWO_GET_BITS(var, lsb_index, lsb_num_bits, msb_index, msb_num_bits, val) \
    do { \
        (var) = WMI_GET_BITS(val, lsb_index, lsb_num_bits); \
        (var) |= (WMI_GET_BITS(val, msb_index, msb_num_bits) << lsb_num_bits); \
    } while(0)
/**
 * A packed array is an array where each entry in the array is less than
 * or equal to 16 bits, and the entries are stuffed into an A_UINT32 array.
@@ -2883,8 +2895,9 @@ typedef struct {
    /*
     * Extended FW build version information:
     * bits  9:0  -> HDL version info
     * bits 27:10 -> reserved
     * bits 31:28 -> CRM sub ID
     * bits 12:10 -> CRM sub ID MSbs (refer to WMI_SVC_RDY_CRM_SUB_ID_GET/SET)
     * bits 27:13 -> reserved
     * bits 31:28 -> CRM sub ID LSbs (refer to WMI_SVC_RDY_CRM_SUB_ID_GET/SET)
     */
    A_UINT32 fw_build_vers_ext;
    /* max_nlo_ssids - dynamically negotiated maximum number of SSIDS for NLO
@@ -2919,6 +2932,27 @@ typedef struct {
     */
} wmi_service_ready_ext_event_fixed_param;
#define WMI_SVC_RDY_CRM_SUB_ID_LSBS_INDEX    28
#define WMI_SVC_RDY_CRM_SUB_ID_LSBS_NUM_BITS 4
#define WMI_SVC_RDY_CRM_SUB_ID_MSBS_INDEX    10
#define WMI_SVC_RDY_CRM_SUB_ID_MSBS_NUM_BITS 3
#define WMI_SVC_RDY_CRM_SUB_ID_GET(var, val) \
    WMI_APPEND_TWO_GET_BITS( \
        var, \
        WMI_SVC_RDY_CRM_SUB_ID_LSBS_INDEX, \
        WMI_SVC_RDY_CRM_SUB_ID_LSBS_NUM_BITS, \
        WMI_SVC_RDY_CRM_SUB_ID_MSBS_INDEX, \
        WMI_SVC_RDY_CRM_SUB_ID_MSBS_NUM_BITS, \
        val)
#define WMI_SVC_RDY_CRM_SUB_ID_SET(var, val) \
    WMI_APPEND_TWO_SET_BITS( \
        var, \
        WMI_SVC_RDY_CRM_SUB_ID_LSBS_INDEX, \
        WMI_SVC_RDY_CRM_SUB_ID_LSBS_NUM_BITS, \
        WMI_SVC_RDY_CRM_SUB_ID_MSBS_INDEX, \
        WMI_SVC_RDY_CRM_SUB_ID_MSBS_NUM_BITS, \
        val)
/*
 * regdb version GET/SET APIs
 */
+1 −1
Original line number Diff line number Diff line
@@ -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_ 1080
#define __WMI_REVISION_ 1081

/** The Version Namespace should not be normally changed. Only
 *  host and firmware of the same WMI namespace will work