This function is used to inject SHA error in NPI descriptor list (in the first NPI descriptor) from user application on targeted SLR . Primarily this function sends an IPI request to PLM to invoke SEM NPI ErrorInject, waits for PLM to process the request and reads the response message of the given SLR.
Note: The caller shall invoke this XSem_CmdNpiInjectError function again to correct the injected error in NPI descriptor.
Prototype
XStatus XSem_Ssit_CmdNpiInjectError(XIpiPsu *IpiInst, XSemIpiResp *Resp, u32 TargetSlr);
Parameters
The following table lists the XSem_Ssit_CmdNpiInjectError
function arguments.
Type | Member | Description |
---|---|---|
XIpiPsu * | IpiInst | Pointer to IPI driver instance |
XSemIpiResp
* |
Resp |
Structure Pointer of IPI response
|
u32 | TargetSlr |
Target SLR index on which command is to be executed
|
Returns
This API returns the success or failure.- XST_FAILURE: On NPI error injection failure
- XST_SUCCESS: On NPI error injection success