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

fsl_shw_return_t fsl_shw_diminish_perms ( fsl_shw_uco_t user_ctx,
void *  address,
uint32_t  permissions 

Diminish the permissions of a block of secure memory. Note that permissions can only be revoked.

user_ctx User context
address Base address of the secure memory to work with
permissions Permissions to initialize the partition with. Can be made by ORing flags from the fsl_shw_permission_t.
A return code of type fsl_shw_return_t.

Definition at line 2149 of file shw_driver.c.

References FSL_RETURN_ERROR_S, FSL_RETURN_OK_S, scc_diminish_permissions(), and SCC_RET_OK.


      (void)user_ctx;         /* unused parameter warning */

#ifdef FSL_HAVE_SCC2
      if (scc_diminish_permissions(address, permissions) == SCC_RET_OK) {
            return FSL_RETURN_OK_S;
      return FSL_RETURN_ERROR_S;

Generated by  Doxygen 1.6.0   Back to index