~/bend-docscommunity

facs.bend checks

raw source on the hub · import bend-osdev-acpi@0.1.2.0/facs.bend as Facs

bend-osdev-acpi, facs.bend: the Firmware ACPI Control Structure, "FACS" (ACPI 6.5, section 5.2.10). It has no standard header and no checksum; the FADT points to it. 64 bytes:

offset size field 0 4 Signature "FACS" 4 4 Length (64 or more) 8 4 Hardware Signature 12 4 Firmware Waking Vector (32-bit) 16 4 Global Lock 20 4 Flags (bit 0 S4BIOS_F, bit 1 64BIT_WAKE_SUPPORTED_F) 24 8 X Firmware Waking Vector (64-bit) 32 1 Version (2 from ACPI 4.0) 33 3 Reserved 36 4 OSPM Flags (bit 0 64BIT_WAKE_F) 40 24 Reserved

5 imports
import Base
import bend-osdev-word64@0.1.1.1/word64.bend as W
import bend-osdev-bytes@0.1.1.1/bytes.bend as B
import ./error.bend as E
import ./fields.bend as F

Types

type AcpiFacs source · line 23 · raw

Data

Definitions

def facs.p3 source · line 26 · raw

@ok:Bool -> @+l:U32 -> @+o:0x15cc157649e26d54c7c549cb80d4a2a9/bytes.Octets -> Result<&2, &2, 0x437a65a35fd0c02411bea19819f9b33f/error.AcpiError, AcpiFacs>

def facs.p2 source · line 33 · raw

@ok:Bool -> @+o:0x15cc157649e26d54c7c549cb80d4a2a9/bytes.Octets -> Result<&2, &2, 0x437a65a35fd0c02411bea19819f9b33f/error.AcpiError, AcpiFacs>

def facs.p1 source · line 41 · raw

@ok:Bool -> @+o:0x15cc157649e26d54c7c549cb80d4a2a9/bytes.Octets -> Result<&2, &2, 0x437a65a35fd0c02411bea19819f9b33f/error.AcpiError, AcpiFacs>

def AcpiFacs.parse source · line 50 · raw

@+o:0x15cc157649e26d54c7c549cb80d4a2a9/bytes.Octets -> Result<&2, &2, 0x437a65a35fd0c02411bea19819f9b33f/error.AcpiError, AcpiFacs>

the FACS at the front of o: at least 64 bytes, the signature, a length of at least 64

def AcpiFacs.build source · line 53 · raw

@f:AcpiFacs -> 0x15cc157649e26d54c7c549cb80d4a2a9/bytes.Octets