61 attrs, sizeof ( osind ),
unsigned long long UINT64
8-byte unsigned value.
unsigned short CHAR16
2-byte Character.
unsigned int UINT32
4-byte unsigned value.
#define NULL
NULL pointer (VOID *)
GUID for EFI (NVRAM) Variables.
#define EFI_OS_INDICATIONS_VARIABLE_NAME
Allows the OS to request the firmware to enable certain features and to take certain actions.
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
#define EFI_VARIABLE_BOOTSERVICE_ACCESS
#define EFI_VARIABLE_RUNTIME_ACCESS
EFI_RESET_TYPE
Enumeration of reset types.
@ EfiResetCold
Used to induce a system-wide reset.
@ EfiResetShutdown
Used to induce an entry into a power state equivalent to the ACPI G2/S5 or G3 state.
@ EfiResetWarm
Used to induce a system-wide initialization.
#define EFI_VARIABLE_NON_VOLATILE
Attributes of variable.
#define EFI_OS_INDICATIONS_BOOT_TO_FW_UI
struct arbelprm_rc_send_wqe rc
EFI_GUID efi_global_variable
Global variable GUID.
static void efi_reboot(int flags)
Reboot system.
static int efi_poweroff(void)
Power off system.
uint32_t type
Operating system type.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define ECANCELED
Operation canceled.
#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
#define REBOOT_SETUP
Reboot to firmware setup.
#define PROVIDE_REBOOT(_subsys, _api_func, _func)
Provide an reboot API implementation.
int poweroff(void)
Power off system.
void reboot(int flags)
Reboot system.
#define REBOOT_WARM
Perform a warm reboot.
char * strerror(int errno)
Retrieve string representation of error number.
EFI Runtime Services Table.
EFI_SET_VARIABLE SetVariable
EFI_RESET_SYSTEM ResetSystem