aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gplinclude
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-12-03 10:14:01 +0100
committerErwan Velu <erwan.velu@free.fr>2009-12-04 10:19:01 +0100
commite680227c469e46d72692200d0e4492714f7e9828 (patch)
treeb0f225e3fd80771dd8faa08c0c73f8bbc461bc85 /com32/gplinclude
parentf12f222e00aff419437fbb08675654652b53af91 (diff)
downloadsyslinux-e680227c469e46d72692200d0e4492714f7e9828.tar.gz
syslinux-e680227c469e46d72692200d0e4492714f7e9828.tar.xz
syslinux-e680227c469e46d72692200d0e4492714f7e9828.zip
acpi: Adding SBST
Impact: Adding SBST Adding SBST
Diffstat (limited to 'com32/gplinclude')
-rw-r--r--com32/gplinclude/acpi/acpi.h2
-rw-r--r--com32/gplinclude/acpi/sbst.h30
2 files changed, 32 insertions, 0 deletions
diff --git a/com32/gplinclude/acpi/acpi.h b/com32/gplinclude/acpi/acpi.h
index 02c19e39..5ded2204 100644
--- a/com32/gplinclude/acpi/acpi.h
+++ b/com32/gplinclude/acpi/acpi.h
@@ -22,6 +22,7 @@
#include <acpi/madt.h>
#include <acpi/dsdt.h>
#include <acpi/ssdt.h>
+#include <acpi/sbst.h>
enum { ACPI_FOUND, ENO_ACPI, MADT_FOUND, ENO_MADT };
@@ -65,6 +66,7 @@ typedef struct {
s_madt madt;
s_dsdt dsdt;
s_ssdt *ssdt[MAX_SSDT];
+ s_sbst sbst;
uint8_t ssdt_count;
} s_acpi;
diff --git a/com32/gplinclude/acpi/sbst.h b/com32/gplinclude/acpi/sbst.h
new file mode 100644
index 00000000..6e3aa104
--- /dev/null
+++ b/com32/gplinclude/acpi/sbst.h
@@ -0,0 +1,30 @@
+/* ----------------------------------------------------------------------- *
+ *
+ * Copyright 2009 Erwan Velu - All Rights Reserved
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
+ * Boston MA 02111-1307, USA; either version 2 of the License, or
+ * (at your option) any later version; incorporated herein by reference.
+ *
+ * ----------------------------------------------------------------------- */
+
+#ifndef SBST_H
+#define SBST_H
+#include <inttypes.h>
+#include <stdbool.h>
+
+#define SBST "SBST"
+
+typedef struct {
+ uint64_t address;
+ s_acpi_description_header header;
+ bool valid;
+ uint32_t warning_energy_level;
+ uint32_t low_energy_level;
+ uint32_t critical_energy_level;
+} s_sbst;
+
+void parse_sbst(s_sbst * sbst);
+#endif