acpi: add aml_int() term
commit295a515df0df655a902df6ebfc301096a3ee88ed
authorIgor Mammedov <imammedo@redhat.com>
Wed, 18 Feb 2015 19:14:21 +0000 (18 19:14 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 26 Feb 2015 12:04:11 +0000 (26 13:04 +0100)
treef969dee4342b66a437658c94b3b311db0d6daed7
parent3c054bd51a132a69e5180f8c6ffa9d46724e4a50
acpi: add aml_int() term

* factor out ACPI const int packing out of build_append_value()
  and rename build_append_value() to build_append_int_noprefix()
  it will be reused for adding a plain integer value into AML.
  will be used by is aml_processor() and CRS macro helpers
* extend build_append_int{_noprefix}() to support 64-bit values
  it will be used PCI for generating 64bit _CRS entries

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/aml-build.c
hw/i386/acpi-build.c
include/hw/acpi/aml-build.h