diff options
author | Robert Moore <robert.moore@intel.com> | 2005-04-18 22:49:35 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-07-12 00:08:52 -0400 |
commit | 44f6c01242da4e162f28d8e1216a8c7a91174605 (patch) | |
tree | 53f724764f1bd9036dfb049a643d198125cc9edc /include/acpi/acnamesp.h | |
parent | ebb6e1a6122fd6b7c96470cfd4ce0f04150e5084 (diff) |
ACPICA 20050408 from Bob Moore
Fixed three cases in the interpreter where an "index"
argument to an ASL function was still (internally) 32
bits instead of the required 64 bits. This was the Index
argument to the Index, Mid, and Match operators.
The "strupr" function is now permanently local
(acpi_ut_strupr), since this is not a POSIX-defined
function and not present in most kernel-level C
libraries. References to the C library strupr function
have been removed from the headers.
Completed the deployment of static
functions/prototypes. All prototypes with the static
attribute have been moved from the headers to the owning
C file.
ACPICA 20050329 from Bob Moore
An error is now generated if an attempt is made to create
a Buffer Field of length zero (A CreateField with a length
operand of zero.)
The interpreter now issues a warning whenever executable
code at the module level is detected during ACPI table
load. This will give some idea of the prevalence of this
type of code.
Implemented support for references to named objects (other
than control methods) within package objects.
Enhanced package object output for the debug
object. Package objects are now completely dumped, showing
all elements.
Enhanced miscellaneous object output for the debug
object. Any object can now be written to the debug object
(for example, a device object can be written, and the type
of the object will be displayed.)
The "static" qualifier has been added to all local
functions across the core subsystem.
The number of "long" lines (> 80 chars) within the source
has been significantly reduced, by about 1/3.
Cleaned up all header files to ensure that all CA/iASL
functions are prototyped (even static functions) and the
formatting is consistent.
Two new header files have been added, acopcode.h and
acnames.h.
Removed several obsolete functions that were no longer
used.
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi/acnamesp.h')
-rw-r--r-- | include/acpi/acnamesp.h | 163 |
1 files changed, 36 insertions, 127 deletions
diff --git a/include/acpi/acnamesp.h b/include/acpi/acnamesp.h index 8b3cdc3566b1..d1b3ce80056f 100644 --- a/include/acpi/acnamesp.h +++ b/include/acpi/acnamesp.h | |||
@@ -57,17 +57,6 @@ | |||
57 | #define ACPI_NS_NEWSCOPE 1 /* a definition of this type opens a name scope */ | 57 | #define ACPI_NS_NEWSCOPE 1 /* a definition of this type opens a name scope */ |
58 | #define ACPI_NS_LOCAL 2 /* suppress search of enclosing scopes */ | 58 | #define ACPI_NS_LOCAL 2 /* suppress search of enclosing scopes */ |
59 | 59 | ||
60 | |||
61 | /* Definitions of the predefined namespace names */ | ||
62 | |||
63 | #define ACPI_UNKNOWN_NAME (u32) 0x3F3F3F3F /* Unknown name is "????" */ | ||
64 | #define ACPI_ROOT_NAME (u32) 0x5F5F5F5C /* Root name is "\___" */ | ||
65 | #define ACPI_SYS_BUS_NAME (u32) 0x5F53425F /* Sys bus name is "_SB_" */ | ||
66 | |||
67 | #define ACPI_NS_ROOT_PATH "\\" | ||
68 | #define ACPI_NS_SYSTEM_BUS "_SB_" | ||
69 | |||
70 | |||
71 | /* Flags for acpi_ns_lookup, acpi_ns_search_and_enter */ | 60 | /* Flags for acpi_ns_lookup, acpi_ns_search_and_enter */ |
72 | 61 | ||
73 | #define ACPI_NS_NO_UPSEARCH 0 | 62 | #define ACPI_NS_NO_UPSEARCH 0 |
@@ -80,10 +69,9 @@ | |||
80 | #define ACPI_NS_WALK_NO_UNLOCK FALSE | 69 | #define ACPI_NS_WALK_NO_UNLOCK FALSE |
81 | 70 | ||
82 | 71 | ||
83 | acpi_status | 72 | /* |
84 | acpi_ns_load_namespace ( | 73 | * nsinit - Namespace initialization |
85 | void); | 74 | */ |
86 | |||
87 | acpi_status | 75 | acpi_status |
88 | acpi_ns_initialize_objects ( | 76 | acpi_ns_initialize_objects ( |
89 | void); | 77 | void); |
@@ -93,23 +81,22 @@ acpi_ns_initialize_devices ( | |||
93 | void); | 81 | void); |
94 | 82 | ||
95 | 83 | ||
96 | /* Namespace init - nsxfinit */ | 84 | /* |
97 | 85 | * nsload - Namespace loading | |
86 | */ | ||
98 | acpi_status | 87 | acpi_status |
99 | acpi_ns_init_one_device ( | 88 | acpi_ns_load_namespace ( |
100 | acpi_handle obj_handle, | 89 | void); |
101 | u32 nesting_level, | ||
102 | void *context, | ||
103 | void **return_value); | ||
104 | 90 | ||
105 | acpi_status | 91 | acpi_status |
106 | acpi_ns_init_one_object ( | 92 | acpi_ns_load_table ( |
107 | acpi_handle obj_handle, | 93 | struct acpi_table_desc *table_desc, |
108 | u32 level, | 94 | struct acpi_namespace_node *node); |
109 | void *context, | ||
110 | void **return_value); | ||
111 | 95 | ||
112 | 96 | ||
97 | /* | ||
98 | * nswalk - walk the namespace | ||
99 | */ | ||
113 | acpi_status | 100 | acpi_status |
114 | acpi_ns_walk_namespace ( | 101 | acpi_ns_walk_namespace ( |
115 | acpi_object_type type, | 102 | acpi_object_type type, |
@@ -126,37 +113,24 @@ acpi_ns_get_next_node ( | |||
126 | struct acpi_namespace_node *parent, | 113 | struct acpi_namespace_node *parent, |
127 | struct acpi_namespace_node *child); | 114 | struct acpi_namespace_node *child); |
128 | 115 | ||
129 | void | ||
130 | acpi_ns_delete_namespace_by_owner ( | ||
131 | u16 table_id); | ||
132 | |||
133 | |||
134 | /* Namespace loading - nsload */ | ||
135 | |||
136 | acpi_status | ||
137 | acpi_ns_one_complete_parse ( | ||
138 | u32 pass_number, | ||
139 | struct acpi_table_desc *table_desc); | ||
140 | 116 | ||
117 | /* | ||
118 | * nsparse - table parsing | ||
119 | */ | ||
141 | acpi_status | 120 | acpi_status |
142 | acpi_ns_parse_table ( | 121 | acpi_ns_parse_table ( |
143 | struct acpi_table_desc *table_desc, | 122 | struct acpi_table_desc *table_desc, |
144 | struct acpi_namespace_node *scope); | 123 | struct acpi_namespace_node *scope); |
145 | 124 | ||
146 | acpi_status | 125 | acpi_status |
147 | acpi_ns_load_table ( | 126 | acpi_ns_one_complete_parse ( |
148 | struct acpi_table_desc *table_desc, | 127 | u32 pass_number, |
149 | struct acpi_namespace_node *node); | 128 | struct acpi_table_desc *table_desc); |
150 | |||
151 | acpi_status | ||
152 | acpi_ns_load_table_by_type ( | ||
153 | acpi_table_type table_type); | ||
154 | 129 | ||
155 | 130 | ||
156 | /* | 131 | /* |
157 | * Top-level namespace access - nsaccess | 132 | * nsaccess - Top-level namespace access |
158 | */ | 133 | */ |
159 | |||
160 | acpi_status | 134 | acpi_status |
161 | acpi_ns_root_initialize ( | 135 | acpi_ns_root_initialize ( |
162 | void); | 136 | void); |
@@ -173,9 +147,8 @@ acpi_ns_lookup ( | |||
173 | 147 | ||
174 | 148 | ||
175 | /* | 149 | /* |
176 | * Named object allocation/deallocation - nsalloc | 150 | * nsalloc - Named object allocation/deallocation |
177 | */ | 151 | */ |
178 | |||
179 | struct acpi_namespace_node * | 152 | struct acpi_namespace_node * |
180 | acpi_ns_create_node ( | 153 | acpi_ns_create_node ( |
181 | u32 name); | 154 | u32 name); |
@@ -189,6 +162,10 @@ acpi_ns_delete_namespace_subtree ( | |||
189 | struct acpi_namespace_node *parent_handle); | 162 | struct acpi_namespace_node *parent_handle); |
190 | 163 | ||
191 | void | 164 | void |
165 | acpi_ns_delete_namespace_by_owner ( | ||
166 | u16 table_id); | ||
167 | |||
168 | void | ||
192 | acpi_ns_detach_object ( | 169 | acpi_ns_detach_object ( |
193 | struct acpi_namespace_node *node); | 170 | struct acpi_namespace_node *node); |
194 | 171 | ||
@@ -201,36 +178,16 @@ acpi_ns_compare_names ( | |||
201 | char *name1, | 178 | char *name1, |
202 | char *name2); | 179 | char *name2); |
203 | 180 | ||
204 | void | ||
205 | acpi_ns_remove_reference ( | ||
206 | struct acpi_namespace_node *node); | ||
207 | |||
208 | 181 | ||
209 | /* | 182 | /* |
210 | * Namespace modification - nsmodify | 183 | * nsdump - Namespace dump/print utilities |
211 | */ | 184 | */ |
212 | 185 | #ifdef ACPI_FUTURE_USAGE | |
213 | #ifdef ACPI_FUTURE_USAGE | ||
214 | acpi_status | ||
215 | acpi_ns_unload_namespace ( | ||
216 | acpi_handle handle); | ||
217 | |||
218 | acpi_status | ||
219 | acpi_ns_delete_subtree ( | ||
220 | acpi_handle start_handle); | ||
221 | #endif | ||
222 | |||
223 | |||
224 | /* | ||
225 | * Namespace dump/print utilities - nsdump | ||
226 | */ | ||
227 | |||
228 | #ifdef ACPI_FUTURE_USAGE | ||
229 | void | 186 | void |
230 | acpi_ns_dump_tables ( | 187 | acpi_ns_dump_tables ( |
231 | acpi_handle search_base, | 188 | acpi_handle search_base, |
232 | u32 max_depth); | 189 | u32 max_depth); |
233 | #endif | 190 | #endif /* ACPI_FUTURE_USAGE */ |
234 | 191 | ||
235 | void | 192 | void |
236 | acpi_ns_dump_entry ( | 193 | acpi_ns_dump_entry ( |
@@ -249,19 +206,6 @@ acpi_ns_print_pathname ( | |||
249 | u32 num_segments, | 206 | u32 num_segments, |
250 | char *pathname); | 207 | char *pathname); |
251 | 208 | ||
252 | #ifdef ACPI_FUTURE_USAGE | ||
253 | acpi_status | ||
254 | acpi_ns_dump_one_device ( | ||
255 | acpi_handle obj_handle, | ||
256 | u32 level, | ||
257 | void *context, | ||
258 | void **return_value); | ||
259 | |||
260 | void | ||
261 | acpi_ns_dump_root_devices ( | ||
262 | void); | ||
263 | #endif /* ACPI_FUTURE_USAGE */ | ||
264 | |||
265 | acpi_status | 209 | acpi_status |
266 | acpi_ns_dump_one_object ( | 210 | acpi_ns_dump_one_object ( |
267 | acpi_handle obj_handle, | 211 | acpi_handle obj_handle, |
@@ -269,7 +213,7 @@ acpi_ns_dump_one_object ( | |||
269 | void *context, | 213 | void *context, |
270 | void **return_value); | 214 | void **return_value); |
271 | 215 | ||
272 | #ifdef ACPI_FUTURE_USAGE | 216 | #ifdef ACPI_FUTURE_USAGE |
273 | void | 217 | void |
274 | acpi_ns_dump_objects ( | 218 | acpi_ns_dump_objects ( |
275 | acpi_object_type type, | 219 | acpi_object_type type, |
@@ -277,13 +221,12 @@ acpi_ns_dump_objects ( | |||
277 | u32 max_depth, | 221 | u32 max_depth, |
278 | u32 ownder_id, | 222 | u32 ownder_id, |
279 | acpi_handle start_handle); | 223 | acpi_handle start_handle); |
280 | #endif | 224 | #endif /* ACPI_FUTURE_USAGE */ |
281 | 225 | ||
282 | 226 | ||
283 | /* | 227 | /* |
284 | * Namespace evaluation functions - nseval | 228 | * nseval - Namespace evaluation functions |
285 | */ | 229 | */ |
286 | |||
287 | acpi_status | 230 | acpi_status |
288 | acpi_ns_evaluate_by_handle ( | 231 | acpi_ns_evaluate_by_handle ( |
289 | struct acpi_parameter_info *info); | 232 | struct acpi_parameter_info *info); |
@@ -298,40 +241,14 @@ acpi_ns_evaluate_relative ( | |||
298 | char *pathname, | 241 | char *pathname, |
299 | struct acpi_parameter_info *info); | 242 | struct acpi_parameter_info *info); |
300 | 243 | ||
301 | acpi_status | ||
302 | acpi_ns_execute_control_method ( | ||
303 | struct acpi_parameter_info *info); | ||
304 | |||
305 | acpi_status | ||
306 | acpi_ns_get_object_value ( | ||
307 | struct acpi_parameter_info *info); | ||
308 | |||
309 | |||
310 | /* | ||
311 | * Parent/Child/Peer utility functions | ||
312 | */ | ||
313 | |||
314 | #ifdef ACPI_FUTURE_USAGE | ||
315 | acpi_name | ||
316 | acpi_ns_find_parent_name ( | ||
317 | struct acpi_namespace_node *node_to_search); | ||
318 | #endif | ||
319 | |||
320 | 244 | ||
321 | /* | 245 | /* |
322 | * Name and Scope manipulation - nsnames | 246 | * nsnames - Name and Scope manipulation |
323 | */ | 247 | */ |
324 | |||
325 | u32 | 248 | u32 |
326 | acpi_ns_opens_scope ( | 249 | acpi_ns_opens_scope ( |
327 | acpi_object_type type); | 250 | acpi_object_type type); |
328 | 251 | ||
329 | void | ||
330 | acpi_ns_build_external_path ( | ||
331 | struct acpi_namespace_node *node, | ||
332 | acpi_size size, | ||
333 | char *name_buffer); | ||
334 | |||
335 | char * | 252 | char * |
336 | acpi_ns_get_external_pathname ( | 253 | acpi_ns_get_external_pathname ( |
337 | struct acpi_namespace_node *node); | 254 | struct acpi_namespace_node *node); |
@@ -363,9 +280,8 @@ acpi_ns_get_pathname_length ( | |||
363 | 280 | ||
364 | 281 | ||
365 | /* | 282 | /* |
366 | * Object management for namespace nodes - nsobject | 283 | * nsobject - Object management for namespace nodes |
367 | */ | 284 | */ |
368 | |||
369 | acpi_status | 285 | acpi_status |
370 | acpi_ns_attach_object ( | 286 | acpi_ns_attach_object ( |
371 | struct acpi_namespace_node *node, | 287 | struct acpi_namespace_node *node, |
@@ -399,9 +315,8 @@ acpi_ns_get_attached_data ( | |||
399 | 315 | ||
400 | 316 | ||
401 | /* | 317 | /* |
402 | * Namespace searching and entry - nssearch | 318 | * nssearch - Namespace searching and entry |
403 | */ | 319 | */ |
404 | |||
405 | acpi_status | 320 | acpi_status |
406 | acpi_ns_search_and_enter ( | 321 | acpi_ns_search_and_enter ( |
407 | u32 entry_name, | 322 | u32 entry_name, |
@@ -428,17 +343,12 @@ acpi_ns_install_node ( | |||
428 | 343 | ||
429 | 344 | ||
430 | /* | 345 | /* |
431 | * Utility functions - nsutils | 346 | * nsutils - Utility functions |
432 | */ | 347 | */ |
433 | |||
434 | u8 | 348 | u8 |
435 | acpi_ns_valid_root_prefix ( | 349 | acpi_ns_valid_root_prefix ( |
436 | char prefix); | 350 | char prefix); |
437 | 351 | ||
438 | u8 | ||
439 | acpi_ns_valid_path_separator ( | ||
440 | char sep); | ||
441 | |||
442 | acpi_object_type | 352 | acpi_object_type |
443 | acpi_ns_get_type ( | 353 | acpi_ns_get_type ( |
444 | struct acpi_namespace_node *node); | 354 | struct acpi_namespace_node *node); |
@@ -511,5 +421,4 @@ struct acpi_namespace_node * | |||
511 | acpi_ns_get_next_valid_node ( | 421 | acpi_ns_get_next_valid_node ( |
512 | struct acpi_namespace_node *node); | 422 | struct acpi_namespace_node *node); |
513 | 423 | ||
514 | |||
515 | #endif /* __ACNAMESP_H__ */ | 424 | #endif /* __ACNAMESP_H__ */ |