diff options
| author | Erwan Velu <erwan.velu@free.fr> | 2009-12-02 16:52:34 +0100 |
|---|---|---|
| committer | Erwan Velu <erwan.velu@free.fr> | 2009-12-04 10:19:01 +0100 |
| commit | cb32b8d13d9c313527ef20e6df52aab9830ff0d6 (patch) | |
| tree | 7414230bea86dfa6bda5a56916ab087a1c385b2b /com32/gplinclude | |
| parent | 67f8125c50888d42c37431fac30186e0d514165d (diff) | |
| download | syslinux-cb32b8d13d9c313527ef20e6df52aab9830ff0d6.tar.gz | |
acpi: Adding SSDT & PSDT
Impact: Adding SSDT & PSDT
Adding SSDT & PSDT
Diffstat (limited to 'com32/gplinclude')
| -rw-r--r-- | com32/gplinclude/acpi/acpi.h | 5 | ||||
| -rw-r--r-- | com32/gplinclude/acpi/ssdt.h | 25 |
2 files changed, 30 insertions, 0 deletions
diff --git a/com32/gplinclude/acpi/acpi.h b/com32/gplinclude/acpi/acpi.h index d5c12498..25aacb31 100644 --- a/com32/gplinclude/acpi/acpi.h +++ b/com32/gplinclude/acpi/acpi.h @@ -21,9 +21,12 @@ #include <acpi/fadt.h> #include <acpi/madt.h> #include <acpi/dsdt.h> +#include <acpi/ssdt.h> enum { ACPI_FOUND, ENO_ACPI, MADT_FOUND, ENO_MADT }; +#define MAX_SSDT 128 + /* This macro are used to extract ACPI structures * please be careful about the q (interator) naming */ #define cp_struct(dest) memcpy(dest,q,sizeof(*dest)); q+=sizeof(*dest) @@ -36,6 +39,8 @@ typedef struct { s_fadt fadt; s_madt madt; s_dsdt dsdt; + s_ssdt *ssdt[MAX_SSDT]; + uint8_t ssdt_count; } s_acpi; int parse_acpi(s_acpi * acpi); diff --git a/com32/gplinclude/acpi/ssdt.h b/com32/gplinclude/acpi/ssdt.h new file mode 100644 index 00000000..0170d393 --- /dev/null +++ b/com32/gplinclude/acpi/ssdt.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 SSDT_H +#define SSDT_H +#include <inttypes.h> +#include <stdbool.h> + +typedef struct { + uint64_t address; + s_acpi_description_header header; + uint8_t *definition_block; + bool valid; +} s_ssdt; + +#endif |
