qcacmn: Register DBR & Diag events on new CE
Waikiki facilitates a dedicated CE (CE14) for direct DMA & diag handling purpose. Changes to register the respective service handler to process DBR and DIAG events from the target. CRs-Fixed: 3057986 Change-Id: I4ae1d5676ac702d1f28f3e4031b47ffcd1d2ad7e
This commit is contained in:

committed by
Madan Koyyalamudi

parent
b9b1b7f8ef
commit
926430802a
@@ -453,7 +453,8 @@ QDF_STATUS
|
||||
wmi_unified_connect_htc_service(struct wmi_unified *wmi_handle,
|
||||
HTC_HANDLE htc_handle);
|
||||
|
||||
#ifdef WLAN_FEATURE_WMI_DIAG_OVER_CE7
|
||||
#if defined(WLAN_FEATURE_WMI_DIAG_OVER_CE7) || \
|
||||
defined(WLAN_DIAG_AND_DBR_OVER_SEPARATE_CE)
|
||||
/**
|
||||
* wmi_diag_connect_pdev_htc_service()
|
||||
* WMI DIAG API to get connect to HTC service
|
||||
|
@@ -2891,7 +2891,8 @@ struct wmi_soc {
|
||||
uint16_t max_msg_len[WMI_MAX_RADIOS];
|
||||
struct wmi_ops *ops;
|
||||
const uint32_t *svc_ids;
|
||||
#ifdef WLAN_FEATURE_WMI_DIAG_OVER_CE7
|
||||
#if defined(WLAN_FEATURE_WMI_DIAG_OVER_CE7) || \
|
||||
defined(WLAN_DIAG_AND_DBR_OVER_SEPARATE_CE)
|
||||
HTC_ENDPOINT_ID wmi_diag_endpoint_id;
|
||||
#endif
|
||||
uint32_t wmi_events[wmi_events_max];
|
||||
|
@@ -2612,7 +2612,8 @@ static void wmi_control_rx(void *ctx, HTC_PACKET *htc_packet)
|
||||
wmi_process_control_rx(wmi_handle, evt_buf);
|
||||
}
|
||||
|
||||
#ifdef WLAN_FEATURE_WMI_DIAG_OVER_CE7
|
||||
#if defined(WLAN_FEATURE_WMI_DIAG_OVER_CE7) || \
|
||||
defined(WLAN_DIAG_AND_DBR_OVER_SEPARATE_CE)
|
||||
/**
|
||||
* wmi_control_diag_rx() - process diag fw events callbacks
|
||||
* @ctx: handle to wmi
|
||||
@@ -2628,7 +2629,8 @@ static void wmi_control_diag_rx(void *ctx, HTC_PACKET *htc_packet)
|
||||
|
||||
evt_buf = (wmi_buf_t)htc_packet->pPktContext;
|
||||
|
||||
wmi_handle = soc->wmi_pdev[0];
|
||||
wmi_handle = wmi_get_pdev_ep(soc, htc_packet->Endpoint);
|
||||
|
||||
if (!wmi_handle) {
|
||||
wmi_err("unable to get wmi_handle for diag event end point id:%d", htc_packet->Endpoint);
|
||||
qdf_nbuf_free(evt_buf);
|
||||
@@ -3542,7 +3544,8 @@ wmi_unified_connect_htc_service(struct wmi_unified *wmi_handle,
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
#ifdef WLAN_FEATURE_WMI_DIAG_OVER_CE7
|
||||
#if defined(WLAN_FEATURE_WMI_DIAG_OVER_CE7) || \
|
||||
defined(WLAN_DIAG_AND_DBR_OVER_SEPARATE_CE)
|
||||
QDF_STATUS wmi_diag_connect_pdev_htc_service(struct wmi_unified *wmi_handle,
|
||||
HTC_HANDLE htc_handle)
|
||||
{
|
||||
|
Reference in New Issue
Block a user