aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi/platform
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2005-10-21 00:00:00 -0400
committerLen Brown <len.brown@intel.com>2005-12-10 00:22:54 -0500
commit0897831bb54eb36fd9e2a22da7f0f64be1b20d09 (patch)
tree8d77687ce8ebcfb62d6012d2d3c44f6a904b3c15 /include/acpi/platform
parent50eca3eb89d73d9f0aa070b126c7ee6a616016ab (diff)
[ACPI] ACPICA 20051021
Implemented support for the EM64T and other x86_64 processors. This essentially entails recognizing that these processors support non-aligned memory transfers. Previously, all 64-bit processors were assumed to lack hardware support for non-aligned transfers. Completed conversion of the Resource Manager to nearly full table-driven operation. Specifically, the resource conversion code (convert AML to internal format and the reverse) and the debug code to dump internal resource descriptors are fully table-driven, reducing code and data size and improving maintainability. The OSL interfaces for Acquire and Release Lock now use a 64-bit flag word on 64-bit processors instead of a fixed 32-bit word. (Alexey Starikovskiy) Implemented support within the resource conversion code for the Type-Specific byte within the various ACPI 3.0 *WordSpace macros. Fixed some issues within the resource conversion code for the type-specific flags for both Memory and I/O address resource descriptors. For Memory, implemented support for the MTP and TTP flags. For I/O, split the TRS and TTP flags into two separate fields. Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi/platform')
-rw-r--r--include/acpi/platform/acenv.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/acpi/platform/acenv.h b/include/acpi/platform/acenv.h
index 08539125696..53aa997f05f 100644
--- a/include/acpi/platform/acenv.h
+++ b/include/acpi/platform/acenv.h
@@ -206,6 +206,8 @@
206 * 206 *
207 *****************************************************************************/ 207 *****************************************************************************/
208 208
209#define ACPI_IS_ASCII(c) ((c) < 0x80)
210
209#ifdef ACPI_USE_SYSTEM_CLIBRARY 211#ifdef ACPI_USE_SYSTEM_CLIBRARY
210/* 212/*
211 * Use the standard C library headers. 213 * Use the standard C library headers.
@@ -235,7 +237,7 @@
235#define ACPI_STRCAT(d,s) (void) strcat((d), (s)) 237#define ACPI_STRCAT(d,s) (void) strcat((d), (s))
236#define ACPI_STRNCAT(d,s,n) strncat((d), (s), (acpi_size)(n)) 238#define ACPI_STRNCAT(d,s,n) strncat((d), (s), (acpi_size)(n))
237#define ACPI_STRTOUL(d,s,n) strtoul((d), (s), (acpi_size)(n)) 239#define ACPI_STRTOUL(d,s,n) strtoul((d), (s), (acpi_size)(n))
238#define ACPI_MEMCMP(s1,s2,n) memcmp((s1), (s2), (acpi_size)(n)) 240#define ACPI_MEMCMP(s1,s2,n) memcmp((const char *)(s1), (const char *)(s2), (acpi_size)(n))
239#define ACPI_MEMCPY(d,s,n) (void) memcpy((d), (s), (acpi_size)(n)) 241#define ACPI_MEMCPY(d,s,n) (void) memcpy((d), (s), (acpi_size)(n))
240#define ACPI_MEMSET(d,s,n) (void) memset((d), (s), (acpi_size)(n)) 242#define ACPI_MEMSET(d,s,n) (void) memset((d), (s), (acpi_size)(n))
241 243
@@ -247,7 +249,6 @@
247#define ACPI_IS_UPPER(i) isupper((int) (i)) 249#define ACPI_IS_UPPER(i) isupper((int) (i))
248#define ACPI_IS_PRINT(i) isprint((int) (i)) 250#define ACPI_IS_PRINT(i) isprint((int) (i))
249#define ACPI_IS_ALPHA(i) isalpha((int) (i)) 251#define ACPI_IS_ALPHA(i) isalpha((int) (i))
250#define ACPI_IS_ASCII(i) isascii((int) (i))
251 252
252#else 253#else
253 254
@@ -274,8 +275,8 @@ typedef char *va_list;
274/* 275/*
275 * Storage alignment properties 276 * Storage alignment properties
276 */ 277 */
277#define _AUPBND (sizeof (acpi_native_int) - 1) 278#define _AUPBND (sizeof (acpi_native_uint) - 1)
278#define _ADNBND (sizeof (acpi_native_int) - 1) 279#define _ADNBND (sizeof (acpi_native_uint) - 1)
279 280
280/* 281/*
281 * Variable argument list macro definitions 282 * Variable argument list macro definitions
@@ -297,7 +298,7 @@ typedef char *va_list;
297#define ACPI_STRCAT(d,s) (void) acpi_ut_strcat ((d), (s)) 298#define ACPI_STRCAT(d,s) (void) acpi_ut_strcat ((d), (s))
298#define ACPI_STRNCAT(d,s,n) acpi_ut_strncat ((d), (s), (acpi_size)(n)) 299#define ACPI_STRNCAT(d,s,n) acpi_ut_strncat ((d), (s), (acpi_size)(n))
299#define ACPI_STRTOUL(d,s,n) acpi_ut_strtoul ((d), (s), (acpi_size)(n)) 300#define ACPI_STRTOUL(d,s,n) acpi_ut_strtoul ((d), (s), (acpi_size)(n))
300#define ACPI_MEMCMP(s1,s2,n) acpi_ut_memcmp((s1), (s2), (acpi_size)(n)) 301#define ACPI_MEMCMP(s1,s2,n) acpi_ut_memcmp((const char *)(s1), (const char *)(s2), (acpi_size)(n))
301#define ACPI_MEMCPY(d,s,n) (void) acpi_ut_memcpy ((d), (s), (acpi_size)(n)) 302#define ACPI_MEMCPY(d,s,n) (void) acpi_ut_memcpy ((d), (s), (acpi_size)(n))
302#define ACPI_MEMSET(d,v,n) (void) acpi_ut_memset ((d), (v), (acpi_size)(n)) 303#define ACPI_MEMSET(d,v,n) (void) acpi_ut_memset ((d), (v), (acpi_size)(n))
303#define ACPI_TOUPPER acpi_ut_to_upper 304#define ACPI_TOUPPER acpi_ut_to_upper