diff options
| author | Rajesh Chauhan <rajeshc@qca.qualcomm.com> | 2013-11-27 10:02:19 -0800 |
|---|---|---|
| committer | Prakash Dhavali <pdhavali@qca.qualcomm.com> | 2013-12-03 14:39:39 -0800 |
| commit | d2f9f2939f3fe5bce5034e2c5eafa19924873601 (patch) | |
| tree | 92ec950c5c49c833652741ffc3c386463adee689 | |
| parent | a72aae5dae41fab8e67e0427b84129c969bc2095 (diff) | |
qcacld: update fw common interface files
Update fw common interface files per CL 787026
Change-Id: I695b4e142c10d46e18ff2fd5328253458c0dfd6e
CRs-Fixed: 582536
| -rw-r--r-- | CORE/SERVICES/COMMON/wmi_tlv_defs.h | 9 | ||||
| -rw-r--r-- | CORE/SERVICES/COMMON/wmi_unified.h | 27 |
2 files changed, 34 insertions, 2 deletions
diff --git a/CORE/SERVICES/COMMON/wmi_tlv_defs.h b/CORE/SERVICES/COMMON/wmi_tlv_defs.h index 0e93966abb49..ec155a9038d4 100644 --- a/CORE/SERVICES/COMMON/wmi_tlv_defs.h +++ b/CORE/SERVICES/COMMON/wmi_tlv_defs.h @@ -392,6 +392,7 @@ typedef enum { WMITLV_TAG_STRUC_wmi_hb_set_udp_pkt_filter_cmd_fixed_param, WMITLV_TAG_STRUC_wmi_hb_ind_event_fixed_param, WMITLV_TAG_STRUC_wmi_tx_pause_event_fixed_param, + WMITLV_TAG_STRUC_wmi_rfkill_event_fixed_param, } WMITLV_TAG_ID; /* @@ -575,7 +576,8 @@ typedef enum { OP(WMI_BA_RSP_SSN_EVENTID) \ OP(WMI_OFFLOAD_BCN_TX_STATUS_EVENTID) \ OP(WMI_P2P_NOA_EVENTID) \ - OP(WMI_TX_PAUSE_EVENTID) + OP(WMI_TX_PAUSE_EVENTID) \ + OP(WMI_RFKILL_STATE_CHANGE_EVENTID) /* TLV definitions of WMI commands */ @@ -1499,6 +1501,11 @@ WMITLV_CREATE_PARAM_STRUC(WMI_GPIO_INPUT_EVENTID); WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_csa_event_fixed_param, wmi_csa_event_fixed_param, fixed_param, WMITLV_SIZE_FIX) WMITLV_CREATE_PARAM_STRUC(WMI_CSA_HANDLING_EVENTID); +/* Rfkill state change Event */ +#define WMITLV_TABLE_WMI_RFKILL_STATE_CHANGE_EVENTID(id,op,buf,len)\ + WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_rfkill_event_fixed_param, wmi_rfkill_mode_param, fixed_param, WMITLV_SIZE_FIX) +WMITLV_CREATE_PARAM_STRUC(WMI_RFKILL_STATE_CHANGE_EVENTID); + /* Debug Message Event */ #define WMITLV_TABLE_WMI_DEBUG_MESG_EVENTID(id,op,buf,len)\ WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_BYTE, A_UINT8, bufp, WMITLV_SIZE_VAR) diff --git a/CORE/SERVICES/COMMON/wmi_unified.h b/CORE/SERVICES/COMMON/wmi_unified.h index df35dd884f17..7950efa76b6f 100644 --- a/CORE/SERVICES/COMMON/wmi_unified.h +++ b/CORE/SERVICES/COMMON/wmi_unified.h @@ -689,7 +689,6 @@ typedef enum { /* GPIO Event */ WMI_GPIO_INPUT_EVENTID=WMI_EVT_GRP_START_ID(WMI_GRP_GPIO), - /** upload H_CV info WMI event * to indicate uploaded H_CV info to host */ @@ -699,6 +698,9 @@ typedef enum { * to indicate captured H info to host */ WMI_CAPTUREH_EVENTID, + /* hw RFkill */ + WMI_RFKILL_STATE_CHANGE_EVENTID, + /* TDLS Event */ WMI_TDLS_PEER_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_TDLS), } WMI_EVT_ID; @@ -1983,6 +1985,8 @@ typedef enum { WMI_PDEV_PARAM_BURST_DUR, /** Set Bursting ENABLE */ WMI_PDEV_PARAM_BURST_ENABLE, + /** HW rfkill config */ + WMI_PDEV_PARAM_HW_RFKILL_CONFIG, } WMI_PDEV_PARAM; typedef enum { @@ -5715,6 +5719,27 @@ typedef struct { */ } wmi_p2p_noa_event_fixed_param; +#define WMI_RFKILL_CFG_RADIO_LEVEL_OFFSET 6 +#define WMI_RFKILL_CFG_RADIO_LEVEL_MASK 0x1 + +#define WMI_RFKILL_CFG_GPIO_PIN_NUM_OFFSET 0 +#define WMI_RFKILL_CFG_GPIO_PIN_NUM_MASK 0x3f + +#define WMI_RFKILL_CFG_PIN_AS_GPIO_OFFSET 7 +#define WMI_RFKILL_CFG_PIN_AS_GPIO_MASK 0xf + +typedef struct { + /** TLV tag and len; tag equals + * */ + A_UINT32 tlv_header; + /** gpip pin number */ + A_UINT32 gpio_pin_num; + /** gpio interupt type */ + A_UINT32 int_type; + /** RF radio status */ + A_UINT32 radio_state; +} wmi_rfkill_mode_param; + #ifdef __cplusplus } #endif |
