aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi/acmacros.h
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2008-04-10 11:06:40 -0400
committerLen Brown <len.brown@intel.com>2008-04-22 14:29:27 -0400
commitb7f9f04228eae2cf5adc2ffeb494d4970a8dd8a5 (patch)
tree729bc503991a07c0706737ba0cfdd1ab639a8252 /include/acpi/acmacros.h
parent1d18c05825c3f2b8933a7fc7f7528881e98deb04 (diff)
ACPICA: Cosmetic changes only, no functional changes
Lint changes, fix compiler warnings, etc. Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi/acmacros.h')
-rw-r--r--include/acpi/acmacros.h10
1 files changed, 10 insertions, 0 deletions
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.