aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gplinclude
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-12-03 09:50:03 +0100
committerErwan Velu <erwan.velu@free.fr>2009-12-04 10:19:01 +0100
commitf12f222e00aff419437fbb08675654652b53af91 (patch)
tree350ae6d4cfce8783ea9aa361ab16948b6e55fe3e /com32/gplinclude
parent6b97e41c971b4d288ef50f21d451001a99cde6d2 (diff)
downloadsyslinux-f12f222e00aff419437fbb08675654652b53af91.tar.gz
syslinux-f12f222e00aff419437fbb08675654652b53af91.tar.xz
syslinux-f12f222e00aff419437fbb08675654652b53af91.zip
acpi: Using definitions for table names
Impact: none Using more definitions for ACPI tables names
Diffstat (limited to 'com32/gplinclude')
-rw-r--r--com32/gplinclude/acpi/acpi.h27
-rw-r--r--com32/gplinclude/acpi/dsdt.h2
-rw-r--r--com32/gplinclude/acpi/fadt.h3
-rw-r--r--com32/gplinclude/acpi/madt.h3
-rw-r--r--com32/gplinclude/acpi/rsdp.h3
-rw-r--r--com32/gplinclude/acpi/rsdt.h2
-rw-r--r--com32/gplinclude/acpi/ssdt.h3
-rw-r--r--com32/gplinclude/acpi/xsdt.h2
8 files changed, 44 insertions, 1 deletions
diff --git a/com32/gplinclude/acpi/acpi.h b/com32/gplinclude/acpi/acpi.h
index 25aacb31..02c19e39 100644
--- a/com32/gplinclude/acpi/acpi.h
+++ b/com32/gplinclude/acpi/acpi.h
@@ -27,6 +27,31 @@ enum { ACPI_FOUND, ENO_ACPI, MADT_FOUND, ENO_MADT };
#define MAX_SSDT 128
+/* Some other description HEADERS : ACPI doc: 5.2.6*/
+#define ECDT "ECDT"
+#define FACS "FACS"
+#define OEMX "OEMx"
+#define SRAR "SRAT"
+#define BERT "BERT"
+#define BOOT "BOOT"
+#define CPEP "CPEP"
+#define DBGP "DGBP"
+#define DMAR "DMAR"
+#define ERST "ERST"
+#define ETDT "ETDT"
+#define HEST "HEST"
+#define HPET "HPET"
+#define IBFT "IBFT"
+#define MCFG "MCFG"
+#define SPCR "SPCR"
+#define SPMI "SPMI"
+#define TCPA "TCPA"
+#define UEFI "UEFI"
+#define WAET "WAET"
+#define WDAT "WDAT"
+#define WDRT "WDRT"
+#define WSPT "WSPT"
+
/* 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)
@@ -45,7 +70,7 @@ typedef struct {
int parse_acpi(s_acpi * acpi);
int parse_xsdt(s_acpi * acpi);
-int parse_madt(s_acpi * acpi);
+void parse_madt(s_acpi * acpi);
int search_rsdp(s_acpi *acpi);
void get_acpi_description_header(uint8_t *q, s_acpi_description_header * adh);
#endif
diff --git a/com32/gplinclude/acpi/dsdt.h b/com32/gplinclude/acpi/dsdt.h
index abcbdf86..219cb1ee 100644
--- a/com32/gplinclude/acpi/dsdt.h
+++ b/com32/gplinclude/acpi/dsdt.h
@@ -15,6 +15,8 @@
#include <inttypes.h>
#include <stdbool.h>
+#define DSDT "DSDT"
+
typedef struct {
uint64_t address;
s_acpi_description_header header;
diff --git a/com32/gplinclude/acpi/fadt.h b/com32/gplinclude/acpi/fadt.h
index abc8dd6e..8499cc0b 100644
--- a/com32/gplinclude/acpi/fadt.h
+++ b/com32/gplinclude/acpi/fadt.h
@@ -17,6 +17,9 @@
enum { FADT_TABLE_FOUND };
+#define FACP "FACP"
+#define FADT "FADT"
+
typedef struct {
uint64_t address;
s_acpi_description_header header;
diff --git a/com32/gplinclude/acpi/madt.h b/com32/gplinclude/acpi/madt.h
index 3815bbed..c79d99b4 100644
--- a/com32/gplinclude/acpi/madt.h
+++ b/com32/gplinclude/acpi/madt.h
@@ -15,6 +15,9 @@
#include <inttypes.h>
#include <stdbool.h>
+#define MADT "MADT"
+#define APIC "APIC"
+
enum {
PROCESSOR_LOCAL_APIC = 0,
IO_APIC = 1,
diff --git a/com32/gplinclude/acpi/rsdp.h b/com32/gplinclude/acpi/rsdp.h
index df4da2d8..1d8126c1 100644
--- a/com32/gplinclude/acpi/rsdp.h
+++ b/com32/gplinclude/acpi/rsdp.h
@@ -17,6 +17,9 @@
#define RSDP_MIN_ADDRESS 0x0E0000
#define RSDP_MAX_ADDRESS 0x0FFFFF
+
+#define RSDP "RSD PTR"
+
enum { RSDP_TABLE_FOUND };
typedef struct {
diff --git a/com32/gplinclude/acpi/rsdt.h b/com32/gplinclude/acpi/rsdt.h
index 7919820e..c3c198c9 100644
--- a/com32/gplinclude/acpi/rsdt.h
+++ b/com32/gplinclude/acpi/rsdt.h
@@ -17,6 +17,8 @@
enum { RSDT_TABLE_FOUND };
+#define RSDT "RSDT"
+
typedef struct {
uint32_t address;
s_acpi_description_header header;
diff --git a/com32/gplinclude/acpi/ssdt.h b/com32/gplinclude/acpi/ssdt.h
index 0170d393..1ace3661 100644
--- a/com32/gplinclude/acpi/ssdt.h
+++ b/com32/gplinclude/acpi/ssdt.h
@@ -15,6 +15,9 @@
#include <inttypes.h>
#include <stdbool.h>
+#define SSDT "SSDT"
+#define PSDT "PSDT"
+
typedef struct {
uint64_t address;
s_acpi_description_header header;
diff --git a/com32/gplinclude/acpi/xsdt.h b/com32/gplinclude/acpi/xsdt.h
index 7a08dbf7..a87e2a05 100644
--- a/com32/gplinclude/acpi/xsdt.h
+++ b/com32/gplinclude/acpi/xsdt.h
@@ -17,6 +17,8 @@
enum { XSDT_TABLE_FOUND };
+#define XSDT "XSDT"
+
typedef struct {
uint32_t address;
s_acpi_description_header header;