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

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

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

Change-Id: I93e50fae48813f8ffea5464fe1c28a1a14c40cf4
WMI: PDEV_GET_HALPHY_CAL_STATUS CMD,EVENT msg defs
CRs-Fixed: 2262693
parent 0a82a326
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -535,6 +535,7 @@ typedef enum {
    WMI_SERVICE_BIG_DATA_SUPPORT = 290, /* Indicates FW supports Big Data feature */
    WMI_SERVICE_EAPOL_OVER_NWIFI = 291, /* Indicates FW supports sending eapol frames in native wifi mode even when the vdev is brought up in raw ethernet mode */
    WMI_SERVICE_AMPDU_TX_BUF_SIZE_256_SUPPORT = 292, /* Indicates FW supports MAX 256 MPDUs in A-MPDU instead of 64 */
    WMI_SERVICE_HALPHY_CAL_STATUS = 293, /* Indicates FW supports sending online HALPHY Calibration status to host */


    WMI_MAX_EXT2_SERVICE
+14 −0
Original line number Diff line number Diff line
@@ -1161,6 +1161,8 @@ typedef enum {
    WMITLV_TAG_STRUC_wmi_vdev_create_mlo_params,
    WMITLV_TAG_STRUC_wmi_pdev_set_bios_sar_table_cmd_fixed_param,
    WMITLV_TAG_STRUC_wmi_pdev_set_bios_geo_table_cmd_fixed_param,
    WMITLV_TAG_STRUC_wmi_pdev_get_halphy_cal_status_cmd_fixed_param,
    WMITLV_TAG_STRUC_wmi_pdev_get_halphy_cal_status_evt_fixed_param,
} WMITLV_TAG_ID;

/*
@@ -1626,6 +1628,7 @@ typedef enum {
    OP(WMI_MGMT_RX_REO_FILTER_CONFIGURATION_CMDID) \
    OP(WMI_PDEV_SET_BIOS_SAR_TABLE_CMDID) \
    OP(WMI_PDEV_SET_BIOS_GEO_TABLE_CMDID) \
    OP(WMI_PDEV_GET_HALPHY_CAL_STATUS_CMDID) \
    /* add new CMD_LIST elements above this line */


@@ -1893,6 +1896,7 @@ typedef enum {
    OP(WMI_MLO_TEARDOWN_COMPLETE_EVENTID) \
    OP(WMI_VDEV_SMART_MONITOR_EVENTID) \
    OP(WMI_MGMT_RX_FW_CONSUMED_EVENTID) \
    OP(WMI_PDEV_GET_HALPHY_CAL_STATUS_EVENTID) \
    /* add new EVT_LIST elements above this line */


@@ -4661,6 +4665,11 @@ WMITLV_CREATE_PARAM_STRUC(WMI_MLO_LINK_SET_ACTIVE_CMDID);
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_pdev_get_dpd_status_cmd_fixed_param, wmi_pdev_get_dpd_status_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_GET_DPD_STATUS_CMDID);

/* Request Calibration Status */
#define WMITLV_TABLE_WMI_PDEV_GET_HALPHY_CAL_STATUS_CMDID(id,op,buf,len) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_pdev_get_halphy_cal_status_cmd_fixed_param, wmi_pdev_get_halphy_cal_status_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_GET_HALPHY_CAL_STATUS_CMDID);

/** WMI cmd used to indicate hw_links part of MLO */
#define WMITLV_TABLE_WMI_MLO_SETUP_CMDID(id,op,buf,len) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_mlo_setup_cmd_fixed_param, wmi_mlo_setup_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX) \
@@ -6324,6 +6333,11 @@ WMITLV_CREATE_PARAM_STRUC(WMI_MLO_TEARDOWN_COMPLETE_EVENTID);
     WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_vdev_smart_monitor_event_fixed_param, wmi_vdev_smart_monitor_event_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_VDEV_SMART_MONITOR_EVENTID);

/* Get Calibration status Event */
#define WMITLV_TABLE_WMI_PDEV_GET_HALPHY_CAL_STATUS_EVENTID(id,op,buf,len)  \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_pdev_get_halphy_cal_status_evt_fixed_param, wmi_pdev_get_halphy_cal_status_evt_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_GET_HALPHY_CAL_STATUS_EVENTID);


#ifdef __cplusplus
}
+74 −0
Original line number Diff line number Diff line
@@ -452,6 +452,8 @@ typedef enum {
    WMI_PDEV_SET_BIOS_SAR_TABLE_CMDID,
    /* Set bios geo table */
    WMI_PDEV_SET_BIOS_GEO_TABLE_CMDID,
    /* Get Calibration status from HALPHY */
    WMI_PDEV_GET_HALPHY_CAL_STATUS_CMDID,
    /* VDEV (virtual device) specific commands */
    /** vdev create */
@@ -1512,6 +1514,9 @@ typedef enum {
    /* Event to get DPD status from HALPHY */
    WMI_PDEV_GET_DPD_STATUS_EVENTID,
    /* Event to get Calibration status from HALPHY */
    WMI_PDEV_GET_HALPHY_CAL_STATUS_EVENTID,
    /* VDEV specific events */
    /** VDEV started event in response to VDEV_START request */
@@ -28795,6 +28800,7 @@ static INLINE A_UINT8 *wmi_id_to_name(A_UINT32 wmi_command)
        WMI_RETURN_STRING(WMI_MGMT_RX_REO_FILTER_CONFIGURATION_CMDID);
        WMI_RETURN_STRING(WMI_PDEV_SET_BIOS_SAR_TABLE_CMDID);
        WMI_RETURN_STRING(WMI_PDEV_SET_BIOS_GEO_TABLE_CMDID);
        WMI_RETURN_STRING(WMI_PDEV_GET_HALPHY_CAL_STATUS_CMDID);
    }
    return "Invalid WMI cmd";
@@ -31210,6 +31216,74 @@ typedef struct {
    A_UINT32 dpd_status;    /* DPD status obtained from HALPHY, refer to WMI_DPD_STATUS */
} wmi_pdev_get_dpd_status_evt_fixed_param;
typedef struct {
    A_UINT32 tlv_header;    /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_get_halphy_cal_status_cmd_fixed_param */
    A_UINT32 pdev_id;       /* PDEV ID set by the command */
} wmi_pdev_get_halphy_cal_status_cmd_fixed_param;
/* WMI_HALPHY_CAL_LIST:
 *
 * Below is the list of HALPHY online CAL currently enabled in
 * WIN chipsets
 */
typedef enum {
    WMI_HALPHY_CAL_ADC = 0,
    WMI_HALPHY_CAL_BWFILTER,
    WMI_HALPHY_CAL_PDET_AND_PAL,
    WMI_HALPHY_CAL_RXDCO,
    WMI_HALPHY_CAL_COMB_TXLO_TXIQ_RXIQ,
    WMI_HALPHY_CAL_IBF,
    WMI_HALPHY_CAL_PA_DROOP,
    WMI_HALPHY_CAL_DAC,
    WMI_HALPHY_CAL_ANI,
    WMI_HALPHY_CAL_NOISE_FLOOR,
    WMI_HALPHY_CAL_MAX_CAL_LIST
} WMI_HALPHY_CAL_LIST;
/* WMI_HALPHY_CAL_VALID_BITMAP_STATUS
 *
 * In WMI wmi_pdev_get_halphy_cal_status_evt_fixed_param
 * (halphy_cal_valid_bmap member), below enum list must be used
 * to get which calibration status indication is sent by FW to HOST.
 * Only if that particular bit it set, corresponding bit of the
 * halphy_cal_status variable will be valid.
 */
typedef enum {
    WMI_HALPHY_CAL_ADC_BMAP                 = (1 << WMI_HALPHY_CAL_ADC),
    WMI_HALPHY_CAL_BWFILTER_BMAP            = (1 << WMI_HALPHY_CAL_BWFILTER),
    WMI_HALPHY_CAL_PDET_AND_PAL_BMAP        = (1 << WMI_HALPHY_CAL_PDET_AND_PAL),
    WMI_HALPHY_CAL_RXDCO_BMAP               = (1 << WMI_HALPHY_CAL_RXDCO),
    WMI_HALPHY_CAL_COMB_TXLO_TXIQ_RXIQ_BMAP = (1 << WMI_HALPHY_CAL_COMB_TXLO_TXIQ_RXIQ),
    WMI_HALPHY_CAL_IBF_BMAP                 = (1 << WMI_HALPHY_CAL_IBF),
    WMI_HALPHY_CAL_PA_DROOP_BMAP            = (1 << WMI_HALPHY_CAL_PA_DROOP),
    WMI_HALPHY_CAL_DAC_BMAP                 = (1 << WMI_HALPHY_CAL_DAC),
    WMI_HALPHY_CAL_ANI_BMAP                 = (1 << WMI_HALPHY_CAL_ANI),
    WMI_HALPHY_CAL_NOISE_FLOOR_BMAP         = (1 << WMI_HALPHY_CAL_NOISE_FLOOR),
} WMI_HALPHY_CAL_VALID_BITMAP_STATUS;
typedef struct {
    A_UINT32 tlv_header;    /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_get_halphy_cal_status_evt_fixed_param  */
    A_UINT32 pdev_id;       /* PDEV Id set by the command */
    /*
     * Calibration valid bitmap from HALPHY, refer to
     * WMI_HALPHY_CAL_VALID_BITMAP_STATUS.
     * Only if this particular bit it set, corresponding bit of the
     * halphy_cal_status variable will be valid.
     */
    A_UINT32 halphy_cal_valid_bmap;
    /* Calibration result status bitmap from HALPHY.
     * The WMI_HALPHY_CAL_VALID_BITMAP_STATUS enum identifies which bit
     * in the bitmap corresponds to which cal type.
     * Each valid bit uses the following settings:
     *     1 - SUCCESS
     *     0 - FAILURE
    */
    A_UINT32 halphy_cal_status;
} wmi_pdev_get_halphy_cal_status_evt_fixed_param;
/* below structures are related to Motion Detection. */
typedef struct {
    /** TLV tag and len; tag equals
+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_ 1001
#define __WMI_REVISION_ 1002

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