This function is used to start CRAM scan from user application. Primarily this function sends an IPI request to PLM to invoke SEM CRAM StartScan, waits for PLM to process the request and reads the response message. In case of EL1 Non-Secure mode, this function generates an SMC call to TF-A. The SMC request goes to the PLM through the TF-A. This function reads the response of the SMC call and returns the status.
Prototype
XStatus XSem_CmdCfrStartScan(XIpiPsu *IpiInst, XSemIpiResp *Resp);
Parameters
The following table lists the XSem_CmdCfrStartScan function arguments.
| Type | Member | Description |
|---|---|---|
| XIpiPsu * | IpiInst | Pointer to IPI driver instance |
XSemIpiResp
* |
Resp |
Structure Pointer of IPI response
|
Returns
This API returns the success or failure.- XST_FAILURE: On CRAM start scan failure
- XST_SUCCESS: On CRAM start scan success