qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC 5/9] acpi: expose acpi_checksum()


From: Chao Peng
Subject: [Qemu-devel] [RFC 5/9] acpi: expose acpi_checksum()
Date: Fri, 17 Jun 2016 04:14:13 -0400

From: Haozhong Zhang <address@hidden>

It will be used in later commits.

Signed-off-by: Haozhong Zhang <address@hidden>
---
 hw/acpi/core.c         | 2 +-
 include/hw/acpi/acpi.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/hw/acpi/core.c b/hw/acpi/core.c
index d24b9a9..70ad6ff 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 c717f15..b23eff8 100644
--- a/include/hw/acpi/acpi.h
+++ b/include/hw/acpi/acpi.h
@@ -188,4 +188,6 @@ struct AcpiSlicOem {
 };
 int acpi_get_slic_oem(AcpiSlicOem *oem);
 
+int acpi_checksum(const uint8_t *data, int len);
+
 #endif /* !QEMU_HW_ACPI_H */
-- 
1.8.3.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]