diff options
Diffstat (limited to 'drivers/acpi/acpica/acmacros.h')
-rw-r--r-- | drivers/acpi/acpica/acmacros.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/acpi/acpica/acmacros.h b/drivers/acpi/acpica/acmacros.h index cf607fe69dbd..c240bdf824f2 100644 --- a/drivers/acpi/acpica/acmacros.h +++ b/drivers/acpi/acpica/acmacros.h | |||
@@ -63,23 +63,12 @@ | |||
63 | #define ACPI_SET64(ptr, val) (*ACPI_CAST64 (ptr) = (u64) (val)) | 63 | #define ACPI_SET64(ptr, val) (*ACPI_CAST64 (ptr) = (u64) (val)) |
64 | 64 | ||
65 | /* | 65 | /* |
66 | * printf() format helpers. These macros are workarounds for the difficulties | 66 | * printf() format helper. This macros is a workaround for the difficulties |
67 | * with emitting 64-bit integers and 64-bit pointers with the same code | 67 | * with emitting 64-bit integers and 64-bit pointers with the same code |
68 | * for both 32-bit and 64-bit hosts. | 68 | * for both 32-bit and 64-bit hosts. |
69 | */ | 69 | */ |
70 | #define ACPI_FORMAT_UINT64(i) ACPI_HIDWORD(i), ACPI_LODWORD(i) | 70 | #define ACPI_FORMAT_UINT64(i) ACPI_HIDWORD(i), ACPI_LODWORD(i) |
71 | 71 | ||
72 | #if ACPI_MACHINE_WIDTH == 64 | ||
73 | #define ACPI_FORMAT_NATIVE_UINT(i) ACPI_FORMAT_UINT64(i) | ||
74 | #define ACPI_FORMAT_TO_UINT(i) ACPI_FORMAT_UINT64(i) | ||
75 | #define ACPI_PRINTF_UINT "0x%8.8X%8.8X" | ||
76 | |||
77 | #else | ||
78 | #define ACPI_FORMAT_NATIVE_UINT(i) 0, (u32) (i) | ||
79 | #define ACPI_FORMAT_TO_UINT(i) (u32) (i) | ||
80 | #define ACPI_PRINTF_UINT "0x%8.8X" | ||
81 | #endif | ||
82 | |||
83 | /* | 72 | /* |
84 | * Macros for moving data around to/from buffers that are possibly unaligned. | 73 | * Macros for moving data around to/from buffers that are possibly unaligned. |
85 | * If the hardware supports the transfer of unaligned data, just do the store. | 74 | * If the hardware supports the transfer of unaligned data, just do the store. |