Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

scc_return_t scc_zeroize_memories ( void   ) 

Zeroize Red and Black memories of the SCC. This will start the Zeroizing process. The routine will return when the memories have zeroized or failed to do so. The driver will poll waiting for this to occur, so this routine must not be called from interrupt level. Some future version of driver may elect instead to sleep.

Returns:
0 or error if initialization fails.

Definition at line 766 of file scc2_driver.c.

References scc_availability, scc_crypto_lock, scc_init(), SCC_READ_REGISTER, SCC_RET_FAIL, SCC_RET_OK, SCC_STATUS_INITIAL, SCC_STATUS_OK, scc_wait_completion(), SCC_WRITE_REGISTER, SCM_ERR_ZEROIZE_FAILED, SCM_ERROR_STATUS, SCM_INTERRUPT_CTRL, SCM_INTERRUPT_CTRL_CLEAR_INTERRUPT, SCM_INTERRUPT_CTRL_MASK_INTERRUPTS, and SCM_INTERRUPT_CTRL_ZEROIZE_MEMORY.

{
      scc_return_t return_status = SCC_RET_FAIL;

      return return_status;
}                       /* scc_zeroize_memories */


Generated by  Doxygen 1.6.0   Back to index