45#define EFI_JIFFIES_PER_SEC 32
54#define colour &efi_jiffies
66 if ( ( efirc = bs->
Stall ( usecs ) ) != 0 ) {
68 DBGC (
colour,
"EFI could not delay for %ldus: %s\n",
174 DBGC (
colour,
"EFI could not create timer tick: %s\n",
184 DBGC (
colour,
"EFI could not start timer tick: %s\n",
189 DBGC (
colour,
"EFI timer started at %d ticks per second\n",
206 DBGC (
colour,
"EFI could not stop timer tick: %s\n",
216 DBGC (
colour,
"EFI could not destroy timer tick: %s\n",
#define NULL
NULL pointer (VOID *)
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
@ TimerCancel
An event's timer settings is to be cancelled and not trigger time is to be set/.
@ TimerPeriodic
An event is to be signaled periodically at a specified interval from the current time.
#define EVT_NOTIFY_SIGNAL
#define colour
Colour for debug messages.
struct arbelprm_rc_send_wqe rc
EFI_TPL efi_external_tpl
External task priority level.
EFI_TPL efi_internal_tpl
Internal task priority level.
int efi_shutdown_in_progress
EFI shutdown is in progress.
static unsigned long efi_jiffies
Current tick count.
static void efi_udelay(unsigned long usecs)
Delay for a fixed number of microseconds.
static EFI_EVENT efi_tick_event
Timer tick event.
#define EFI_JIFFIES_PER_SEC
Number of jiffies per second.
static unsigned long efi_currticks(void)
Get current system time in ticks.
static void efi_tick_shutdown(int booting __unused)
Stop timer tick.
static void efi_tick_startup(void)
Start timer tick.
static EFIAPI void efi_tick(EFI_EVENT event __unused, void *context __unused)
Timer tick.
#define __unused
Declare a variable or data structure as unused.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
#define STARTUP_EARLY
Early startup.
#define TIMER_NORMAL
Normal timer.
#define EEFI(efirc)
Convert an EFI status code to an iPXE status code.
EFI_SYSTEM_TABLE * efi_systab
#define TICKS_PER_SEC
Number of ticks per second.
#define __timer(order)
Declare a timer.
#define __startup_fn(startup_order)
Declare a startup/shutdown function.
char * strerror(int errno)
Retrieve string representation of error number.
EFI_RESTORE_TPL RestoreTPL
EFI_CREATE_EVENT CreateEvent
EFI_CLOSE_EVENT CloseEvent
A startup/shutdown function.