|
int32_t | Sciclient_boardCfg (const Sciclient_BoardCfgPrms_t *pInPrms) |
| API to send the board configuration messsage to the firmware . Valid(not NULL) pointer to Sciclient_BoardCfgPrms_t will use the provided values for tisci_msg_board_config_req, otherwise default values are used . More...
|
|
uint32_t | Sciclient_getCurrentContext (uint16_t messageType) |
| API to identify which mode the CPU is operating in. This utility function would read CPU related registers to know which mode (secure or non secure) the CPU is in and then would determine the context to be used. If more than one context is required for a a given code, users of SCICLENT would need to modify this function and recompile. More...
|
|
uint32_t | Sciclient_threadStatusReg (uint32_t thread) |
| Gives the address for status register for a particular thread. More...
|
|
uint32_t | Sciclient_readThread32 (uint32_t thread, uint8_t idx) |
| Read a 32 bit word from the thread. More...
|
|
uint32_t | Sciclient_readThreadCount (uint32_t thread) |
| Read the current thread count. More...
|
|
int32_t | Sciclient_verifyThread (uint32_t thread) |
| Validate thread has no errors and has space to accept the next message. More...
|
|
int32_t | Sciclient_waitThread (uint32_t thread, uint32_t timeout) |
| Check if there are credits to write to the thread. More...
|
|
void | Sciclient_sendMessage (uint32_t thread, const uint8_t *pSecHeader, const uint8_t secHeaderSizeWords, const uint8_t *pHeader, const uint8_t *pPayload, uint32_t payloadSize, const uint32_t maxMsgSizeBytes) |
| API to send the message to the thread. More...
|
|
int32_t | Sciclient_contextIdFromIntrNum (uint32_t intrNum) |
| This utility function would find the proxy map context id for 'gSciclientMap' corresponding to a particular interrupt number. More...
|
|
void | Sciclient_flush (uint32_t thread, uint32_t maxMsgSizeBytes) |
| API to flush/remove all outstanding messages on a thread . More...
|
|
int32_t | Sciclient_serviceSecureProxy (const Sciclient_ReqPrm_t *pReqPrm, Sciclient_RespPrm_t *pRespPrm) |
| This API allows communicating with the System firmware which can be called to perform various functions in the system. Core sciclient function for transmitting payload and recieving the response. The caller is expected to allocate memory for the input request parameter (Refer Sciclient_ReqPrm_t). This involves setting the message type being communicated to the firmware, the response flags, populate the payload of the message based on the inputs in the files sciclient_fmwPmMessages.h,sciclient_fmwRmMessages.h, sciclient_fmwSecMessages.h and sciclient_fmwCommonMessages.h. Since the payload in considered a stream of bytes in this API, the caller should also populate the size of this stream in reqPayloadSize. The timeout is used to determine for what amount of iterations the API would wait for their operation to complete. More...
|
|
int32_t | Sciclient_serviceGetThreadIds (const Sciclient_ReqPrm_t *pReqPrm, uint32_t *contextId, uint32_t *txThread, uint32_t *rxThread) |
| Sciclient_serviceGetThreadIds Gets the threads used for message. More...
|
|
int32_t | Sciclient_servicePrepareHeader (const Sciclient_ReqPrm_t *pReqPrm, uint8_t *localSeqId, uint32_t contextId, struct tisci_header **header) |
| Sciclient_servicePrepareHeader Prepares the Message Header. More...
|
|
int32_t | Sciclient_ProcessRmMessage (void *tx_msg) |
|
int32_t | Sciclient_ProcessPmMessage (const uint32_t reqFlags, void *tx_msg) |
|
This API allows communicating with the System firmware which can be called to perform various functions in the system. Core sciclient function for transmitting payload and recieving the response. The caller is expected to allocate memory for the input request parameter (Refer Sciclient_ReqPrm_t). This involves setting the message type being communicated to the firmware, the response flags, populate the payload of the message based on the inputs in the files sciclient_fmwPmMessages.h,sciclient_fmwRmMessages.h, sciclient_fmwSecMessages.h and sciclient_fmwCommonMessages.h. Since the payload in considered a stream of bytes in this API, the caller should also populate the size of this stream in reqPayloadSize. The timeout is used to determine for what amount of iterations the API would wait for their operation to complete.
To make sure the response is captured correctly the caller should also allocate the space for Sciclient_RespPrm_t parameters. The caller should populate the pointer to the pRespPayload and the size respPayloadSize. The API would populate the response flags to indicate any firmware specific errors and also populate the memory pointed by pRespPayload till the size given in respPayloadSize.
Requirement: DOX_REQ_TAG(PDK-2142), DOX_REQ_TAG(PDK-2141), DOX_REQ_TAG(PDK-2140), DOX_REQ_TAG(PDK-2139)
- Parameters
-
- Returns
- CSL_PASS on success, else failure