aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gplinclude
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-01-26 22:14:20 +0100
committerErwan Velu <erwanaliasr1@gmail.com>2011-01-26 22:14:20 +0100
commitb1bb2511d86ae7350d82e3da1865621404d921f9 (patch)
treef469ab38159a0c2595de0f40d6f615b6b8202d19 /com32/gplinclude
parenta91be03264cb2656ea4680bd87b3d886acbd5da9 (diff)
downloadsyslinux-b1bb2511d86ae7350d82e3da1865621404d921f9.tar.gz
syslinux-b1bb2511d86ae7350d82e3da1865621404d921f9.tar.xz
syslinux-b1bb2511d86ae7350d82e3da1865621404d921f9.zip
ACPI: Fixing pointer arithmetic
Several adjustements were necessary ;o)
Diffstat (limited to 'com32/gplinclude')
-rw-r--r--com32/gplinclude/acpi/dsdt.h2
-rw-r--r--com32/gplinclude/acpi/ecdt.h2
-rw-r--r--com32/gplinclude/acpi/facs.h2
-rw-r--r--com32/gplinclude/acpi/fadt.h10
-rw-r--r--com32/gplinclude/acpi/madt.h2
-rw-r--r--com32/gplinclude/acpi/sbst.h2
-rw-r--r--com32/gplinclude/acpi/ssdt.h2
-rw-r--r--com32/gplinclude/acpi/xsdt.h2
8 files changed, 12 insertions, 12 deletions
diff --git a/com32/gplinclude/acpi/dsdt.h b/com32/gplinclude/acpi/dsdt.h
index a90b5ad9..84c23c01 100644
--- a/com32/gplinclude/acpi/dsdt.h
+++ b/com32/gplinclude/acpi/dsdt.h
@@ -18,7 +18,7 @@
#define DSDT "DSDT"
typedef struct {
- uint8_t *address;
+ uint64_t *address;
s_acpi_description_header header;
uint8_t *definition_block;
bool valid;
diff --git a/com32/gplinclude/acpi/ecdt.h b/com32/gplinclude/acpi/ecdt.h
index e2a486a0..57d46b9e 100644
--- a/com32/gplinclude/acpi/ecdt.h
+++ b/com32/gplinclude/acpi/ecdt.h
@@ -21,7 +21,7 @@
#define EC_ID_OFFSET 65
typedef struct {
- uint8_t *address;
+ uint64_t *address;
s_acpi_description_header header;
bool valid;
uint32_t warning_energy_level;
diff --git a/com32/gplinclude/acpi/facs.h b/com32/gplinclude/acpi/facs.h
index 0601f1f0..b1f06a90 100644
--- a/com32/gplinclude/acpi/facs.h
+++ b/com32/gplinclude/acpi/facs.h
@@ -25,7 +25,7 @@
#define OWNED 1<<1
typedef struct {
- uint8_t *address;
+ uint64_t *address;
uint8_t signature[4+1];
uint8_t length;
uint32_t hardware_signature;
diff --git a/com32/gplinclude/acpi/fadt.h b/com32/gplinclude/acpi/fadt.h
index e71f2554..b645710b 100644
--- a/com32/gplinclude/acpi/fadt.h
+++ b/com32/gplinclude/acpi/fadt.h
@@ -61,11 +61,11 @@ enum { PM_UNSPECIFIED = 0,
#define FORCE_APIC_PHYSICAL_DESTINATION_MODE 1<<19
typedef struct {
- uint8_t *address;
+ uint64_t *address;
s_acpi_description_header header;
bool valid;
- uint8_t *firmware_ctrl;
- uint8_t *dsdt_address;
+ uint32_t *firmware_ctrl;
+ uint32_t *dsdt_address;
uint8_t reserved;
uint8_t prefered_pm_profile;
uint16_t sci_int;
@@ -105,8 +105,8 @@ typedef struct {
s_gas reset_reg;
uint8_t reset_value;
uint8_t reserved_3[3];
- uint8_t *x_firmware_ctrl;
- uint8_t *x_dsdt;
+ uint64_t *x_firmware_ctrl;
+ uint64_t *x_dsdt;
s_gas x_pm1a_evt_blk;
s_gas x_pm1b_evt_blk;
s_gas x_pm1a_cnt_blk;
diff --git a/com32/gplinclude/acpi/madt.h b/com32/gplinclude/acpi/madt.h
index 39c25a70..bf464257 100644
--- a/com32/gplinclude/acpi/madt.h
+++ b/com32/gplinclude/acpi/madt.h
@@ -129,7 +129,7 @@ typedef struct {
} __attribute__ ((packed)) s_local_sapic;
typedef struct {
- uint8_t *address;
+ uint64_t *address;
s_acpi_description_header header;
uint32_t local_apic_address;
uint32_t flags;
diff --git a/com32/gplinclude/acpi/sbst.h b/com32/gplinclude/acpi/sbst.h
index 4ae785b6..2fe24d6b 100644
--- a/com32/gplinclude/acpi/sbst.h
+++ b/com32/gplinclude/acpi/sbst.h
@@ -18,7 +18,7 @@
#define SBST "SBST"
typedef struct {
- uint8_t *address;
+ uint64_t *address;
s_acpi_description_header header;
bool valid;
uint32_t warning_energy_level;
diff --git a/com32/gplinclude/acpi/ssdt.h b/com32/gplinclude/acpi/ssdt.h
index 93eb020e..436caefe 100644
--- a/com32/gplinclude/acpi/ssdt.h
+++ b/com32/gplinclude/acpi/ssdt.h
@@ -19,7 +19,7 @@
#define PSDT "PSDT"
typedef struct {
- uint8_t *address;
+ uint64_t *address;
s_acpi_description_header header;
uint8_t *definition_block;
bool valid;
diff --git a/com32/gplinclude/acpi/xsdt.h b/com32/gplinclude/acpi/xsdt.h
index 4d4ca0c9..b23cbc88 100644
--- a/com32/gplinclude/acpi/xsdt.h
+++ b/com32/gplinclude/acpi/xsdt.h
@@ -22,7 +22,7 @@ enum { XSDT_TABLE_FOUND };
typedef struct {
uint8_t *address;
s_acpi_description_header header;
- uint8_t *entry[255];
+ uint64_t *entry[255];
uint8_t entry_count;
bool valid;
} s_xsdt;