summaryrefslogtreecommitdiff
path: root/include/efi_loader.h
diff options
context:
space:
mode:
author[email protected] <[email protected]>2017-07-18 20:17:21 +0200
committerAlexander Graf <[email protected]>2017-07-19 14:31:40 +0200
commitbfc724625f73f80321945fee306d0c4dc3015898 (patch)
tree39e5b3cfc3b5727779039622b2dbe32896b9aca5 /include/efi_loader.h
parent49deb455e6e650124c4e6ab1006f5450d2282be8 (diff)
efi_loader: refactor efi_set_timer
efi_set_timer is refactored to make the function callable internally. Wrapper function efi_set_timer_ext is provided for EFI applications. Signed-off-by: Heinrich Schuchardt <[email protected]> Signed-off-by: Alexander Graf <[email protected]>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r--include/efi_loader.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index c3640153e13..342e960d145 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -122,6 +122,9 @@ efi_status_t efi_create_event(enum efi_event_type type, UINTN notify_tpl,
struct efi_event *event,
void *context),
void *notify_context, struct efi_event **event);
+/* Call this to set a timer */
+efi_status_t efi_set_timer(struct efi_event *event, int type,
+ uint64_t trigger_time);
/* Generic EFI memory allocator, call this to get memory */
void *efi_alloc(uint64_t len, int memory_type);