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 /drivers/acpi/resources/rsxface.c | |
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 'drivers/acpi/resources/rsxface.c')
-rw-r--r-- | drivers/acpi/resources/rsxface.c | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/drivers/acpi/resources/rsxface.c b/drivers/acpi/resources/rsxface.c index 2e1bc71acd94..b3feebbd8ca2 100644 --- a/drivers/acpi/resources/rsxface.c +++ b/drivers/acpi/resources/rsxface.c | |||
@@ -41,8 +41,6 @@ | |||
41 | * POSSIBILITY OF SUCH DAMAGES. | 41 | * POSSIBILITY OF SUCH DAMAGES. |
42 | */ | 42 | */ |
43 | 43 | ||
44 | #include <linux/module.h> | ||
45 | |||
46 | #include <acpi/acpi.h> | 44 | #include <acpi/acpi.h> |
47 | #include <acpi/acresrc.h> | 45 | #include <acpi/acresrc.h> |
48 | 46 | ||
@@ -118,6 +116,8 @@ acpi_get_irq_routing_table(acpi_handle device_handle, | |||
118 | return_ACPI_STATUS(status); | 116 | return_ACPI_STATUS(status); |
119 | } | 117 | } |
120 | 118 | ||
119 | ACPI_EXPORT_SYMBOL(acpi_get_irq_routing_table) | ||
120 | |||
121 | /******************************************************************************* | 121 | /******************************************************************************* |
122 | * | 122 | * |
123 | * FUNCTION: acpi_get_current_resources | 123 | * FUNCTION: acpi_get_current_resources |
@@ -141,7 +141,6 @@ acpi_get_irq_routing_table(acpi_handle device_handle, | |||
141 | * the object indicated by the passed device_handle. | 141 | * the object indicated by the passed device_handle. |
142 | * | 142 | * |
143 | ******************************************************************************/ | 143 | ******************************************************************************/ |
144 | |||
145 | acpi_status | 144 | acpi_status |
146 | acpi_get_current_resources(acpi_handle device_handle, | 145 | acpi_get_current_resources(acpi_handle device_handle, |
147 | struct acpi_buffer *ret_buffer) | 146 | struct acpi_buffer *ret_buffer) |
@@ -169,8 +168,9 @@ acpi_get_current_resources(acpi_handle device_handle, | |||
169 | return_ACPI_STATUS(status); | 168 | return_ACPI_STATUS(status); |
170 | } | 169 | } |
171 | 170 | ||
172 | EXPORT_SYMBOL(acpi_get_current_resources); | 171 | ACPI_EXPORT_SYMBOL(acpi_get_current_resources) |
173 | 172 | ||
173 | #ifdef ACPI_FUTURE_USAGE | ||
174 | /******************************************************************************* | 174 | /******************************************************************************* |
175 | * | 175 | * |
176 | * FUNCTION: acpi_get_possible_resources | 176 | * FUNCTION: acpi_get_possible_resources |
@@ -191,8 +191,6 @@ EXPORT_SYMBOL(acpi_get_current_resources); | |||
191 | * and the value of ret_buffer is undefined. | 191 | * and the value of ret_buffer is undefined. |
192 | * | 192 | * |
193 | ******************************************************************************/ | 193 | ******************************************************************************/ |
194 | |||
195 | #ifdef ACPI_FUTURE_USAGE | ||
196 | acpi_status | 194 | acpi_status |
197 | acpi_get_possible_resources(acpi_handle device_handle, | 195 | acpi_get_possible_resources(acpi_handle device_handle, |
198 | struct acpi_buffer *ret_buffer) | 196 | struct acpi_buffer *ret_buffer) |
@@ -220,7 +218,7 @@ acpi_get_possible_resources(acpi_handle device_handle, | |||
220 | return_ACPI_STATUS(status); | 218 | return_ACPI_STATUS(status); |
221 | } | 219 | } |
222 | 220 | ||
223 | EXPORT_SYMBOL(acpi_get_possible_resources); | 221 | ACPI_EXPORT_SYMBOL(acpi_get_possible_resources) |
224 | #endif /* ACPI_FUTURE_USAGE */ | 222 | #endif /* ACPI_FUTURE_USAGE */ |
225 | 223 | ||
226 | /******************************************************************************* | 224 | /******************************************************************************* |
@@ -241,7 +239,6 @@ EXPORT_SYMBOL(acpi_get_possible_resources); | |||
241 | * each resource in the list. | 239 | * each resource in the list. |
242 | * | 240 | * |
243 | ******************************************************************************/ | 241 | ******************************************************************************/ |
244 | |||
245 | acpi_status | 242 | acpi_status |
246 | acpi_walk_resources(acpi_handle device_handle, | 243 | acpi_walk_resources(acpi_handle device_handle, |
247 | char *name, | 244 | char *name, |
@@ -313,11 +310,11 @@ acpi_walk_resources(acpi_handle device_handle, | |||
313 | resource->length); | 310 | resource->length); |
314 | } | 311 | } |
315 | 312 | ||
316 | ACPI_MEM_FREE(buffer.pointer); | 313 | ACPI_FREE(buffer.pointer); |
317 | return_ACPI_STATUS(status); | 314 | return_ACPI_STATUS(status); |
318 | } | 315 | } |
319 | 316 | ||
320 | EXPORT_SYMBOL(acpi_walk_resources); | 317 | ACPI_EXPORT_SYMBOL(acpi_walk_resources) |
321 | 318 | ||
322 | /******************************************************************************* | 319 | /******************************************************************************* |
323 | * | 320 | * |
@@ -336,7 +333,6 @@ EXPORT_SYMBOL(acpi_walk_resources); | |||
336 | * the buffer pointed to by the in_buffer variable. | 333 | * the buffer pointed to by the in_buffer variable. |
337 | * | 334 | * |
338 | ******************************************************************************/ | 335 | ******************************************************************************/ |
339 | |||
340 | acpi_status | 336 | acpi_status |
341 | acpi_set_current_resources(acpi_handle device_handle, | 337 | acpi_set_current_resources(acpi_handle device_handle, |
342 | struct acpi_buffer *in_buffer) | 338 | struct acpi_buffer *in_buffer) |
@@ -356,7 +352,7 @@ acpi_set_current_resources(acpi_handle device_handle, | |||
356 | return_ACPI_STATUS(status); | 352 | return_ACPI_STATUS(status); |
357 | } | 353 | } |
358 | 354 | ||
359 | EXPORT_SYMBOL(acpi_set_current_resources); | 355 | ACPI_EXPORT_SYMBOL(acpi_set_current_resources) |
360 | 356 | ||
361 | /****************************************************************************** | 357 | /****************************************************************************** |
362 | * | 358 | * |
@@ -375,7 +371,6 @@ EXPORT_SYMBOL(acpi_set_current_resources); | |||
375 | * addresses. | 371 | * addresses. |
376 | * | 372 | * |
377 | ******************************************************************************/ | 373 | ******************************************************************************/ |
378 | |||
379 | acpi_status | 374 | acpi_status |
380 | acpi_resource_to_address64(struct acpi_resource *resource, | 375 | acpi_resource_to_address64(struct acpi_resource *resource, |
381 | struct acpi_resource_address64 *out) | 376 | struct acpi_resource_address64 *out) |
@@ -417,7 +412,7 @@ acpi_resource_to_address64(struct acpi_resource *resource, | |||
417 | return (AE_OK); | 412 | return (AE_OK); |
418 | } | 413 | } |
419 | 414 | ||
420 | EXPORT_SYMBOL(acpi_resource_to_address64); | 415 | ACPI_EXPORT_SYMBOL(acpi_resource_to_address64) |
421 | 416 | ||
422 | /******************************************************************************* | 417 | /******************************************************************************* |
423 | * | 418 | * |
@@ -437,7 +432,6 @@ EXPORT_SYMBOL(acpi_resource_to_address64); | |||
437 | * UUID subtype. Returns a struct acpi_resource of type Vendor. | 432 | * UUID subtype. Returns a struct acpi_resource of type Vendor. |
438 | * | 433 | * |
439 | ******************************************************************************/ | 434 | ******************************************************************************/ |
440 | |||
441 | acpi_status | 435 | acpi_status |
442 | acpi_get_vendor_resource(acpi_handle device_handle, | 436 | acpi_get_vendor_resource(acpi_handle device_handle, |
443 | char *name, | 437 | char *name, |
@@ -469,6 +463,8 @@ acpi_get_vendor_resource(acpi_handle device_handle, | |||
469 | return (info.status); | 463 | return (info.status); |
470 | } | 464 | } |
471 | 465 | ||
466 | ACPI_EXPORT_SYMBOL(acpi_get_vendor_resource) | ||
467 | |||
472 | /******************************************************************************* | 468 | /******************************************************************************* |
473 | * | 469 | * |
474 | * FUNCTION: acpi_rs_match_vendor_resource | 470 | * FUNCTION: acpi_rs_match_vendor_resource |
@@ -480,7 +476,6 @@ acpi_get_vendor_resource(acpi_handle device_handle, | |||
480 | * DESCRIPTION: Match a vendor resource via the ACPI 3.0 UUID | 476 | * DESCRIPTION: Match a vendor resource via the ACPI 3.0 UUID |
481 | * | 477 | * |
482 | ******************************************************************************/ | 478 | ******************************************************************************/ |
483 | |||
484 | static acpi_status | 479 | static acpi_status |
485 | acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context) | 480 | acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context) |
486 | { | 481 | { |
@@ -528,3 +523,5 @@ acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context) | |||
528 | info->status = AE_OK; | 523 | info->status = AE_OK; |
529 | return (AE_CTRL_TERMINATE); | 524 | return (AE_CTRL_TERMINATE); |
530 | } | 525 | } |
526 | |||
527 | ACPI_EXPORT_SYMBOL(acpi_rs_match_vendor_resource) | ||