fsl_shw_return_t fsl_shw_sfree(fsl_shw_uco_t * user_ctx, void *address) { (void)user_ctx; #ifdef FSL_HAVE_SCC2 if (scc_release_partition(address) == SCC_RET_OK) { return FSL_RETURN_OK_S; } #endif return FSL_RETURN_ERROR_S; }
static int scc2_test_release_part(unsigned long scc_data) { scc_partition_access acc; int status; status = copy_from_user(&acc, (void*)scc_data, sizeof(acc)); if (status == 0) { acc.scc_status = scc_release_partition((void*)acc.virt_address); status = copy_to_user((void*)scc_data, &acc, sizeof(acc)); } return status; }