44 #define EFI_JIFFIES_PER_SEC 32 53 #define colour &efi_jiffies 65 if ( ( efirc = bs->
Stall ( usecs ) ) != 0 ) {
67 DBGC (
colour,
"EFI could not delay for %ldus: %s\n",
173 DBGC (
colour,
"EFI could not create timer tick: %s\n",
183 DBGC (
colour,
"EFI could not start timer tick: %s\n",
188 DBGC (
colour,
"EFI timer started at %d ticks per second\n",
205 DBGC (
colour,
"EFI could not stop timer tick: %s\n",
215 DBGC (
colour,
"EFI could not destroy timer tick: %s\n",
static void efi_udelay(unsigned long usecs)
Delay for a fixed number of microseconds.
EFI_BOOT_SERVICES * BootServices
A pointer to the EFI Boot Services Table.
struct arbelprm_rc_send_wqe rc
static EFI_EVENT efi_tick_event
Timer tick event.
#define TICKS_PER_SEC
Number of ticks per second.
#define EEFI(efirc)
Convert an EFI status code to an iPXE status code.
An event is to be signaled periodically at a specified interval from the current time.
#define colour
Colour for debug messages.
VOID * EFI_EVENT
Handle to an event structure.
static unsigned long efi_jiffies
Current tick count.
#define STARTUP_EARLY
Early startup.
EFI_CLOSE_EVENT CloseEvent
EFI_TPL efi_internal_tpl
Internal task priority level.
A startup/shutdown function.
An event's timer settings is to be cancelled and not trigger time is to be set/.
static void efi_tick_shutdown(int booting __unused)
Stop timer tick.
#define __unused
Declare a variable or data structure as unused.
static void efi_tick_startup(void)
Start timer tick.
EFI_CREATE_EVENT CreateEvent
char * strerror(int errno)
Retrieve string representation of error number.
#define EVT_NOTIFY_SIGNAL
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
struct startup_fn efi_tick_startup_fn __startup_fn(STARTUP_EARLY)
Timer tick startup function.
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
#define EFI_JIFFIES_PER_SEC
Number of jiffies per second.
EFI_SYSTEM_TABLE * efi_systab
EFI_RESTORE_TPL RestoreTPL
struct timer efi_timer __timer(TIMER_NORMAL)
EFI timer.
static unsigned long efi_currticks(void)
Get current system time in ticks.
#define NULL
NULL pointer (VOID *)
static EFIAPI void efi_tick(EFI_EVENT event __unused, void *context __unused)
Timer tick.
#define TIMER_NORMAL
Normal timer.
int efi_shutdown_in_progress
EFI shutdown is in progress.
EFI_TPL efi_external_tpl
External task priority level.