Namespaces

Enumerations

enum BusType
Name Value
kUnknown bind_fuchsia_acpi::BIND_ACPI_BUS_TYPE_UNKNOWN
kPci bind_fuchsia_acpi::BIND_ACPI_BUS_TYPE_PCI
kSpi bind_fuchsia_acpi::BIND_ACPI_BUS_TYPE_SPI
kI2c bind_fuchsia_acpi::BIND_ACPI_BUS_TYPE_I2C

Defined at line 14 of file ../../src/devices/board/lib/acpi/bus-type.h

enum WalkDirection
Name Value
Descending 0
Ascending 1

Defined at line 22 of file ../../src/devices/board/lib/acpi/acpi.h

Records

Functions

  • uint8_t ChecksumTable (void * data, size_t length)

    Calculate the checksum for the given table.

    This adds up all the bytes in the table,

    and returns the value that needs to be in the "checksum" field

    to make it add up to zero.

    To verify an existing table, simply check that this function returns zero.

    Defined at line 8 of file ../../src/devices/board/tests/acpi-host-tests/table.cc

  • ACPI_OBJECT MakeAcpiObject (uint64_t v)

    Defined at line 12 of file ../../src/devices/board/lib/acpi/object.h

  • ACPI_OBJECT MakeAcpiObject (uint8_t * buf, uint32_t bufsz)

    Defined at line 22 of file ../../src/devices/board/lib/acpi/object.h

  • const char * BusTypeToString (BusType t)

    Defined at line 28 of file ../../src/devices/board/lib/acpi/device-args.h

  • bool operator== (const AcpiBuffer<T>::iterator & ai, const AcpiBuffer<T>::iterator & bi)

    Defined at line 54 of file ../../src/devices/board/lib/acpi/util.h

  • acpi::status<UniquePtr<ACPI_DEVICE_INFO>> GetObjectInfo (ACPI_HANDLE obj)

    A free standing function which can be used to fetch the Info structure of an

    ACPI device. It returns a acpi::status which either holds a managed pointer

    to the info object, or an ACPI error code in the case of failure.

    Defined at line 54 of file ../../src/devices/board/drivers/x86/acpi-nswalk.cc

  • bool operator!= (const AcpiBuffer<T>::iterator & ai, const AcpiBuffer<T>::iterator & bi)

    Defined at line 57 of file ../../src/devices/board/lib/acpi/util.h

  • status<> make_status (ACPI_STATUS status)

    Utility to make a status-only acpi::status

    <

    > from a ACPI_STATUS error.

    A status-only acpi::status

    <

    > is one with an empty value set. It may contain

    either a status value that represents the error (i.e. not AE_OK) or a

    valueless success state. This utility automatically handles the distinction

    to make interop with older code easier.

    Example usage:

    // Legacy method returning ACPI_STATUS.

    ACPI_STATUS ConsumeValues(Value* values, size_t length);

    // Newer method that interops with the legacy method.

    acpi::status

    <

    > ConsumeValues(std::array

    <Value

    , kSize>* values) {

    if (values == nullptr) {

    return acpi::error_status(AE_ERR_INVALID_ARGS);

    }

    return acpi::make_status(ConsumeValues(values->data(), values->length()));

    }

    Defined at line 163 of file ../../src/devices/board/lib/acpi/status.h

  • ACPI_STATUS GetPciRootIrqRouting (acpi::Acpi * acpiACPI_HANDLE root_objAcpiPciroot::Context * context)

    Defined at line 204 of file ../../src/devices/board/lib/acpi/pci_irqs.cc