diff options
author | Erwan Velu <erwan.velu@free.fr> | 2009-12-02 15:56:17 +0100 |
---|---|---|
committer | Erwan Velu <erwan.velu@free.fr> | 2009-12-04 10:19:01 +0100 |
commit | b054981837d082d3bd97ad6127816a82c8ad7278 (patch) | |
tree | 68d14ca957c340c3d132c5f8315ff7ce5e3f748c /com32/gplinclude | |
parent | 50f2246c8ce3c98a602e9186f0cc4c05a13cab46 (diff) | |
download | syslinux-b054981837d082d3bd97ad6127816a82c8ad7278.tar.gz |
acpi: Adding dsdt
Impact: Adding dsdt
Adding DSDT
Diffstat (limited to 'com32/gplinclude')
-rw-r--r-- | com32/gplinclude/acpi/acpi.h | 4 | ||||
-rw-r--r-- | com32/gplinclude/acpi/dsdt.h | 25 | ||||
-rw-r--r-- | com32/gplinclude/acpi/madt.h | 3 |
3 files changed, 29 insertions, 3 deletions
diff --git a/com32/gplinclude/acpi/acpi.h b/com32/gplinclude/acpi/acpi.h index d95976ab..d5c12498 100644 --- a/com32/gplinclude/acpi/acpi.h +++ b/com32/gplinclude/acpi/acpi.h @@ -17,9 +17,10 @@ #include <acpi/structs.h> #include <acpi/rsdp.h> #include <acpi/rsdt.h> -#include <acpi/madt.h> #include <acpi/xsdt.h> #include <acpi/fadt.h> +#include <acpi/madt.h> +#include <acpi/dsdt.h> enum { ACPI_FOUND, ENO_ACPI, MADT_FOUND, ENO_MADT }; @@ -34,6 +35,7 @@ typedef struct { s_xsdt xsdt; s_fadt fadt; s_madt madt; + s_dsdt dsdt; } s_acpi; int parse_acpi(s_acpi * acpi); diff --git a/com32/gplinclude/acpi/dsdt.h b/com32/gplinclude/acpi/dsdt.h new file mode 100644 index 00000000..abcbdf86 --- /dev/null +++ b/com32/gplinclude/acpi/dsdt.h @@ -0,0 +1,25 @@ +/* ----------------------------------------------------------------------- * + * + * 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 DSDT_H +#define DSDT_H +#include <inttypes.h> +#include <stdbool.h> + +typedef struct { + uint64_t address; + s_acpi_description_header header; + uint8_t *definition_block; + bool valid; +} s_dsdt; + +#endif diff --git a/com32/gplinclude/acpi/madt.h b/com32/gplinclude/acpi/madt.h index c7a63c52..3815bbed 100644 --- a/com32/gplinclude/acpi/madt.h +++ b/com32/gplinclude/acpi/madt.h @@ -14,7 +14,6 @@ #define MADT_H #include <inttypes.h> #include <stdbool.h> -#include <acpi/acpi.h> enum { PROCESSOR_LOCAL_APIC = 0, @@ -38,7 +37,7 @@ typedef struct { } s_processor_local_apic; typedef struct { - uint32_t address; + uint64_t address; s_acpi_description_header header; uint32_t local_apic_address; uint32_t flags; |