tools: add tool to decode AML files and build an ACPI namespace

This commit is contained in:
2023-07-19 19:00:27 +01:00
parent 42c6cfb697
commit f8c1a52259
16 changed files with 2446 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
#include "value.h"
uint64_t aml_value_get_integer(const struct aml_value *value)
{
switch (value->type) {
case AML_VALUE_UINT8:
return value->value.uint8;
case AML_VALUE_UINT16:
return value->value.uint8;
case AML_VALUE_UINT32:
return value->value.uint8;
case AML_VALUE_UINT64:
return value->value.uint8;
default:
return 0;
}
}