Rev 1498 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1498 | Rev 2216 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | 6 | ||
7 | /****************************************************************************** |
7 | /****************************************************************************** |
8 | * |
8 | * |
9 | * 1. Copyright Notice |
9 | * 1. Copyright Notice |
10 | * |
10 | * |
11 | * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
11 | * Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
12 | * All rights reserved. |
12 | * All rights reserved. |
13 | * |
13 | * |
14 | * 2. License |
14 | * 2. License |
15 | * |
15 | * |
Line 145... | Line 145... | ||
145 | #define strtoul simple_strtoul |
145 | #define strtoul simple_strtoul |
Line 146... | Line 146... | ||
146 | 146 | ||
147 | #define ACPI_CACHE_T struct kmem_cache |
147 | #define ACPI_CACHE_T struct kmem_cache |
148 | #define ACPI_SPINLOCK spinlock_t * |
148 | #define ACPI_SPINLOCK spinlock_t * |
149 | #define ACPI_CPU_FLAGS unsigned long |
- | |
Line 150... | Line 149... | ||
150 | #define ACPI_THREAD_ID struct task_struct * |
149 | #define ACPI_CPU_FLAGS unsigned long |
Line 151... | Line 150... | ||
151 | 150 | ||
152 | #else /* !__KERNEL__ */ |
151 | #else /* !__KERNEL__ */ |
Line 158... | Line 157... | ||
158 | #include |
157 | #include |
Line 159... | Line 158... | ||
159 | 158 | ||
Line 160... | Line 159... | ||
160 | /* Host-dependent types and defines for user-space ACPICA */ |
159 | /* Host-dependent types and defines for user-space ACPICA */ |
161 | - | ||
Line 162... | Line 160... | ||
162 | #define ACPI_FLUSH_CPU_CACHE() |
160 | |
163 | #define ACPI_THREAD_ID pthread_t |
161 | #define ACPI_FLUSH_CPU_CACHE() |
164 | 162 | ||
165 | #if defined(__ia64__) || defined(__x86_64__) |
163 | #if defined(__ia64__) || defined(__x86_64__) |
- | 164 | #define ACPI_MACHINE_WIDTH 64 |
|
166 | #define ACPI_MACHINE_WIDTH 64 |
165 | #define COMPILER_DEPENDENT_INT64 long |
167 | #define COMPILER_DEPENDENT_INT64 long |
166 | #define COMPILER_DEPENDENT_UINT64 unsigned long |
168 | #define COMPILER_DEPENDENT_UINT64 unsigned long |
167 | #define ACPI_CAST_PTHREAD_T(pthread) ((ACPI_THREAD_ID) (pthread)) |
169 | #else |
168 | #else |
170 | #define ACPI_MACHINE_WIDTH 32 |
169 | #define ACPI_MACHINE_WIDTH 32 |
- | 170 | #define COMPILER_DEPENDENT_INT64 long long |
|
171 | #define COMPILER_DEPENDENT_INT64 long long |
171 | #define COMPILER_DEPENDENT_UINT64 unsigned long long |
Line 172... | Line 172... | ||
172 | #define COMPILER_DEPENDENT_UINT64 unsigned long long |
172 | #define ACPI_USE_NATIVE_DIVIDE |
173 | #define ACPI_USE_NATIVE_DIVIDE |
173 | #define ACPI_CAST_PTHREAD_T(pthread) ((ACPI_THREAD_ID) (UINT32) (void *) (pthread)) |
174 | #endif |
174 | #endif |