diff options
author | Bob Moore <robert.moore@intel.com> | 2008-04-10 11:06:37 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-04-22 14:29:22 -0400 |
commit | a4df451a1055d97726ab890249bc3f941906fa75 (patch) | |
tree | bb0702e2b5c95c1bf71ef397323a59ca40db5411 /include | |
parent | a69c77c72094bfda1ed02336ec9a1bae186fd2fc (diff) |
ACPICA: Removed obsolete ACPI_NO_INTEGER64_SUPPORT define
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')
-rw-r--r-- | include/acpi/acmacros.h | 12 | ||||
-rw-r--r-- | include/acpi/actypes.h | 23 |
2 files changed, 4 insertions, 31 deletions
diff --git a/include/acpi/acmacros.h b/include/acpi/acmacros.h index 99d171c87c84..401228d34f13 100644 --- a/include/acpi/acmacros.h +++ b/include/acpi/acmacros.h | |||
@@ -61,21 +61,11 @@ | |||
61 | 61 | ||
62 | #define ACPI_ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0])) | 62 | #define ACPI_ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0])) |
63 | 63 | ||
64 | #ifdef ACPI_NO_INTEGER64_SUPPORT | ||
65 | /* | 64 | /* |
66 | * acpi_integer is 32-bits, no 64-bit support on this platform | 65 | * Full 64-bit integer must be available on both 32-bit and 64-bit platforms |
67 | */ | ||
68 | #define ACPI_LODWORD(l) ((u32)(l)) | ||
69 | #define ACPI_HIDWORD(l) ((u32)(0)) | ||
70 | |||
71 | #else | ||
72 | |||
73 | /* | ||
74 | * Full 64-bit address/integer on both 32-bit and 64-bit platforms | ||
75 | */ | 66 | */ |
76 | #define ACPI_LODWORD(l) ((u32)(u64)(l)) | 67 | #define ACPI_LODWORD(l) ((u32)(u64)(l)) |
77 | #define ACPI_HIDWORD(l) ((u32)(((*(struct uint64_struct *)(void *)(&l))).hi)) | 68 | #define ACPI_HIDWORD(l) ((u32)(((*(struct uint64_struct *)(void *)(&l))).hi)) |
78 | #endif | ||
79 | 69 | ||
80 | /* | 70 | /* |
81 | * printf() format helpers | 71 | * printf() format helpers |
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h index e73a38939120..6182b57590ef 100644 --- a/include/acpi/actypes.h +++ b/include/acpi/actypes.h | |||
@@ -323,27 +323,11 @@ struct uint32_struct { | |||
323 | #define acpi_semaphore void * | 323 | #define acpi_semaphore void * |
324 | 324 | ||
325 | /* | 325 | /* |
326 | * Acpi integer width. In ACPI version 1, integers are | 326 | * Acpi integer width. In ACPI version 1, integers are 32 bits. In ACPI |
327 | * 32 bits. In ACPI version 2, integers are 64 bits. | 327 | * version 2, integers are 64 bits. Note that this pertains to the ACPI integer |
328 | * Note that this pertains to the ACPI integer type only, not | 328 | * type only, not other integers used in the implementation of the ACPI CA |
329 | * other integers used in the implementation of the ACPI CA | ||
330 | * subsystem. | 329 | * subsystem. |
331 | */ | 330 | */ |
332 | #ifdef ACPI_NO_INTEGER64_SUPPORT | ||
333 | |||
334 | /* 32-bit integers only, no 64-bit support */ | ||
335 | |||
336 | typedef u32 acpi_integer; | ||
337 | #define ACPI_INTEGER_MAX ACPI_UINT32_MAX | ||
338 | #define ACPI_INTEGER_BIT_SIZE 32 | ||
339 | #define ACPI_MAX_DECIMAL_DIGITS 10 /* 2^32 = 4,294,967,296 */ | ||
340 | |||
341 | #define ACPI_USE_NATIVE_DIVIDE /* Use compiler native 32-bit divide */ | ||
342 | |||
343 | #else | ||
344 | |||
345 | /* 64-bit integers */ | ||
346 | |||
347 | typedef unsigned long long acpi_integer; | 331 | typedef unsigned long long acpi_integer; |
348 | #define ACPI_INTEGER_MAX ACPI_UINT64_MAX | 332 | #define ACPI_INTEGER_MAX ACPI_UINT64_MAX |
349 | #define ACPI_INTEGER_BIT_SIZE 64 | 333 | #define ACPI_INTEGER_BIT_SIZE 64 |
@@ -352,7 +336,6 @@ typedef unsigned long long acpi_integer; | |||
352 | #if ACPI_MACHINE_WIDTH == 64 | 336 | #if ACPI_MACHINE_WIDTH == 64 |
353 | #define ACPI_USE_NATIVE_DIVIDE /* Use compiler native 64-bit divide */ | 337 | #define ACPI_USE_NATIVE_DIVIDE /* Use compiler native 64-bit divide */ |
354 | #endif | 338 | #endif |
355 | #endif | ||
356 | 339 | ||
357 | #define ACPI_MAX64_DECIMAL_DIGITS 20 | 340 | #define ACPI_MAX64_DECIMAL_DIGITS 20 |
358 | #define ACPI_MAX32_DECIMAL_DIGITS 10 | 341 | #define ACPI_MAX32_DECIMAL_DIGITS 10 |