mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-30 08:07:59 +00:00
efi_loader: boottime: export efi_[un]load_image()
Those two functions will be used later to re-implement do_bootefi_exec(). Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
bc8fc32855
commit
d7e0b0109e
2 changed files with 16 additions and 7 deletions
|
@ -317,10 +317,19 @@ efi_status_t efi_create_handle(efi_handle_t *handle);
|
||||||
void efi_delete_handle(efi_handle_t obj);
|
void efi_delete_handle(efi_handle_t obj);
|
||||||
/* Call this to validate a handle and find the EFI object for it */
|
/* Call this to validate a handle and find the EFI object for it */
|
||||||
struct efi_object *efi_search_obj(const efi_handle_t handle);
|
struct efi_object *efi_search_obj(const efi_handle_t handle);
|
||||||
|
/* Load image */
|
||||||
|
efi_status_t EFIAPI efi_load_image(bool boot_policy,
|
||||||
|
efi_handle_t parent_image,
|
||||||
|
struct efi_device_path *file_path,
|
||||||
|
void *source_buffer,
|
||||||
|
efi_uintn_t source_size,
|
||||||
|
efi_handle_t *image_handle);
|
||||||
/* Start image */
|
/* Start image */
|
||||||
efi_status_t EFIAPI efi_start_image(efi_handle_t image_handle,
|
efi_status_t EFIAPI efi_start_image(efi_handle_t image_handle,
|
||||||
efi_uintn_t *exit_data_size,
|
efi_uintn_t *exit_data_size,
|
||||||
u16 **exit_data);
|
u16 **exit_data);
|
||||||
|
/* Unload image */
|
||||||
|
efi_status_t EFIAPI efi_unload_image(efi_handle_t image_handle);
|
||||||
/* Find a protocol on a handle */
|
/* Find a protocol on a handle */
|
||||||
efi_status_t efi_search_protocol(const efi_handle_t handle,
|
efi_status_t efi_search_protocol(const efi_handle_t handle,
|
||||||
const efi_guid_t *protocol_guid,
|
const efi_guid_t *protocol_guid,
|
||||||
|
|
|
@ -1687,12 +1687,12 @@ error:
|
||||||
*
|
*
|
||||||
* Return: status code
|
* Return: status code
|
||||||
*/
|
*/
|
||||||
static efi_status_t EFIAPI efi_load_image(bool boot_policy,
|
efi_status_t EFIAPI efi_load_image(bool boot_policy,
|
||||||
efi_handle_t parent_image,
|
efi_handle_t parent_image,
|
||||||
struct efi_device_path *file_path,
|
struct efi_device_path *file_path,
|
||||||
void *source_buffer,
|
void *source_buffer,
|
||||||
efi_uintn_t source_size,
|
efi_uintn_t source_size,
|
||||||
efi_handle_t *image_handle)
|
efi_handle_t *image_handle)
|
||||||
{
|
{
|
||||||
struct efi_device_path *dp, *fp;
|
struct efi_device_path *dp, *fp;
|
||||||
struct efi_loaded_image *info = NULL;
|
struct efi_loaded_image *info = NULL;
|
||||||
|
@ -1763,7 +1763,7 @@ error:
|
||||||
*
|
*
|
||||||
* Return: status code
|
* Return: status code
|
||||||
*/
|
*/
|
||||||
static efi_status_t EFIAPI efi_unload_image(efi_handle_t image_handle)
|
efi_status_t EFIAPI efi_unload_image(efi_handle_t image_handle)
|
||||||
{
|
{
|
||||||
struct efi_object *efiobj;
|
struct efi_object *efiobj;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue