plat/st/stm32mp1/bl2_io_storage.c
/*
 * Return an IO device handle and specification which can be used to access
 * an image. Use this to enforce platform load policy.
 */
Return an IO device handle and specification which can be used to access
an image. Use this to enforce platform load policy.
Return an IO device handle and specification which can be used to access an image . Use this to enforce platform load policy .
int plat_get_image_source(unsigned int image_id, uintptr_t *dev_handle,
			  uintptr_t *image_spec)
{
	int rc;
	const struct plat_io_policy *policy;
	assert(image_id < ARRAY_SIZE(policies));
	policy = &policies[image_id];
	rc = policy->check(policy->image_spec);
	if (rc == 0) {
		*image_spec = policy->image_spec;
		*dev_handle = *(policy->dev_handle);
	}
	return rc;
}
int plat_get_image_source ( unsigned int image_id , uintptr_t * dev_handle , uintptr_t * image_spec ) { int rc ; const struct plat_io_policy * policy ; assert ( image_id < ARRAY_SIZE ( policies ) ) ; policy = & policies [ image_id ] ; rc = policy -> check ( policy -> image_spec ) ; if ( rc == 0 ) { * image_spec = policy -> image_spec ; * dev_handle = * ( policy -> dev_handle ) ; } return rc ; }
Return an IO device handle and specification which can be used to access
 an image.
Return an IO device handle and specification which can be used to access an image .