My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
task_control.h File Reference
#include <sw_types.h>

Go to the source code of this file.

Functions

int process_service (u32 svc_id, u32 svc_cmd_id, void *req_buf, u32 req_buf_len, void *resp_buf, u32 res_buf_len, struct otzc_encode_meta *meta_data, u32 *ret_res_buf_len)
 Process service. More...
 
int process_otzapi (int session_id, sw_tls *tls)
 Process API. More...
 

Function Documentation

int process_otzapi ( int  session_id,
sw_tls tls 
)

Process API.

This function process the API and also verify the validity of session identifer

Parameters
session_idSession identifer for the API
tlsPointer to task local storage
Returns
SMC return codes: SMC_SUCCESS: API processed successfully.
SMC_*: An implementation-defined error code for any other error.
int process_service ( u32  svc_id,
u32  svc_cmd_id,
void *  req_buf,
u32  req_buf_len,
void *  resp_buf,
u32  res_buf_len,
struct otzc_encode_meta meta_data,
u32 *  ret_res_buf_len 
)

Process service.

This function calls the apporpriate service handlers

Parameters
svc_idService identifer used to identify the service
svc_cmd_idCommand identifier of the service
req_bufVirtual address of the request buffer
req_buf_lenRequest buffer length
resp_bufVirtual address of the response buffer
res_buf_lenResponse buffer length
meta_dataVirtual address of the meta data of the encoded data
ret_res_buf_lenReturn length of the response buffer
Returns
SMC return codes: SMC_SUCCESS: API processed successfully.
SMC_*: An implementation-defined error code for any other error.