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>
This commit is contained in:
Bob Moore
2006-10-03 00:00:00 -04:00
committed by Len Brown
parent ea936b78f4
commit 8313524a0d
65 changed files with 368 additions and 364 deletions

View File

@ -41,8 +41,6 @@
* POSSIBILITY OF SUCH DAMAGES.
*/
#include <linux/module.h>
#include <acpi/acpi.h>
#include <acpi/acresrc.h>
@ -118,6 +116,8 @@ acpi_get_irq_routing_table(acpi_handle device_handle,
return_ACPI_STATUS(status);
}
ACPI_EXPORT_SYMBOL(acpi_get_irq_routing_table)
/*******************************************************************************
*
* FUNCTION: acpi_get_current_resources
@ -141,7 +141,6 @@ acpi_get_irq_routing_table(acpi_handle device_handle,
* the object indicated by the passed device_handle.
*
******************************************************************************/
acpi_status
acpi_get_current_resources(acpi_handle device_handle,
struct acpi_buffer *ret_buffer)
@ -169,8 +168,9 @@ acpi_get_current_resources(acpi_handle device_handle,
return_ACPI_STATUS(status);
}
EXPORT_SYMBOL(acpi_get_current_resources);
ACPI_EXPORT_SYMBOL(acpi_get_current_resources)
#ifdef ACPI_FUTURE_USAGE
/*******************************************************************************
*
* FUNCTION: acpi_get_possible_resources
@ -191,8 +191,6 @@ EXPORT_SYMBOL(acpi_get_current_resources);
* and the value of ret_buffer is undefined.
*
******************************************************************************/
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_get_possible_resources(acpi_handle device_handle,
struct acpi_buffer *ret_buffer)
@ -220,7 +218,7 @@ acpi_get_possible_resources(acpi_handle device_handle,
return_ACPI_STATUS(status);
}
EXPORT_SYMBOL(acpi_get_possible_resources);
ACPI_EXPORT_SYMBOL(acpi_get_possible_resources)
#endif /* ACPI_FUTURE_USAGE */
/*******************************************************************************
@ -241,7 +239,6 @@ EXPORT_SYMBOL(acpi_get_possible_resources);
* each resource in the list.
*
******************************************************************************/
acpi_status
acpi_walk_resources(acpi_handle device_handle,
char *name,
@ -313,11 +310,11 @@ acpi_walk_resources(acpi_handle device_handle,
resource->length);
}
ACPI_MEM_FREE(buffer.pointer);
ACPI_FREE(buffer.pointer);
return_ACPI_STATUS(status);
}
EXPORT_SYMBOL(acpi_walk_resources);
ACPI_EXPORT_SYMBOL(acpi_walk_resources)
/*******************************************************************************
*
@ -336,7 +333,6 @@ EXPORT_SYMBOL(acpi_walk_resources);
* the buffer pointed to by the in_buffer variable.
*
******************************************************************************/
acpi_status
acpi_set_current_resources(acpi_handle device_handle,
struct acpi_buffer *in_buffer)
@ -356,7 +352,7 @@ acpi_set_current_resources(acpi_handle device_handle,
return_ACPI_STATUS(status);
}
EXPORT_SYMBOL(acpi_set_current_resources);
ACPI_EXPORT_SYMBOL(acpi_set_current_resources)
/******************************************************************************
*
@ -375,7 +371,6 @@ EXPORT_SYMBOL(acpi_set_current_resources);
* addresses.
*
******************************************************************************/
acpi_status
acpi_resource_to_address64(struct acpi_resource *resource,
struct acpi_resource_address64 *out)
@ -417,7 +412,7 @@ acpi_resource_to_address64(struct acpi_resource *resource,
return (AE_OK);
}
EXPORT_SYMBOL(acpi_resource_to_address64);
ACPI_EXPORT_SYMBOL(acpi_resource_to_address64)
/*******************************************************************************
*
@ -437,7 +432,6 @@ EXPORT_SYMBOL(acpi_resource_to_address64);
* UUID subtype. Returns a struct acpi_resource of type Vendor.
*
******************************************************************************/
acpi_status
acpi_get_vendor_resource(acpi_handle device_handle,
char *name,
@ -469,6 +463,8 @@ acpi_get_vendor_resource(acpi_handle device_handle,
return (info.status);
}
ACPI_EXPORT_SYMBOL(acpi_get_vendor_resource)
/*******************************************************************************
*
* FUNCTION: acpi_rs_match_vendor_resource
@ -480,7 +476,6 @@ acpi_get_vendor_resource(acpi_handle device_handle,
* DESCRIPTION: Match a vendor resource via the ACPI 3.0 UUID
*
******************************************************************************/
static acpi_status
acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context)
{
@ -528,3 +523,5 @@ acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context)
info->status = AE_OK;
return (AE_CTRL_TERMINATE);
}
ACPI_EXPORT_SYMBOL(acpi_rs_match_vendor_resource)