diff mbox

[RFC,v2,07/12] acpi: expose acpi_checksum()

Message ID 1472120105-29235-8-git-send-email-chao.p.peng@linux.intel.com
State New
Headers show

Commit Message

Chao Peng Aug. 25, 2016, 10:15 a.m. UTC
From: Haozhong Zhang <haozhong.zhang@intel.com>

It will be used in later commits.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
---
 hw/acpi/core.c         | 2 +-
 include/hw/acpi/acpi.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/hw/acpi/core.c b/hw/acpi/core.c
index e890a5d..95ba06d 100644
--- a/hw/acpi/core.c
+++ b/hw/acpi/core.c
@@ -69,7 +69,7 @@  static void acpi_register_config(void)
 
 opts_init(acpi_register_config);
 
-static int acpi_checksum(const uint8_t *data, int len)
+int acpi_checksum(const uint8_t *data, int len)
 {
     int sum, i;
     sum = 0;
diff --git a/include/hw/acpi/acpi.h b/include/hw/acpi/acpi.h
index 7b3d93c..fee6606 100644
--- a/include/hw/acpi/acpi.h
+++ b/include/hw/acpi/acpi.h
@@ -189,4 +189,6 @@  struct AcpiSlicOem {
 };
 int acpi_get_slic_oem(AcpiSlicOem *oem);
 
+int acpi_checksum(const uint8_t *data, int len);
+
 #endif /* QEMU_HW_ACPI_H */