qcacmn: Add new WMI API
Add new API to allow components to move to common eventid space. Change-Id: Ieab2019a0fb96817833266236073cffb3aaeab2c CRs-Fixed: 2023157
This commit is contained in:

committed by
Sandeep Puligilla

parent
3f301caba1
commit
49a8481745
@@ -73,11 +73,6 @@ typedef qdf_nbuf_t wmi_buf_t;
|
||||
#define WMI_LOGA(args ...)
|
||||
#endif
|
||||
|
||||
/* wrapper to keep WMI agnostic of event handler execution context */
|
||||
#define wmi_unified_register_event(wmi_handle, event_id, handler_func) \
|
||||
wmi_unified_register_event_handler(wmi_handle, \
|
||||
event_id, handler_func, WMI_RX_UMAC_CTX)
|
||||
|
||||
struct wmi_soc;
|
||||
/**
|
||||
* struct wmi_ops - service callbacks to upper layer
|
||||
@@ -192,6 +187,21 @@ QDF_STATUS
|
||||
wmi_unified_cmd_send(wmi_unified_t wmi_handle, wmi_buf_t buf, uint32_t buflen,
|
||||
uint32_t cmd_id);
|
||||
|
||||
/**
|
||||
* wmi_unified_register_event() - WMI event handler
|
||||
* registration function for converged components
|
||||
*
|
||||
* @wmi_handle: handle to WMI.
|
||||
* @event_id: WMI event ID
|
||||
* @handler_func: Event handler call back function
|
||||
*
|
||||
* @return 0 on success and -ve on failure.
|
||||
*/
|
||||
int
|
||||
wmi_unified_register_event(wmi_unified_t wmi_handle,
|
||||
uint32_t event_id,
|
||||
wmi_unified_event_handler handler_func);
|
||||
|
||||
/**
|
||||
* wmi_unified_register_event_handler() - WMI event handler
|
||||
* registration function
|
||||
|
Reference in New Issue
Block a user