Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/efidev/efirt.c
Show All 12 Lines | |||||
{ | { | ||||
u_long code; | u_long code; | ||||
code = status & 0x3ffffffffffffffful; | code = status & 0x3ffffffffffffffful; | ||||
return (code < nitems(efi_status2err) ? efi_status2err[code] : EDOOFUS); | return (code < nitems(efi_status2err) ? efi_status2err[code] : EDOOFUS); | ||||
} | } | ||||
static struct mtx efi_lock; | static struct mtx efi_lock; | ||||
static SYSCTL_NODE(_hw, OID_AUTO, efi, CTLFLAG_RWTUN, NULL, "EFI"); | static SYSCTL_NODE(_hw, OID_AUTO, efi, CTLFLAG_RWTUN | CTLFLAG_MPSAFE, NULL, | ||||
"EFI"); | |||||
static bool efi_poweroff = true; | static bool efi_poweroff = true; | ||||
SYSCTL_BOOL(_hw_efi, OID_AUTO, poweroff, CTLFLAG_RWTUN, &efi_poweroff, 0, | SYSCTL_BOOL(_hw_efi, OID_AUTO, poweroff, CTLFLAG_RWTUN, &efi_poweroff, 0, | ||||
"If true, use EFI runtime services to power off in preference to ACPI"); | "If true, use EFI runtime services to power off in preference to ACPI"); | ||||
static bool | static bool | ||||
efi_is_in_map(struct efi_md *map, int ndesc, int descsz, vm_offset_t addr) | efi_is_in_map(struct efi_md *map, int ndesc, int descsz, vm_offset_t addr) | ||||
{ | { | ||||
struct efi_md *p; | struct efi_md *p; | ||||
Show All 12 Lines |