1
0

qcacmn: Add HTC APIs to schedule/cancel custom callbacks

Add HTC layer APIs to schedule/cancel custom callbacks.

CRs-Fixed: 3408693
Change-Id: I1316685707b7abc6c8d86ec4d237dc920f9f78eb
Este cometimento está contido em:
Edayilliam Jayadev
2023-02-16 17:48:15 +05:30
cometido por Madan Koyyalamudi
ascendente 63c5956a01
cometimento 10fe6982eb
2 ficheiros modificados com 268 adições e 0 eliminações

Ver ficheiro

@@ -531,6 +531,106 @@ void htc_ce_tasklet_debug_dump(HTC_HANDLE htc_handle);
*/
QDF_STATUS htc_send_pkt(HTC_HANDLE HTCHandle, HTC_PACKET *pPacket);
#ifdef CUSTOM_CB_SCHEDULER_SUPPORT
/**
* htc_register_custom_cb() - Helper API to register the custom callback
* @htc_handle: HTC handle
* @endpoint_id: Endpoint ID
* @custom_cb: Custom call back function pointer
* @custom_cb_context: Custom callback context
*
* return: QDF_STATUS
*/
QDF_STATUS
htc_register_custom_cb(HTC_HANDLE htc_handle, HTC_ENDPOINT_ID endpoint_id,
void (*custom_cb)(void *), void *custom_cb_context);
/**
* htc_unregister_custom_cb() - Helper API to unregister the custom callback
* @htc_handle: HTC handle
* @endpoint_id: Endpoint ID
*
* return: QDF_STATUS
*/
QDF_STATUS
htc_unregister_custom_cb(HTC_HANDLE htc_handle, HTC_ENDPOINT_ID endpoint_id);
/**
* htc_enable_custom_cb() - Helper API to enable the custom callback
* @htc_handle: HTC handle
* @endpoint_id: Endpoint ID
*
* return: QDF_STATUS
*/
QDF_STATUS
htc_enable_custom_cb(HTC_HANDLE htc_handle, HTC_ENDPOINT_ID endpoint_id);
/**
* htc_disable_custom_cb() - Helper API to disable the custom callback
* @htc_handle: HTC handle
* @endpoint_id: Endpoint ID
*
* return: QDF_STATUS
*/
QDF_STATUS
htc_disable_custom_cb(HTC_HANDLE htc_handle, HTC_ENDPOINT_ID endpoint_id);
#else
/**
* htc_register_custom_cb() - Helper API to register the custom callback
* @htc_handle: HTC handle
* @endpoint_id: Endpoint ID
* @custom_cb: Custom call back function pointer
* @custom_cb_context: Custom callback context
*
* return: QDF_STATUS
*/
static inline QDF_STATUS
htc_register_custom_cb(HTC_HANDLE htc_handle, HTC_ENDPOINT_ID endpoint_id,
void (*custom_cb)(void *), void *custom_cb_context)
{
return QDF_STATUS_SUCCESS;
}
/**
* htc_unregister_custom_cb() - Helper API to unregister the custom callback
* @htc_handle: HTC handle
* @endpoint_id: Endpoint ID
*
* return: QDF_STATUS
*/
static inline QDF_STATUS
htc_unregister_custom_cb(HTC_HANDLE htc_handle, HTC_ENDPOINT_ID endpoint_id)
{
return QDF_STATUS_SUCCESS;
}
/**
* htc_enable_custom_cb() - Helper API to enable the custom callback
* @htc_handle: HTC handle
* @endpoint_id: Endpoint ID
*
* return: QDF_STATUS
*/
static inline QDF_STATUS
htc_enable_custom_cb(HTC_HANDLE htc_handle, HTC_ENDPOINT_ID endpoint_id)
{
return QDF_STATUS_SUCCESS;
}
/**
* htc_disable_custom_cb() - Helper API to disable the custom callback
* @htc_handle: HTC handle
* @endpoint_id: Endpoint ID
*
* return: QDF_STATUS
*/
static inline QDF_STATUS
htc_disable_custom_cb(HTC_HANDLE htc_handle, HTC_ENDPOINT_ID endpoint_id)
{
return QDF_STATUS_SUCCESS;
}
#endif /* CUSTOM_CB_SCHEDULER_SUPPORT */
#ifdef ATH_11AC_TXCOMPACT
/**
* htc_send_data_pkt() - Send an HTC packet containing a tx descriptor and data