diff options
author | xypron.glpk@gmx.de <xypron.glpk@gmx.de> | 2017-07-18 18:17:18 (GMT) |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2017-07-19 12:26:09 (GMT) |
commit | c68415922b340c6b26f94326a6899977a67d61c9 (patch) | |
tree | e0b7f1a96651dd042dacc787bd7c6d28154cbfb7 /include/efi_loader.h | |
parent | 2fd945fe7287a15a29051242c9d021647a6f52dc (diff) | |
download | u-boot-fsl-qoriq-c68415922b340c6b26f94326a6899977a67d61c9.tar.xz |
efi_loader: implement multiple event support
Up to now the boot time supported only a single event.
This patch now allows four events.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r-- | include/efi_loader.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h index d7847d2..3d18bfb 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -63,6 +63,30 @@ struct efi_object { void *handle; }; +/** + * struct efi_event + * + * @type: Type of event, see efi_create_event + * @notify_tpl: Task priority level of notifications + * @trigger_time: Period of the timer + * @trigger_next: Next time to trigger the timer + * @nofify_function: Function to call when the event is triggered + * @notify_context: Data to be passed to the notify function + * @trigger_type: Type of timer, see efi_set_timer + * @signaled: The notify function was already called + */ +struct efi_event { + u32 type; + unsigned long notify_tpl; + void (EFIAPI *notify_function)(struct efi_event *event, void *context); + void *notify_context; + u64 trigger_next; + u64 trigger_time; + enum efi_event_type trigger_type; + int signaled; +}; + + /* This list contains all UEFI objects we know of */ extern struct list_head efi_obj_list; |