diff options
author | Bob Moore <robert.moore@intel.com> | 2006-10-03 00:00:00 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-04-01 01:26:39 -0500 |
commit | 8313524a0d466f451a62709aaedf988d8257b21c (patch) | |
tree | d612fc796ae07d8a39542c95eec0f5169c9f64eb /include | |
parent | ea936b78f46cbe089a4ac363e1682dee7d427096 (diff) |
ACPI: ACPICA 20060310
Tagged all external interfaces to the subsystem with the
new ACPI_EXPORT_SYMBOL macro. This macro can be defined
as necessary to assist kernel integration. For Linux,
the macro resolves to the EXPORT_SYMBOL macro. The default
definition is NULL.
Added the ACPI_THREAD_ID type for the return value from
acpi_os_get_thread_id(). This allows the host to define this
as necessary to simplify kernel integration. The default
definition is ACPI_NATIVE_UINT.
Valery Podrezov fixed two interpreter problems related
to error processing, the deletion of objects, and placing
invalid pointers onto the internal operator result stack.
http://bugzilla.kernel.org/show_bug.cgi?id=6028
http://bugzilla.kernel.org/show_bug.cgi?id=6151
Increased the reference count threshold where a warning is
emitted for large reference counts in order to eliminate
unnecessary warnings on systems with large namespaces
(especially 64-bit.) Increased the value from 0x400
to 0x800.
Due to universal disagreement as to the meaning of the
'c' in the calloc() function, the ACPI_MEM_CALLOCATE
macro has been renamed to ACPI_ALLOCATE_ZEROED so that the
purpose of the interface is 'clear'. ACPI_MEM_ALLOCATE and
ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and ACPI_FREE.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/acpi/acconfig.h | 6 | ||||
-rw-r--r-- | include/acpi/acdisasm.h | 23 | ||||
-rw-r--r-- | include/acpi/aclocal.h | 8 | ||||
-rw-r--r-- | include/acpi/acmacros.h | 12 | ||||
-rw-r--r-- | include/acpi/acnamesp.h | 5 | ||||
-rw-r--r-- | include/acpi/acpiosxf.h | 2 | ||||
-rw-r--r-- | include/acpi/actypes.h | 15 | ||||
-rw-r--r-- | include/acpi/amlresrc.h | 61 | ||||
-rw-r--r-- | include/acpi/platform/acenv.h | 6 | ||||
-rw-r--r-- | include/acpi/platform/aclinux.h | 19 |
10 files changed, 99 insertions, 58 deletions
diff --git a/include/acpi/acconfig.h b/include/acpi/acconfig.h index 788502256222..ebe793fc137f 100644 --- a/include/acpi/acconfig.h +++ b/include/acpi/acconfig.h | |||
@@ -63,7 +63,7 @@ | |||
63 | 63 | ||
64 | /* Current ACPICA subsystem version in YYYYMMDD format */ | 64 | /* Current ACPICA subsystem version in YYYYMMDD format */ |
65 | 65 | ||
66 | #define ACPI_CA_VERSION 0x20060217 | 66 | #define ACPI_CA_VERSION 0x20060310 |
67 | 67 | ||
68 | /* | 68 | /* |
69 | * OS name, used for the _OS object. The _OS object is essentially obsolete, | 69 | * OS name, used for the _OS object. The _OS object is essentially obsolete, |
@@ -102,9 +102,9 @@ | |||
102 | 102 | ||
103 | #define ACPI_MAX_SEMAPHORE_COUNT 256 | 103 | #define ACPI_MAX_SEMAPHORE_COUNT 256 |
104 | 104 | ||
105 | /* Max reference count (for debug only) */ | 105 | /* Maximum object reference count (detects object deletion issues) */ |
106 | 106 | ||
107 | #define ACPI_MAX_REFERENCE_COUNT 0x400 | 107 | #define ACPI_MAX_REFERENCE_COUNT 0x800 |
108 | 108 | ||
109 | /* Size of cached memory mapping for system memory operation region */ | 109 | /* Size of cached memory mapping for system memory operation region */ |
110 | 110 | ||
diff --git a/include/acpi/acdisasm.h b/include/acpi/acdisasm.h index 0727c132bd3c..f004461a7753 100644 --- a/include/acpi/acdisasm.h +++ b/include/acpi/acdisasm.h | |||
@@ -50,6 +50,7 @@ | |||
50 | #define BLOCK_PAREN 1 | 50 | #define BLOCK_PAREN 1 |
51 | #define BLOCK_BRACE 2 | 51 | #define BLOCK_BRACE 2 |
52 | #define BLOCK_COMMA_LIST 4 | 52 | #define BLOCK_COMMA_LIST 4 |
53 | #define ACPI_DEFAULT_RESNAME *(u32 *) "__RD" | ||
53 | 54 | ||
54 | struct acpi_external_list { | 55 | struct acpi_external_list { |
55 | char *path; | 56 | char *path; |
@@ -78,6 +79,11 @@ typedef | |||
78 | acpi_status(*asl_walk_callback) (union acpi_parse_object * op, | 79 | acpi_status(*asl_walk_callback) (union acpi_parse_object * op, |
79 | u32 level, void *context); | 80 | u32 level, void *context); |
80 | 81 | ||
82 | struct acpi_resource_tag { | ||
83 | u32 bit_index; | ||
84 | char *tag; | ||
85 | }; | ||
86 | |||
81 | /* | 87 | /* |
82 | * dmwalk | 88 | * dmwalk |
83 | */ | 89 | */ |
@@ -85,6 +91,11 @@ void | |||
85 | acpi_dm_disassemble(struct acpi_walk_state *walk_state, | 91 | acpi_dm_disassemble(struct acpi_walk_state *walk_state, |
86 | union acpi_parse_object *origin, u32 num_opcodes); | 92 | union acpi_parse_object *origin, u32 num_opcodes); |
87 | 93 | ||
94 | void | ||
95 | acpi_dm_walk_parse_tree(union acpi_parse_object *op, | ||
96 | asl_walk_callback descending_callback, | ||
97 | asl_walk_callback ascending_callback, void *context); | ||
98 | |||
88 | /* | 99 | /* |
89 | * dmopcode | 100 | * dmopcode |
90 | */ | 101 | */ |
@@ -167,6 +178,7 @@ void acpi_dm_dump_integer64(u64 value, char *name); | |||
167 | 178 | ||
168 | void | 179 | void |
169 | acpi_dm_resource_template(struct acpi_op_walk_info *info, | 180 | acpi_dm_resource_template(struct acpi_op_walk_info *info, |
181 | union acpi_parse_object *op, | ||
170 | u8 * byte_data, u32 byte_count); | 182 | u8 * byte_data, u32 byte_count); |
171 | 183 | ||
172 | u8 acpi_dm_is_resource_template(union acpi_parse_object *op); | 184 | u8 acpi_dm_is_resource_template(union acpi_parse_object *op); |
@@ -177,6 +189,8 @@ void acpi_dm_bit_list(u16 mask); | |||
177 | 189 | ||
178 | void acpi_dm_decode_attribute(u8 attribute); | 190 | void acpi_dm_decode_attribute(u8 attribute); |
179 | 191 | ||
192 | void acpi_dm_descriptor_name(void); | ||
193 | |||
180 | /* | 194 | /* |
181 | * dmresrcl | 195 | * dmresrcl |
182 | */ | 196 | */ |
@@ -251,4 +265,13 @@ acpi_dm_vendor_small_descriptor(union aml_resource *resource, | |||
251 | */ | 265 | */ |
252 | void acpi_dm_add_to_external_list(char *path); | 266 | void acpi_dm_add_to_external_list(char *path); |
253 | 267 | ||
268 | /* | ||
269 | * dmrestag | ||
270 | */ | ||
271 | void acpi_dm_find_resources(union acpi_parse_object *root); | ||
272 | |||
273 | void | ||
274 | acpi_dm_check_resource_reference(union acpi_parse_object *op, | ||
275 | struct acpi_walk_state *walk_state); | ||
276 | |||
254 | #endif /* __ACDISASM_H__ */ | 277 | #endif /* __ACDISASM_H__ */ |
diff --git a/include/acpi/aclocal.h b/include/acpi/aclocal.h index 8361820d2970..94fbf96ed3df 100644 --- a/include/acpi/aclocal.h +++ b/include/acpi/aclocal.h | |||
@@ -129,7 +129,7 @@ typedef u8 acpi_owner_id; | |||
129 | struct acpi_mutex_info { | 129 | struct acpi_mutex_info { |
130 | acpi_mutex mutex; | 130 | acpi_mutex mutex; |
131 | u32 use_count; | 131 | u32 use_count; |
132 | u32 thread_id; | 132 | acpi_thread_id thread_id; |
133 | }; | 133 | }; |
134 | 134 | ||
135 | /* Lock flag parameter for various interfaces */ | 135 | /* Lock flag parameter for various interfaces */ |
@@ -181,9 +181,9 @@ struct acpi_namespace_node { | |||
181 | u8 owner_id; /* Who created this node */ | 181 | u8 owner_id; /* Who created this node */ |
182 | u8 flags; | 182 | u8 flags; |
183 | 183 | ||
184 | /* Fields used by the ASL compiler only */ | 184 | /* Fields used by the ASL compiler and disassembler only */ |
185 | 185 | ||
186 | #ifdef ACPI_ASL_COMPILER | 186 | #ifdef ACPI_LARGE_NAMESPACE_NODE |
187 | u32 value; | 187 | u32 value; |
188 | union acpi_parse_object *op; | 188 | union acpi_parse_object *op; |
189 | #endif | 189 | #endif |
@@ -479,7 +479,7 @@ struct acpi_pscope_state { | |||
479 | struct acpi_thread_state { | 479 | struct acpi_thread_state { |
480 | ACPI_STATE_COMMON struct acpi_walk_state *walk_state_list; /* Head of list of walk_states for this thread */ | 480 | ACPI_STATE_COMMON struct acpi_walk_state *walk_state_list; /* Head of list of walk_states for this thread */ |
481 | union acpi_operand_object *acquired_mutex_list; /* List of all currently acquired mutexes */ | 481 | union acpi_operand_object *acquired_mutex_list; /* List of all currently acquired mutexes */ |
482 | u32 thread_id; /* Running thread ID */ | 482 | acpi_thread_id thread_id; /* Running thread ID */ |
483 | u8 current_sync_level; /* Mutex Sync (nested acquire) level */ | 483 | u8 current_sync_level; /* Mutex Sync (nested acquire) level */ |
484 | }; | 484 | }; |
485 | 485 | ||
diff --git a/include/acpi/acmacros.h b/include/acpi/acmacros.h index dd5644dbe946..c8aa73fc6dd3 100644 --- a/include/acpi/acmacros.h +++ b/include/acpi/acmacros.h | |||
@@ -713,18 +713,18 @@ | |||
713 | 713 | ||
714 | /* Memory allocation */ | 714 | /* Memory allocation */ |
715 | 715 | ||
716 | #define ACPI_MEM_ALLOCATE(a) acpi_ut_allocate((acpi_size)(a),_COMPONENT,_acpi_module_name,__LINE__) | 716 | #define ACPI_ALLOCATE(a) acpi_ut_allocate((acpi_size)(a),_COMPONENT,_acpi_module_name,__LINE__) |
717 | #define ACPI_MEM_CALLOCATE(a) acpi_ut_callocate((acpi_size)(a), _COMPONENT,_acpi_module_name,__LINE__) | 717 | #define ACPI_ALLOCATE_ZEROED(a) acpi_ut_callocate((acpi_size)(a), _COMPONENT,_acpi_module_name,__LINE__) |
718 | #define ACPI_MEM_FREE(a) acpi_os_free(a) | 718 | #define ACPI_FREE(a) acpi_os_free(a) |
719 | #define ACPI_MEM_TRACKING(a) | 719 | #define ACPI_MEM_TRACKING(a) |
720 | 720 | ||
721 | #else | 721 | #else |
722 | 722 | ||
723 | /* Memory allocation */ | 723 | /* Memory allocation */ |
724 | 724 | ||
725 | #define ACPI_MEM_ALLOCATE(a) acpi_ut_allocate_and_track((acpi_size)(a),_COMPONENT,_acpi_module_name,__LINE__) | 725 | #define ACPI_ALLOCATE(a) acpi_ut_allocate_and_track((acpi_size)(a),_COMPONENT,_acpi_module_name,__LINE__) |
726 | #define ACPI_MEM_CALLOCATE(a) acpi_ut_callocate_and_track((acpi_size)(a), _COMPONENT,_acpi_module_name,__LINE__) | 726 | #define ACPI_ALLOCATE_ZEROED(a) acpi_ut_callocate_and_track((acpi_size)(a), _COMPONENT,_acpi_module_name,__LINE__) |
727 | #define ACPI_MEM_FREE(a) acpi_ut_free_and_track(a,_COMPONENT,_acpi_module_name,__LINE__) | 727 | #define ACPI_FREE(a) acpi_ut_free_and_track(a,_COMPONENT,_acpi_module_name,__LINE__) |
728 | #define ACPI_MEM_TRACKING(a) a | 728 | #define ACPI_MEM_TRACKING(a) a |
729 | 729 | ||
730 | #endif /* ACPI_DBG_TRACK_ALLOCATIONS */ | 730 | #endif /* ACPI_DBG_TRACK_ALLOCATIONS */ |
diff --git a/include/acpi/acnamesp.h b/include/acpi/acnamesp.h index b667a804fc8a..132d64af24fe 100644 --- a/include/acpi/acnamesp.h +++ b/include/acpi/acnamesp.h | |||
@@ -63,6 +63,7 @@ | |||
63 | #define ACPI_NS_DONT_OPEN_SCOPE 0x02 | 63 | #define ACPI_NS_DONT_OPEN_SCOPE 0x02 |
64 | #define ACPI_NS_NO_PEER_SEARCH 0x04 | 64 | #define ACPI_NS_NO_PEER_SEARCH 0x04 |
65 | #define ACPI_NS_ERROR_IF_FOUND 0x08 | 65 | #define ACPI_NS_ERROR_IF_FOUND 0x08 |
66 | #define ACPI_NS_PREFIX_IS_SCOPE 0x10 | ||
66 | 67 | ||
67 | #define ACPI_NS_WALK_UNLOCK TRUE | 68 | #define ACPI_NS_WALK_UNLOCK TRUE |
68 | #define ACPI_NS_WALK_NO_UNLOCK FALSE | 69 | #define ACPI_NS_WALK_NO_UNLOCK FALSE |
@@ -184,6 +185,10 @@ acpi_ns_evaluate_relative(char *pathname, struct acpi_parameter_info *info); | |||
184 | */ | 185 | */ |
185 | u32 acpi_ns_opens_scope(acpi_object_type type); | 186 | u32 acpi_ns_opens_scope(acpi_object_type type); |
186 | 187 | ||
188 | void | ||
189 | acpi_ns_build_external_path(struct acpi_namespace_node *node, | ||
190 | acpi_size size, char *name_buffer); | ||
191 | |||
187 | char *acpi_ns_get_external_pathname(struct acpi_namespace_node *node); | 192 | char *acpi_ns_get_external_pathname(struct acpi_namespace_node *node); |
188 | 193 | ||
189 | char *acpi_ns_name_of_current_scope(struct acpi_walk_state *walk_state); | 194 | char *acpi_ns_name_of_current_scope(struct acpi_walk_state *walk_state); |
diff --git a/include/acpi/acpiosxf.h b/include/acpi/acpiosxf.h index 970e9a6372c3..91c3cdff28bb 100644 --- a/include/acpi/acpiosxf.h +++ b/include/acpi/acpiosxf.h | |||
@@ -161,7 +161,7 @@ acpi_os_remove_interrupt_handler(u32 gsi, acpi_osd_handler service_routine); | |||
161 | /* | 161 | /* |
162 | * Threads and Scheduling | 162 | * Threads and Scheduling |
163 | */ | 163 | */ |
164 | u32 acpi_os_get_thread_id(void); | 164 | acpi_thread_id acpi_os_get_thread_id(void); |
165 | 165 | ||
166 | acpi_status | 166 | acpi_status |
167 | acpi_os_queue_for_execution(u32 priority, | 167 | acpi_os_queue_for_execution(u32 priority, |
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h index 95c3c8b6d618..520f315dd53a 100644 --- a/include/acpi/actypes.h +++ b/include/acpi/actypes.h | |||
@@ -288,6 +288,21 @@ typedef acpi_native_uint acpi_size; | |||
288 | #define ACPI_UNUSED_VAR | 288 | #define ACPI_UNUSED_VAR |
289 | #endif | 289 | #endif |
290 | 290 | ||
291 | /* | ||
292 | * All ACPICA functions that are available to the rest of the kernel are | ||
293 | * tagged with this macro which can be defined as appropriate for the host. | ||
294 | */ | ||
295 | #ifndef ACPI_EXPORT_SYMBOL | ||
296 | #define ACPI_EXPORT_SYMBOL(symbol) | ||
297 | #endif | ||
298 | |||
299 | /* | ||
300 | * thread_id is returned by acpi_os_get_thread_id. | ||
301 | */ | ||
302 | #ifndef acpi_thread_id | ||
303 | #define acpi_thread_id acpi_native_uint | ||
304 | #endif | ||
305 | |||
291 | /******************************************************************************* | 306 | /******************************************************************************* |
292 | * | 307 | * |
293 | * Independent types | 308 | * Independent types |
diff --git a/include/acpi/amlresrc.h b/include/acpi/amlresrc.h index fb4735315ad3..e5b42eb38190 100644 --- a/include/acpi/amlresrc.h +++ b/include/acpi/amlresrc.h | |||
@@ -45,36 +45,36 @@ | |||
45 | #ifndef __AMLRESRC_H | 45 | #ifndef __AMLRESRC_H |
46 | #define __AMLRESRC_H | 46 | #define __AMLRESRC_H |
47 | 47 | ||
48 | #define ASL_RESNAME_ADDRESS "_ADR" | 48 | #define ACPI_RESTAG_ADDRESS "_ADR" |
49 | #define ASL_RESNAME_ALIGNMENT "_ALN" | 49 | #define ACPI_RESTAG_ALIGNMENT "_ALN" |
50 | #define ASL_RESNAME_ADDRESSSPACE "_ASI" | 50 | #define ACPI_RESTAG_ADDRESSSPACE "_ASI" |
51 | #define ASL_RESNAME_ACCESSSIZE "_ASZ" | 51 | #define ACPI_RESTAG_ACCESSSIZE "_ASZ" |
52 | #define ASL_RESNAME_TYPESPECIFICATTRIBUTES "_ATT" | 52 | #define ACPI_RESTAG_TYPESPECIFICATTRIBUTES "_ATT" |
53 | #define ASL_RESNAME_BASEADDRESS "_BAS" | 53 | #define ACPI_RESTAG_BASEADDRESS "_BAS" |
54 | #define ASL_RESNAME_BUSMASTER "_BM_" /* Master(1), Slave(0) */ | 54 | #define ACPI_RESTAG_BUSMASTER "_BM_" /* Master(1), Slave(0) */ |
55 | #define ASL_RESNAME_DECODE "_DEC" | 55 | #define ACPI_RESTAG_DECODE "_DEC" |
56 | #define ASL_RESNAME_DMA "_DMA" | 56 | #define ACPI_RESTAG_DMA "_DMA" |
57 | #define ASL_RESNAME_DMATYPE "_TYP" /* Compatible(0), A(1), B(2), F(3) */ | 57 | #define ACPI_RESTAG_DMATYPE "_TYP" /* Compatible(0), A(1), B(2), F(3) */ |
58 | #define ASL_RESNAME_GRANULARITY "_GRA" | 58 | #define ACPI_RESTAG_GRANULARITY "_GRA" |
59 | #define ASL_RESNAME_INTERRUPT "_INT" | 59 | #define ACPI_RESTAG_INTERRUPT "_INT" |
60 | #define ASL_RESNAME_INTERRUPTLEVEL "_LL_" /* active_lo(1), active_hi(0) */ | 60 | #define ACPI_RESTAG_INTERRUPTLEVEL "_LL_" /* active_lo(1), active_hi(0) */ |
61 | #define ASL_RESNAME_INTERRUPTSHARE "_SHR" /* Shareable(1), no_share(0) */ | 61 | #define ACPI_RESTAG_INTERRUPTSHARE "_SHR" /* Shareable(1), no_share(0) */ |
62 | #define ASL_RESNAME_INTERRUPTTYPE "_HE_" /* Edge(1), Level(0) */ | 62 | #define ACPI_RESTAG_INTERRUPTTYPE "_HE_" /* Edge(1), Level(0) */ |
63 | #define ASL_RESNAME_LENGTH "_LEN" | 63 | #define ACPI_RESTAG_LENGTH "_LEN" |
64 | #define ASL_RESNAME_MEMATTRIBUTES "_MTP" /* Memory(0), Reserved(1), ACPI(2), NVS(3) */ | 64 | #define ACPI_RESTAG_MEMATTRIBUTES "_MTP" /* Memory(0), Reserved(1), ACPI(2), NVS(3) */ |
65 | #define ASL_RESNAME_MEMTYPE "_MEM" /* non_cache(0), Cacheable(1) Cache+combine(2), Cache+prefetch(3) */ | 65 | #define ACPI_RESTAG_MEMTYPE "_MEM" /* non_cache(0), Cacheable(1) Cache+combine(2), Cache+prefetch(3) */ |
66 | #define ASL_RESNAME_MAXADDR "_MAX" | 66 | #define ACPI_RESTAG_MAXADDR "_MAX" |
67 | #define ASL_RESNAME_MINADDR "_MIN" | 67 | #define ACPI_RESTAG_MINADDR "_MIN" |
68 | #define ASL_RESNAME_MAXTYPE "_MAF" | 68 | #define ACPI_RESTAG_MAXTYPE "_MAF" |
69 | #define ASL_RESNAME_MINTYPE "_MIF" | 69 | #define ACPI_RESTAG_MINTYPE "_MIF" |
70 | #define ASL_RESNAME_REGISTERBITOFFSET "_RBO" | 70 | #define ACPI_RESTAG_REGISTERBITOFFSET "_RBO" |
71 | #define ASL_RESNAME_REGISTERBITWIDTH "_RBW" | 71 | #define ACPI_RESTAG_REGISTERBITWIDTH "_RBW" |
72 | #define ASL_RESNAME_RANGETYPE "_RNG" | 72 | #define ACPI_RESTAG_RANGETYPE "_RNG" |
73 | #define ASL_RESNAME_READWRITETYPE "_RW_" /* read_only(0), Writeable (1) */ | 73 | #define ACPI_RESTAG_READWRITETYPE "_RW_" /* read_only(0), Writeable (1) */ |
74 | #define ASL_RESNAME_TRANSLATION "_TRA" | 74 | #define ACPI_RESTAG_TRANSLATION "_TRA" |
75 | #define ASL_RESNAME_TRANSTYPE "_TRS" /* Sparse(1), Dense(0) */ | 75 | #define ACPI_RESTAG_TRANSTYPE "_TRS" /* Sparse(1), Dense(0) */ |
76 | #define ASL_RESNAME_TYPE "_TTP" /* Translation(1), Static (0) */ | 76 | #define ACPI_RESTAG_TYPE "_TTP" /* Translation(1), Static (0) */ |
77 | #define ASL_RESNAME_XFERTYPE "_SIz" /* 8(0), 8_and16(1), 16(2) */ | 77 | #define ACPI_RESTAG_XFERTYPE "_SIz" /* 8(0), 8_and16(1), 16(2) */ |
78 | 78 | ||
79 | /* Default sizes for "small" resource descriptors */ | 79 | /* Default sizes for "small" resource descriptors */ |
80 | 80 | ||
@@ -266,6 +266,7 @@ struct aml_resource_generic_register { | |||
266 | union aml_resource { | 266 | union aml_resource { |
267 | /* Descriptor headers */ | 267 | /* Descriptor headers */ |
268 | 268 | ||
269 | u8 descriptor_type; | ||
269 | struct aml_resource_small_header small_header; | 270 | struct aml_resource_small_header small_header; |
270 | struct aml_resource_large_header large_header; | 271 | struct aml_resource_large_header large_header; |
271 | 272 | ||
diff --git a/include/acpi/platform/acenv.h b/include/acpi/platform/acenv.h index 223ec6467108..d5a7f566c018 100644 --- a/include/acpi/platform/acenv.h +++ b/include/acpi/platform/acenv.h | |||
@@ -59,6 +59,7 @@ | |||
59 | #define ACPI_APPLICATION | 59 | #define ACPI_APPLICATION |
60 | #define ACPI_DISASSEMBLER | 60 | #define ACPI_DISASSEMBLER |
61 | #define ACPI_NO_METHOD_EXECUTION | 61 | #define ACPI_NO_METHOD_EXECUTION |
62 | #define ACPI_LARGE_NAMESPACE_NODE | ||
62 | #endif | 63 | #endif |
63 | 64 | ||
64 | #ifdef ACPI_EXEC_APP | 65 | #ifdef ACPI_EXEC_APP |
@@ -76,6 +77,7 @@ | |||
76 | #define ACPI_APPLICATION | 77 | #define ACPI_APPLICATION |
77 | #define ACPI_DISASSEMBLER | 78 | #define ACPI_DISASSEMBLER |
78 | #define ACPI_CONSTANT_EVAL_ONLY | 79 | #define ACPI_CONSTANT_EVAL_ONLY |
80 | #define ACPI_LARGE_NAMESPACE_NODE | ||
79 | #endif | 81 | #endif |
80 | 82 | ||
81 | #ifdef ACPI_APPLICATION | 83 | #ifdef ACPI_APPLICATION |
@@ -271,8 +273,8 @@ typedef char *va_list; | |||
271 | /* | 273 | /* |
272 | * Storage alignment properties | 274 | * Storage alignment properties |
273 | */ | 275 | */ |
274 | #define _AUPBND (sizeof (acpi_native_uint) - 1) | 276 | #define _AUPBND (sizeof (acpi_native_int) - 1) |
275 | #define _ADNBND (sizeof (acpi_native_uint) - 1) | 277 | #define _ADNBND (sizeof (acpi_native_int) - 1) |
276 | 278 | ||
277 | /* | 279 | /* |
278 | * Variable argument list macro definitions | 280 | * Variable argument list macro definitions |
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h index 2e6d54569ee8..2f5bb5bd76b7 100644 --- a/include/acpi/platform/aclinux.h +++ b/include/acpi/platform/aclinux.h | |||
@@ -52,27 +52,22 @@ | |||
52 | #include <linux/config.h> | 52 | #include <linux/config.h> |
53 | #include <linux/string.h> | 53 | #include <linux/string.h> |
54 | #include <linux/kernel.h> | 54 | #include <linux/kernel.h> |
55 | #include <linux/module.h> | ||
55 | #include <linux/ctype.h> | 56 | #include <linux/ctype.h> |
56 | #include <asm/system.h> | 57 | #include <asm/system.h> |
57 | #include <asm/atomic.h> | 58 | #include <asm/atomic.h> |
58 | #include <asm/div64.h> | 59 | #include <asm/div64.h> |
59 | #include <asm/acpi.h> | 60 | #include <asm/acpi.h> |
61 | #include <linux/slab.h> | ||
60 | 62 | ||
61 | #define strtoul simple_strtoul | 63 | /* Host-dependent types and defines */ |
62 | |||
63 | #define ACPI_MACHINE_WIDTH BITS_PER_LONG | ||
64 | 64 | ||
65 | /* Type(s) for the OSL */ | 65 | #define ACPI_MACHINE_WIDTH BITS_PER_LONG |
66 | 66 | #define acpi_cache_t kmem_cache_t | |
67 | #ifdef ACPI_USE_LOCAL_CACHE | 67 | #define ACPI_EXPORT_SYMBOL(symbol) EXPORT_SYMBOL(symbol); |
68 | #define acpi_cache_t struct acpi_memory_list | 68 | #define strtoul simple_strtoul |
69 | #else | ||
70 | #include <linux/slab.h> | ||
71 | #define acpi_cache_t kmem_cache_t | ||
72 | #endif | ||
73 | 69 | ||
74 | /* Full namespace pathname length limit - arbitrary */ | 70 | /* Full namespace pathname length limit - arbitrary */ |
75 | |||
76 | #define ACPI_PATHNAME_MAX 256 | 71 | #define ACPI_PATHNAME_MAX 256 |
77 | 72 | ||
78 | #else /* !__KERNEL__ */ | 73 | #else /* !__KERNEL__ */ |