reboot_type
int64_t opal_cec_reboot2(uint32_t reboot_type, const char *diag);
static void rtas_flash_firmware(int reboot_type)
if (reboot_type != SYS_RESTART) {
reboot_type = BOOT_ACPI;
if (reboot_type != BOOT_CF9_FORCE) {
reboot_type = BOOT_CF9_FORCE;
if (reboot_type != BOOT_KBD) {
reboot_type = BOOT_KBD;
reboot_type = BOOT_EFI;
if (reboot_type != BOOT_ACPI) {
int orig_reboot_type = reboot_type;
reboot_type = BOOT_ACPI;
reboot_type = BOOT_EFI;
switch (reboot_type) {
reboot_type = BOOT_KBD;
reboot_type = BOOT_ACPI;
reboot_type = BOOT_EFI;
reboot_type = BOOT_BIOS;
reboot_type = BOOT_CF9_SAFE;
reboot_type = BOOT_TRIPLE;
reboot_type = BOOT_KBD;
if (reboot_type != BOOT_BIOS) {
reboot_type = BOOT_BIOS;
if (reboot_type != BOOT_EFI && !efi_runtime_disabled()) {
reboot_type = BOOT_EFI;
reboot_type = BOOT_KBD;
extern enum reboot_type reboot_type;
reboot_type = *str;
switch (reboot_type) {
reboot_type = BOOT_TRIPLE;
reboot_type = BOOT_KBD;
reboot_type = BOOT_BIOS;
reboot_type = BOOT_ACPI;
reboot_type = BOOT_EFI;
reboot_type = BOOT_CF9_FORCE;
enum reboot_type reboot_type = BOOT_ACPI;