summaryrefslogtreecommitdiff
path: root/com32/gplinclude/acpi/ecdt.h
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-12-03 11:10:38 +0100
committerErwan Velu <erwan.velu@free.fr>2009-12-04 10:19:02 +0100
commit091a8c61d384cf56affee3d7d89bde0dcc0057fe (patch)
tree06d20a9b89479b3993ff1d7087b903332ee575a6 /com32/gplinclude/acpi/ecdt.h
parentc2a92cf4ba8adf13e2274803617dfb0cf6dce5e0 (diff)
downloadsyslinux-091a8c61d384cf56affee3d7d89bde0dcc0057fe.tar.gz
acpi: Adding ecdt
Impact: Addding ecdt Adding ecdt
Diffstat (limited to 'com32/gplinclude/acpi/ecdt.h')
-rw-r--r--com32/gplinclude/acpi/ecdt.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/com32/gplinclude/acpi/ecdt.h b/com32/gplinclude/acpi/ecdt.h
new file mode 100644
index 00000000..0f8f3ca4
--- /dev/null
+++ b/com32/gplinclude/acpi/ecdt.h
@@ -0,0 +1,38 @@
+/* ----------------------------------------------------------------------- *
+ *
+ * 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 ECDT_H
+#define ECDT_H
+#include <inttypes.h>
+#include <stdbool.h>
+
+#define ECDT "ECDT"
+
+/* Offset of the EC_ID in the structure */
+#define EC_ID_OFFSET 65
+
+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_gas ec_control;
+ s_gas ec_data;
+ uint32_t uid;
+ uint8_t gpe_bit;
+ char *ec_id;
+} s_ecdt;
+
+void parse_ecdt(s_ecdt * ecdt);
+#endif