aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/resources
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2006-10-03 00:00:00 -0400
committerLen Brown <len.brown@intel.com>2006-04-01 01:26:39 -0500
commit8313524a0d466f451a62709aaedf988d8257b21c (patch)
treed612fc796ae07d8a39542c95eec0f5169c9f64eb /drivers/acpi/resources
parentea936b78f46cbe089a4ac363e1682dee7d427096 (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')
-rw-r--r--drivers/acpi/resources/rsinfo.c1
-rw-r--r--drivers/acpi/resources/rsxface.c29
2 files changed, 14 insertions, 16 deletions
diff --git a/drivers/acpi/resources/rsinfo.c b/drivers/acpi/resources/rsinfo.c
index d9ae64b77bd9..9e7ae2f8a1d3 100644
--- a/drivers/acpi/resources/rsinfo.c
+++ b/drivers/acpi/resources/rsinfo.c
@@ -141,6 +141,7 @@ struct acpi_rsdump_info *acpi_gbl_dump_resource_dispatch[] = {
141 acpi_rs_dump_generic_reg, /* ACPI_RESOURCE_TYPE_GENERIC_REGISTER */ 141 acpi_rs_dump_generic_reg, /* ACPI_RESOURCE_TYPE_GENERIC_REGISTER */
142}; 142};
143#endif 143#endif
144
144#endif /* ACPI_FUTURE_USAGE */ 145#endif /* ACPI_FUTURE_USAGE */
145/* 146/*
146 * Base sizes for external AML resource descriptors, indexed by internal type. 147 * Base sizes for external AML resource descriptors, indexed by internal type.
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
119ACPI_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
145acpi_status 144acpi_status
146acpi_get_current_resources(acpi_handle device_handle, 145acpi_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
172EXPORT_SYMBOL(acpi_get_current_resources); 171ACPI_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
196acpi_status 194acpi_status
197acpi_get_possible_resources(acpi_handle device_handle, 195acpi_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
223EXPORT_SYMBOL(acpi_get_possible_resources); 221ACPI_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
245acpi_status 242acpi_status
246acpi_walk_resources(acpi_handle device_handle, 243acpi_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
320EXPORT_SYMBOL(acpi_walk_resources); 317ACPI_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
340acpi_status 336acpi_status
341acpi_set_current_resources(acpi_handle device_handle, 337acpi_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
359EXPORT_SYMBOL(acpi_set_current_resources); 355ACPI_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
379acpi_status 374acpi_status
380acpi_resource_to_address64(struct acpi_resource *resource, 375acpi_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
420EXPORT_SYMBOL(acpi_resource_to_address64); 415ACPI_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
441acpi_status 435acpi_status
442acpi_get_vendor_resource(acpi_handle device_handle, 436acpi_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
466ACPI_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
484static acpi_status 479static acpi_status
485acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context) 480acpi_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
527ACPI_EXPORT_SYMBOL(acpi_rs_match_vendor_resource)