summaryrefslogtreecommitdiff
path: root/com32/gplinclude
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-12-02 14:54:53 +0100
committerErwan Velu <erwan.velu@free.fr>2009-12-04 10:19:01 +0100
commit5be1b093d9de5daebcdfddd40771a5d20acfe7a3 (patch)
treefb1c3996a54363b54cad336abb2b5e620c897707 /com32/gplinclude
parent1ae9798fd34903a47f6a136d3e4018c7229b542f (diff)
downloadsyslinux-5be1b093d9de5daebcdfddd40771a5d20acfe7a3.tar.gz
acpi: Adding FADT
Impact: Adding FADT Adding FADT
Diffstat (limited to 'com32/gplinclude')
-rw-r--r--com32/gplinclude/acpi/acpi.h2
-rw-r--r--com32/gplinclude/acpi/fadt.h30
2 files changed, 32 insertions, 0 deletions
diff --git a/com32/gplinclude/acpi/acpi.h b/com32/gplinclude/acpi/acpi.h
index a8005d1b..5c8ea6e6 100644
--- a/com32/gplinclude/acpi/acpi.h
+++ b/com32/gplinclude/acpi/acpi.h
@@ -19,6 +19,7 @@
#include <acpi/rsdt.h>
#include <acpi/madt.h>
#include <acpi/xsdt.h>
+#include <acpi/fadt.h>
enum { ACPI_FOUND, ENO_ACPI, MADT_FOUND, ENO_MADT };
@@ -31,6 +32,7 @@ typedef struct {
s_rsdp rsdp;
s_rsdt rsdt;
s_xsdt xsdt;
+ s_fadt fadt;
s_madt madt;
} s_acpi;
diff --git a/com32/gplinclude/acpi/fadt.h b/com32/gplinclude/acpi/fadt.h
new file mode 100644
index 00000000..abc8dd6e
--- /dev/null
+++ b/com32/gplinclude/acpi/fadt.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 FADT_H
+#define FADT_H
+#include <inttypes.h>
+#include <stdbool.h>
+
+enum { FADT_TABLE_FOUND };
+
+typedef struct {
+ uint64_t address;
+ s_acpi_description_header header;
+ bool valid;
+ uint32_t firmware_ctrl;
+ uint32_t dsdt_address;
+ /* To be filled later */
+} s_fadt;
+
+void parse_fadt(s_fadt * fadt);
+#endif