aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gplinclude
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-01-31 16:29:49 +0100
committerErwan Velu <erwanaliasr1@gmail.com>2011-01-31 16:29:49 +0100
commit7cb79745098c7b84888646b36bdc1c8a2cf99d85 (patch)
tree1ccdee6011e7d9318292dd52f4a917e9ea284269 /com32/gplinclude
parent813daa0f83959de7c1ece9381966905a538919db (diff)
downloadsyslinux-7cb79745098c7b84888646b36bdc1c8a2cf99d85.tar.gz
syslinux-7cb79745098c7b84888646b36bdc1c8a2cf99d85.tar.xz
syslinux-7cb79745098c7b84888646b36bdc1c8a2cf99d85.zip
ACPI: Fixing ACPI return codes
Without defining values using the negative values as a return option could lead to a false positive case. Setting up the values helps prevent from using the 0 value.
Diffstat (limited to 'com32/gplinclude')
-rw-r--r--com32/gplinclude/acpi/acpi.h2
-rw-r--r--com32/gplinclude/acpi/fadt.h2
-rw-r--r--com32/gplinclude/acpi/rsdp.h2
-rw-r--r--com32/gplinclude/acpi/rsdt.h2
-rw-r--r--com32/gplinclude/acpi/xsdt.h2
5 files changed, 5 insertions, 5 deletions
diff --git a/com32/gplinclude/acpi/acpi.h b/com32/gplinclude/acpi/acpi.h
index 8f97eb40..db4adc73 100644
--- a/com32/gplinclude/acpi/acpi.h
+++ b/com32/gplinclude/acpi/acpi.h
@@ -32,7 +32,7 @@ void dbg_printf(const char *fmt, ...);
#include <acpi/ecdt.h>
#include <acpi/facs.h>
-enum { ACPI_FOUND, ENO_ACPI, MADT_FOUND, ENO_MADT };
+enum { ACPI_FOUND = 1, ENO_ACPI = 2 , MADT_FOUND = 3 , ENO_MADT = 4 };
#define MAX_SSDT 128
diff --git a/com32/gplinclude/acpi/fadt.h b/com32/gplinclude/acpi/fadt.h
index 72f7a108..fb52bf85 100644
--- a/com32/gplinclude/acpi/fadt.h
+++ b/com32/gplinclude/acpi/fadt.h
@@ -15,7 +15,7 @@
#include <inttypes.h>
#include <stdbool.h>
-enum { FADT_TABLE_FOUND };
+enum { FADT_TABLE_FOUND = 1};
#define FACP "FACP"
#define FADT "FADT"
diff --git a/com32/gplinclude/acpi/rsdp.h b/com32/gplinclude/acpi/rsdp.h
index d3c28c08..8f585fd9 100644
--- a/com32/gplinclude/acpi/rsdp.h
+++ b/com32/gplinclude/acpi/rsdp.h
@@ -20,7 +20,7 @@
#define RSDP "RSD PTR"
-enum { RSDP_TABLE_FOUND };
+enum { RSDP_TABLE_FOUND = 1 };
typedef struct {
uint8_t *address;
diff --git a/com32/gplinclude/acpi/rsdt.h b/com32/gplinclude/acpi/rsdt.h
index 2898db4e..8b75a608 100644
--- a/com32/gplinclude/acpi/rsdt.h
+++ b/com32/gplinclude/acpi/rsdt.h
@@ -15,7 +15,7 @@
#include <inttypes.h>
#include <stdbool.h>
-enum { RSDT_TABLE_FOUND };
+enum { RSDT_TABLE_FOUND = 1};
#define RSDT "RSDT"
diff --git a/com32/gplinclude/acpi/xsdt.h b/com32/gplinclude/acpi/xsdt.h
index f5bb8dc8..b2e42725 100644
--- a/com32/gplinclude/acpi/xsdt.h
+++ b/com32/gplinclude/acpi/xsdt.h
@@ -15,7 +15,7 @@
#include <inttypes.h>
#include <stdbool.h>
-enum { XSDT_TABLE_FOUND };
+enum { XSDT_TABLE_FOUND = 1 };
#define XSDT "XSDT"