aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/acglobal.h8
-rw-r--r--include/acpi/acmacros.h10
-rw-r--r--include/acpi/actypes.h2
3 files changed, 15 insertions, 5 deletions
diff --git a/include/acpi/acglobal.h b/include/acpi/acglobal.h
index 862468616217..86cff21d9568 100644
--- a/include/acpi/acglobal.h
+++ b/include/acpi/acglobal.h
@@ -267,8 +267,6 @@ extern char const *acpi_gbl_exception_names_ctrl[];
267 * 267 *
268 ****************************************************************************/ 268 ****************************************************************************/
269 269
270#define NUM_NS_TYPES ACPI_TYPE_INVALID+1
271
272#if !defined (ACPI_NO_METHOD_EXECUTION) || defined (ACPI_CONSTANT_EVAL_ONLY) 270#if !defined (ACPI_NO_METHOD_EXECUTION) || defined (ACPI_CONSTANT_EVAL_ONLY)
273#define NUM_PREDEFINED_NAMES 10 271#define NUM_PREDEFINED_NAMES 10
274#else 272#else
@@ -279,7 +277,7 @@ ACPI_EXTERN struct acpi_namespace_node acpi_gbl_root_node_struct;
279ACPI_EXTERN struct acpi_namespace_node *acpi_gbl_root_node; 277ACPI_EXTERN struct acpi_namespace_node *acpi_gbl_root_node;
280ACPI_EXTERN struct acpi_namespace_node *acpi_gbl_fadt_gpe_device; 278ACPI_EXTERN struct acpi_namespace_node *acpi_gbl_fadt_gpe_device;
281 279
282extern const u8 acpi_gbl_ns_properties[NUM_NS_TYPES]; 280extern const u8 acpi_gbl_ns_properties[ACPI_NUM_NS_TYPES];
283extern const struct acpi_predefined_names 281extern const struct acpi_predefined_names
284 acpi_gbl_pre_defined_names[NUM_PREDEFINED_NAMES]; 282 acpi_gbl_pre_defined_names[NUM_PREDEFINED_NAMES];
285 283
@@ -287,8 +285,8 @@ extern const struct acpi_predefined_names
287ACPI_EXTERN u32 acpi_gbl_current_node_count; 285ACPI_EXTERN u32 acpi_gbl_current_node_count;
288ACPI_EXTERN u32 acpi_gbl_current_node_size; 286ACPI_EXTERN u32 acpi_gbl_current_node_size;
289ACPI_EXTERN u32 acpi_gbl_max_concurrent_node_count; 287ACPI_EXTERN u32 acpi_gbl_max_concurrent_node_count;
290ACPI_EXTERN acpi_size acpi_gbl_entry_stack_pointer; 288ACPI_EXTERN acpi_size *acpi_gbl_entry_stack_pointer;
291ACPI_EXTERN acpi_size acpi_gbl_lowest_stack_pointer; 289ACPI_EXTERN acpi_size *acpi_gbl_lowest_stack_pointer;
292ACPI_EXTERN u32 acpi_gbl_deepest_nesting; 290ACPI_EXTERN u32 acpi_gbl_deepest_nesting;
293#endif 291#endif
294 292
diff --git a/include/acpi/acmacros.h b/include/acpi/acmacros.h
index 401228d34f13..dc6a037311db 100644
--- a/include/acpi/acmacros.h
+++ b/include/acpi/acmacros.h
@@ -65,7 +65,11 @@
65 * Full 64-bit integer must be available on both 32-bit and 64-bit platforms 65 * Full 64-bit integer must be available on both 32-bit and 64-bit platforms
66 */ 66 */
67#define ACPI_LODWORD(l) ((u32)(u64)(l)) 67#define ACPI_LODWORD(l) ((u32)(u64)(l))
68#define ACPI_HIDWORD(l) ((u16)((((u64)(l)) >> 32) & 0xFFFFFFFF))
69
70#if 0
68#define ACPI_HIDWORD(l) ((u32)(((*(struct uint64_struct *)(void *)(&l))).hi)) 71#define ACPI_HIDWORD(l) ((u32)(((*(struct uint64_struct *)(void *)(&l))).hi))
72#endif
69 73
70/* 74/*
71 * printf() format helpers 75 * printf() format helpers
@@ -75,6 +79,12 @@
75 79
76#define ACPI_FORMAT_UINT64(i) ACPI_HIDWORD(i),ACPI_LODWORD(i) 80#define ACPI_FORMAT_UINT64(i) ACPI_HIDWORD(i),ACPI_LODWORD(i)
77 81
82#if ACPI_MACHINE_WIDTH == 64
83#define ACPI_FORMAT_NATIVE_UINT(i) ACPI_FORMAT_UINT64(i)
84#else
85#define ACPI_FORMAT_NATIVE_UINT(i) 0, (i)
86#endif
87
78/* 88/*
79 * Extract data using a pointer. Any more than a byte and we 89 * Extract data using a pointer. Any more than a byte and we
80 * get into potential aligment issues -- see the STORE macros below. 90 * get into potential aligment issues -- see the STORE macros below.
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h
index 766178c6cc81..bb44700680a3 100644
--- a/include/acpi/actypes.h
+++ b/include/acpi/actypes.h
@@ -477,6 +477,8 @@ typedef u32 acpi_object_type;
477#define ACPI_TYPE_INVALID 0x1E 477#define ACPI_TYPE_INVALID 0x1E
478#define ACPI_TYPE_NOT_FOUND 0xFF 478#define ACPI_TYPE_NOT_FOUND 0xFF
479 479
480#define ACPI_NUM_NS_TYPES (ACPI_TYPE_INVALID + 1)
481
480/* 482/*
481 * All I/O 483 * All I/O
482 */ 484 */