diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2017-03-03 13:33:58 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-09 07:36:15 +0100 |
commit | 566f5634c5c2b3028d1cdd02ab53db9883711df0 (patch) | |
tree | 5c77f23538e40d465ec3b7643591ce79a9051d76 /include/efi.h | |
parent | d633b8a7c88a33c82f19b3f7ff201ce77eea7d28 (diff) | |
download | barebox-566f5634c5c2b3028d1cdd02ab53db9883711df0.tar.gz barebox-566f5634c5c2b3028d1cdd02ab53db9883711df0.tar.xz |
efi: add prototype and definition for setting timer
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/efi.h')
-rw-r--r-- | include/efi.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/efi.h b/include/efi.h index f65980687a..e1fc134ee7 100644 --- a/include/efi.h +++ b/include/efi.h @@ -171,6 +171,12 @@ struct efi_open_protocol_information_entry { u32 open_count; }; +typedef enum { + EFI_TIMER_CANCEL = 0, + EFI_TIMER_PERIODIC = 1, + EFI_TIMER_RELATIVE = 2 +} efi_timer_delay_t; + /* * EFI Boot Services table */ @@ -199,7 +205,7 @@ typedef struct { efi_status_t(EFIAPI *create_event)(u32 type , unsigned long tpl, void (*fn) (void *event, void *ctx), void *ctx, void **event); - void *set_timer; + efi_status_t(EFIAPI *set_timer)(void *event, efi_timer_delay_t type, uint64_t time); efi_status_t(EFIAPI *wait_for_event)(unsigned long number_of_events, void *event, unsigned long *index); void *signal_event; |