48#define EFI_ENTROPY_TRIGGER_TIME 10
70 DBGC ( &
tick,
"ENTROPY could not create event: %s\n",
114 DBGC ( &
tick,
"ENTROPY could not set timer: %s\n",
120 DBGC ( &
tick,
"ENTROPY could not wait for timer tick: %s\n",
UINT64 UINTN
Unsigned value of native width.
#define NULL
NULL pointer (VOID *)
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
@ TimerRelative
An event is to be signaled once at a specified interval from the current time.
struct arbelprm_rc_send_wqe rc
static int efi_entropy_tick(void)
Wait for a timer tick.
static int efi_entropy_enable(void)
Enable entropy gathering.
static EFI_EVENT tick
Event used to wait for timer tick.
static int efi_get_noise(noise_sample_t *noise)
Get noise sample from timer ticks.
static void efi_entropy_disable(void)
Disable entropy gathering.
#define EFI_ENTROPY_TRIGGER_TIME
Time (in 100ns units) to delay waiting for timer tick.
EFI_TPL efi_external_tpl
External task priority level.
EFI_TPL efi_internal_tpl
Internal task priority level.
#define ENTROPY_FALLBACK
Fallback entropy source.
#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 EEFI(efirc)
Convert an EFI status code to an iPXE status code.
EFI_SYSTEM_TABLE * efi_systab
static void entropy_init(struct entropy_source *source, min_entropy_t min_entropy_per_sample)
Initialise entropy source.
#define MIN_ENTROPY(bits)
Construct a min-entropy fixed-point value.
uint8_t noise_sample_t
A noise sample.
#define __entropy_source(order)
Declare an entropy source.
unsigned long profile_timestamp(void)
uint32_t low
Low 16 bits of address.
char * strerror(int errno)
Retrieve string representation of error number.
EFI_RESTORE_TPL RestoreTPL
EFI_CREATE_EVENT CreateEvent
EFI_CLOSE_EVENT CloseEvent
EFI_WAIT_FOR_EVENT WaitForEvent
int32_t after
Final microcode version.
int32_t before
Initial microcode version.