mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 08:59:33 +00:00
efi_loader: define GUIDS for event groups
Event groups are used to signal multiple events at the same time. They are identified by GUIDs. This patch provided the predefined GUIDs of UEFI specification 2.7. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
43bce44262
commit
a3a28f5f0c
3 changed files with 47 additions and 0 deletions
|
@ -243,6 +243,27 @@ struct efi_runtime_services {
|
||||||
u64 maximum_variable_size);
|
u64 maximum_variable_size);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* EFI event group GUID definitions */
|
||||||
|
#define EFI_EVENT_GROUP_EXIT_BOOT_SERVICES \
|
||||||
|
EFI_GUID(0x27abf055, 0xb1b8, 0x4c26, 0x80, 0x48, \
|
||||||
|
0x74, 0x8f, 0x37, 0xba, 0xa2, 0xdf)
|
||||||
|
|
||||||
|
#define EFI_EVENT_GROUP_VIRTUAL_ADDRESS_CHANGE \
|
||||||
|
EFI_GUID(0x13fa7698, 0xc831, 0x49c7, 0x87, 0xea, \
|
||||||
|
0x8f, 0x43, 0xfc, 0xc2, 0x51, 0x96)
|
||||||
|
|
||||||
|
#define EFI_EVENT_GROUP_MEMORY_MAP_CHANGE \
|
||||||
|
EFI_GUID(0x78bee926, 0x692f, 0x48fd, 0x9e, 0xdb, \
|
||||||
|
0x01, 0x42, 0x2e, 0xf0, 0xd7, 0xab)
|
||||||
|
|
||||||
|
#define EFI_EVENT_GROUP_READY_TO_BOOT \
|
||||||
|
EFI_GUID(0x7ce88fb3, 0x4bd7, 0x4679, 0x87, 0xa8, \
|
||||||
|
0xa8, 0xd8, 0xde, 0xe5, 0x0d, 0x2b)
|
||||||
|
|
||||||
|
#define EFI_EVENT_GROUP_RESET_SYSTEM \
|
||||||
|
EFI_GUID(0x62da6a56, 0x13fb, 0x485a, 0xa8, 0xda, \
|
||||||
|
0xa3, 0xdd, 0x79, 0x12, 0xcb, 0x6b)
|
||||||
|
|
||||||
/* EFI Configuration Table and GUID definitions */
|
/* EFI Configuration Table and GUID definitions */
|
||||||
#define NULL_GUID \
|
#define NULL_GUID \
|
||||||
EFI_GUID(0x00000000, 0x0000, 0x0000, 0x00, 0x00, \
|
EFI_GUID(0x00000000, 0x0000, 0x0000, 0x00, 0x00, \
|
||||||
|
|
|
@ -96,6 +96,16 @@ extern const efi_guid_t efi_guid_console_control;
|
||||||
extern const efi_guid_t efi_guid_device_path;
|
extern const efi_guid_t efi_guid_device_path;
|
||||||
/* GUID of the EFI_DRIVER_BINDING_PROTOCOL */
|
/* GUID of the EFI_DRIVER_BINDING_PROTOCOL */
|
||||||
extern const efi_guid_t efi_guid_driver_binding_protocol;
|
extern const efi_guid_t efi_guid_driver_binding_protocol;
|
||||||
|
/* event group ExitBootServices() invoked */
|
||||||
|
extern const efi_guid_t efi_guid_event_group_exit_boot_services;
|
||||||
|
/* event group SetVirtualAddressMap() invoked */
|
||||||
|
extern const efi_guid_t efi_guid_event_group_virtual_address_change;
|
||||||
|
/* event group memory map changed */
|
||||||
|
extern const efi_guid_t efi_guid_event_group_memory_map_change;
|
||||||
|
/* event group boot manager about to boot */
|
||||||
|
extern const efi_guid_t efi_guid_event_group_ready_to_boot;
|
||||||
|
/* event group ResetSystem() invoked (before ExitBootServices) */
|
||||||
|
extern const efi_guid_t efi_guid_event_group_reset_system;
|
||||||
/* GUID of the device tree table */
|
/* GUID of the device tree table */
|
||||||
extern const efi_guid_t efi_guid_fdt;
|
extern const efi_guid_t efi_guid_fdt;
|
||||||
extern const efi_guid_t efi_guid_loaded_image;
|
extern const efi_guid_t efi_guid_loaded_image;
|
||||||
|
|
|
@ -65,6 +65,22 @@ const efi_guid_t efi_guid_fdt = EFI_FDT_GUID;
|
||||||
const efi_guid_t efi_guid_driver_binding_protocol =
|
const efi_guid_t efi_guid_driver_binding_protocol =
|
||||||
EFI_DRIVER_BINDING_PROTOCOL_GUID;
|
EFI_DRIVER_BINDING_PROTOCOL_GUID;
|
||||||
|
|
||||||
|
/* event group ExitBootServices() invoked */
|
||||||
|
const efi_guid_t efi_guid_event_group_exit_boot_services =
|
||||||
|
EFI_EVENT_GROUP_EXIT_BOOT_SERVICES;
|
||||||
|
/* event group SetVirtualAddressMap() invoked */
|
||||||
|
const efi_guid_t efi_guid_event_group_virtual_address_change =
|
||||||
|
EFI_EVENT_GROUP_VIRTUAL_ADDRESS_CHANGE;
|
||||||
|
/* event group memory map changed */
|
||||||
|
const efi_guid_t efi_guid_event_group_memory_map_change =
|
||||||
|
EFI_EVENT_GROUP_MEMORY_MAP_CHANGE;
|
||||||
|
/* event group boot manager about to boot */
|
||||||
|
const efi_guid_t efi_guid_event_group_ready_to_boot =
|
||||||
|
EFI_EVENT_GROUP_READY_TO_BOOT;
|
||||||
|
/* event group ResetSystem() invoked (before ExitBootServices) */
|
||||||
|
const efi_guid_t efi_guid_event_group_reset_system =
|
||||||
|
EFI_EVENT_GROUP_RESET_SYSTEM;
|
||||||
|
|
||||||
static efi_status_t EFIAPI efi_disconnect_controller(
|
static efi_status_t EFIAPI efi_disconnect_controller(
|
||||||
efi_handle_t controller_handle,
|
efi_handle_t controller_handle,
|
||||||
efi_handle_t driver_image_handle,
|
efi_handle_t driver_image_handle,
|
||||||
|
|
Loading…
Reference in a new issue