# Functions
GetHeader extracts a Header from a Tabler and returns a reference to it.
GetRSDP gets an RSDP.
Marshal marshals a Tabler into a byte slice.
NewGeneric creates a new Generic table from a byte slice.
NewRaw returns a new Raw table given a byte slice.
NewRSDP returns a new and partially initialized RSDP, setting only the defaultRSDP values, address, length, and signature.
NewSDT creates a new SDT, defaulting to XSDT.
RawFromFile reads a raw table in from a file.
RawTables returns an array of Raw, for all ACPI tables available in /sys.
ReadRaw reads a full table in, given an address.
ReadSDT reads an SDT in from memory, using UnMarshalSDT, which uses the io package.
ShowTable converts a Table into string.
UnMarshal unmarshals a single table and returns a Tabler.
UnMarshalAll takes an SDT and unmarshals all the tables using UnMarshal.
UnMarshalSDT unmarshals an SDT.
# Constants
CSUMOffset is the offset of the single byte checksum in *most* ACPI tables.
HeaderLength is a common header length for (almost) all ACPI tables.
LengthOffset is the offset of the table length.
MinTableLength is the minimum length: 4 byte tag, 4 byte length, 1 byte revision, 1 byte checksum,.
Revision marks lowest ACPI revision we support.
# Variables
Debug implements fmt.Sprintf and can be used for debug printing.
# Structs
Generic is the generic ACPI table, with a Header and data This makes it possible for users to change certain parts of the Header (e.g.
Header is the standard header for all ACPI tables, except the ones that don't use it.
HeapTable is for ACPI tables that have a heap, i.e.
IBFT defines all the bits of an IBFT users might want to set.
IBFTInitiator defines an initiator.
IBFTNIC defines an IBFT NIC structure.
IBFTTarget defines an IBFT target, a.k.a.
Raw is just a table embedded in a []byte.
RSDP is the v2 version of the RSDP struct, containing 32 and 64 bit pointers.
SDT represents either an RSDT or XSDT.
# Interfaces
Tabler is the interface to ACPI tables, be they held in memory as a byte slice, header and byte slice, or more complex struct.