mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-19 19:34:35 +00:00
efi_loader: export a couple of protocol related functions
This is a preparatory patch. Those functions will be used in an implementation of UEFI firmware management protocol as part of my capsule update patch. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
This commit is contained in:
parent
b74d568d83
commit
b51ec63978
2 changed files with 22 additions and 8 deletions
|
@ -457,6 +457,20 @@ efi_status_t efi_remove_all_protocols(const efi_handle_t handle);
|
||||||
/* Install multiple protocol interfaces */
|
/* Install multiple protocol interfaces */
|
||||||
efi_status_t EFIAPI efi_install_multiple_protocol_interfaces
|
efi_status_t EFIAPI efi_install_multiple_protocol_interfaces
|
||||||
(efi_handle_t *handle, ...);
|
(efi_handle_t *handle, ...);
|
||||||
|
/* Get handles that support a given protocol */
|
||||||
|
efi_status_t EFIAPI efi_locate_handle_buffer(
|
||||||
|
enum efi_locate_search_type search_type,
|
||||||
|
const efi_guid_t *protocol, void *search_key,
|
||||||
|
efi_uintn_t *no_handles, efi_handle_t **buffer);
|
||||||
|
/* Close an previously opened protocol interface */
|
||||||
|
efi_status_t EFIAPI efi_close_protocol(efi_handle_t handle,
|
||||||
|
const efi_guid_t *protocol,
|
||||||
|
efi_handle_t agent_handle,
|
||||||
|
efi_handle_t controller_handle);
|
||||||
|
/* Open a protocol interface */
|
||||||
|
efi_status_t EFIAPI efi_handle_protocol(efi_handle_t handle,
|
||||||
|
const efi_guid_t *protocol,
|
||||||
|
void **protocol_interface);
|
||||||
/* Call this to create an event */
|
/* Call this to create an event */
|
||||||
efi_status_t efi_create_event(uint32_t type, efi_uintn_t notify_tpl,
|
efi_status_t efi_create_event(uint32_t type, efi_uintn_t notify_tpl,
|
||||||
void (EFIAPI *notify_function) (
|
void (EFIAPI *notify_function) (
|
||||||
|
|
|
@ -2106,7 +2106,7 @@ static efi_status_t EFIAPI efi_set_watchdog_timer(unsigned long timeout,
|
||||||
*
|
*
|
||||||
* Return: status code
|
* Return: status code
|
||||||
*/
|
*/
|
||||||
static efi_status_t EFIAPI efi_close_protocol(efi_handle_t handle,
|
efi_status_t EFIAPI efi_close_protocol(efi_handle_t handle,
|
||||||
const efi_guid_t *protocol,
|
const efi_guid_t *protocol,
|
||||||
efi_handle_t agent_handle,
|
efi_handle_t agent_handle,
|
||||||
efi_handle_t controller_handle)
|
efi_handle_t controller_handle)
|
||||||
|
@ -2282,7 +2282,7 @@ static efi_status_t EFIAPI efi_protocols_per_handle(
|
||||||
*
|
*
|
||||||
* Return: status code
|
* Return: status code
|
||||||
*/
|
*/
|
||||||
static efi_status_t EFIAPI efi_locate_handle_buffer(
|
efi_status_t EFIAPI efi_locate_handle_buffer(
|
||||||
enum efi_locate_search_type search_type,
|
enum efi_locate_search_type search_type,
|
||||||
const efi_guid_t *protocol, void *search_key,
|
const efi_guid_t *protocol, void *search_key,
|
||||||
efi_uintn_t *no_handles, efi_handle_t **buffer)
|
efi_uintn_t *no_handles, efi_handle_t **buffer)
|
||||||
|
@ -3182,7 +3182,7 @@ out:
|
||||||
*
|
*
|
||||||
* Return: status code
|
* Return: status code
|
||||||
*/
|
*/
|
||||||
static efi_status_t EFIAPI efi_handle_protocol(efi_handle_t handle,
|
efi_status_t EFIAPI efi_handle_protocol(efi_handle_t handle,
|
||||||
const efi_guid_t *protocol,
|
const efi_guid_t *protocol,
|
||||||
void **protocol_interface)
|
void **protocol_interface)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue