acpi: add AML support

This is backported from cloud hypervisor, which can be used to
generate the AML from ASL which is more easily for people to
understand what this AML is doing.

BUG=None
TEST=cargo test -p acpi_tables

Change-Id: Ib7c60caca92fd6ca7ab6800ddf36b2135fbcfc88
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2119570
Reviewed-by: Zach Reizner <zachr@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Chuanxiao Dong <chuanxiao.dong@intel.corp-partner.google.com>
This commit is contained in:
Chuanxiao Dong 2020-02-19 14:18:20 +08:00 committed by Commit Bot
parent 6031ff4b81
commit d5f47a9865
2 changed files with 1967 additions and 0 deletions

1966
acpi_tables/src/aml.rs Normal file

File diff suppressed because it is too large Load diff

View file

@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
pub mod aml;
pub mod rsdp;
pub mod sdt;