提交 a4df451a 编写于 作者: B Bob Moore 提交者: Len Brown

ACPICA: Removed obsolete ACPI_NO_INTEGER64_SUPPORT define

Signed-off-by: NBob Moore <robert.moore@intel.com>
Signed-off-by: NAlexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 a69c77c7
...@@ -61,21 +61,11 @@ ...@@ -61,21 +61,11 @@
#define ACPI_ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0])) #define ACPI_ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0]))
#ifdef ACPI_NO_INTEGER64_SUPPORT
/* /*
* acpi_integer is 32-bits, no 64-bit support on this platform * Full 64-bit integer must be available on both 32-bit and 64-bit platforms
*/
#define ACPI_LODWORD(l) ((u32)(l))
#define ACPI_HIDWORD(l) ((u32)(0))
#else
/*
* Full 64-bit address/integer on both 32-bit and 64-bit platforms
*/ */
#define ACPI_LODWORD(l) ((u32)(u64)(l)) #define ACPI_LODWORD(l) ((u32)(u64)(l))
#define ACPI_HIDWORD(l) ((u32)(((*(struct uint64_struct *)(void *)(&l))).hi)) #define ACPI_HIDWORD(l) ((u32)(((*(struct uint64_struct *)(void *)(&l))).hi))
#endif
/* /*
* printf() format helpers * printf() format helpers
......
...@@ -323,27 +323,11 @@ struct uint32_struct { ...@@ -323,27 +323,11 @@ struct uint32_struct {
#define acpi_semaphore void * #define acpi_semaphore void *
/* /*
* Acpi integer width. In ACPI version 1, integers are * Acpi integer width. In ACPI version 1, integers are 32 bits. In ACPI
* 32 bits. In ACPI version 2, integers are 64 bits. * version 2, integers are 64 bits. Note that this pertains to the ACPI integer
* Note that this pertains to the ACPI integer type only, not * type only, not other integers used in the implementation of the ACPI CA
* other integers used in the implementation of the ACPI CA
* subsystem. * subsystem.
*/ */
#ifdef ACPI_NO_INTEGER64_SUPPORT
/* 32-bit integers only, no 64-bit support */
typedef u32 acpi_integer;
#define ACPI_INTEGER_MAX ACPI_UINT32_MAX
#define ACPI_INTEGER_BIT_SIZE 32
#define ACPI_MAX_DECIMAL_DIGITS 10 /* 2^32 = 4,294,967,296 */
#define ACPI_USE_NATIVE_DIVIDE /* Use compiler native 32-bit divide */
#else
/* 64-bit integers */
typedef unsigned long long acpi_integer; typedef unsigned long long acpi_integer;
#define ACPI_INTEGER_MAX ACPI_UINT64_MAX #define ACPI_INTEGER_MAX ACPI_UINT64_MAX
#define ACPI_INTEGER_BIT_SIZE 64 #define ACPI_INTEGER_BIT_SIZE 64
...@@ -352,7 +336,6 @@ typedef unsigned long long acpi_integer; ...@@ -352,7 +336,6 @@ typedef unsigned long long acpi_integer;
#if ACPI_MACHINE_WIDTH == 64 #if ACPI_MACHINE_WIDTH == 64
#define ACPI_USE_NATIVE_DIVIDE /* Use compiler native 64-bit divide */ #define ACPI_USE_NATIVE_DIVIDE /* Use compiler native 64-bit divide */
#endif #endif
#endif
#define ACPI_MAX64_DECIMAL_DIGITS 20 #define ACPI_MAX64_DECIMAL_DIGITS 20
#define ACPI_MAX32_DECIMAL_DIGITS 10 #define ACPI_MAX32_DECIMAL_DIGITS 10
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册