synx: Propagating changes from msm-5.10

Includes param change for async_wait(timeout) and other fixes

Change-Id: If8ff795538bbfaf53ee1758561fbd2841e5a71c7
Signed-off-by: Pravin Kumar Ravi <quic_pravinku@quicinc.com>
This commit is contained in:
Pravin Kumar Ravi
2023-02-17 15:30:20 -08:00
committed by Gerrit - the friendly Code Review server
parent a1529349b1
commit 33788f7297
5 changed files with 122 additions and 8 deletions

View File

@@ -12,6 +12,8 @@
#include "synx_err.h"
#define SYNX_NO_TIMEOUT ((u64)-1)
/**
* enum synx_create_flags - Flags passed during synx_create call
*
@@ -87,7 +89,7 @@ typedef void (*synx_callback)(s32 sync_obj, int status, void *data);
* synx_user_callback - Callback function registered by clients
*
* User callback registered for non-blocking wait. Dispatched when
* synx object is signaled.
* synx object is signaled or timeout has expired.
*/
typedef void (*synx_user_callback_t)(u32 h_synx, int status, void *data);
@@ -330,12 +332,14 @@ struct synx_import_params {
* @cb_func : Pointer to callback func to be invoked
* @userdata : Opaque pointer passed back with callback
* @cancel_cb_func : Pointer to callback to ack cancellation (optional)
* @timeout_ms : Timeout in ms. SYNX_NO_TIMEOUT if no timeout.
*/
struct synx_callback_params {
u32 h_synx;
synx_user_callback_t cb_func;
void *userdata;
synx_user_callback_t cancel_cb_func;
u64 timeout_ms;
};
/* Kernel APIs */