aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/namespace/nsutils.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2006-04-21 17:15:00 -0400
committerLen Brown <len.brown@intel.com>2006-06-14 02:30:55 -0400
commitb229cf92eee616c7cb5ad8cdb35a19b119f00bc8 (patch)
tree74b52bec6ec029859c2320aba227290a503af31a /drivers/acpi/namespace/nsutils.c
parent793c2388cae3fd023b3b5166354931752d42353c (diff)
ACPI: ACPICA 20060421
Removed a device initialization optimization introduced in 20051216 where the _STA method was not run unless an _INI was also present for the same device. This optimization could cause problems because it could allow _INI methods to be run within a not-present device subtree (If a not-present device had no _INI, _STA would not be run, the not-present status would not be discovered, and the children of the device would be incorrectly traversed.) Implemented a new _STA optimization where namespace subtrees that do not contain _INI are identified and ignored during device initialization. Selectively running _STA can significantly improve boot time on large machines (with assistance from Len Brown.) Implemented support for the device initialization case where the returned _STA flags indicate a device not-present but functioning. In this case, _INI is not run, but the device children are examined for presence, as per the ACPI specification. Implemented an additional change to the IndexField support in order to conform to MS behavior. The value written to the Index Register is not simply a byte offset, it is a byte offset in units of the access width of the parent Index Field. (Fiodor Suietov) Defined and deployed a new OSL interface, acpi_os_validate_address(). This interface is called during the creation of all AML operation regions, and allows the host OS to exert control over what addresses it will allow the AML code to access. Operation Regions whose addresses are disallowed will cause a runtime exception when they are actually accessed (will not affect or abort table loading.) Defined and deployed a new OSL interface, acpi_os_validate_interface(). This interface allows the host OS to match the various "optional" interface/behavior strings for the _OSI predefined control method as appropriate (with assistance from Bjorn Helgaas.) Restructured and corrected various problems in the exception handling code paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod (with assistance from Takayoshi Kochi.) Modified the Linux source converter to ignore quoted string literals while converting identifiers from mixed to lower case. This will correct problems with the disassembler and other areas where such strings must not be modified. The ACPI_FUNCTION_* macros no longer require quotes around the function name. This allows the Linux source converter to convert the names, now that the converter ignores quoted strings. Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/namespace/nsutils.c')
-rw-r--r--drivers/acpi/namespace/nsutils.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/acpi/namespace/nsutils.c b/drivers/acpi/namespace/nsutils.c
index 9fa38ffc2e6e..d1d55032b455 100644
--- a/drivers/acpi/namespace/nsutils.c
+++ b/drivers/acpi/namespace/nsutils.c
@@ -241,7 +241,7 @@ static u8 acpi_ns_valid_path_separator(char sep)
241 241
242acpi_object_type acpi_ns_get_type(struct acpi_namespace_node * node) 242acpi_object_type acpi_ns_get_type(struct acpi_namespace_node * node)
243{ 243{
244 ACPI_FUNCTION_TRACE("ns_get_type"); 244 ACPI_FUNCTION_TRACE(ns_get_type);
245 245
246 if (!node) { 246 if (!node) {
247 ACPI_WARNING((AE_INFO, "Null Node parameter")); 247 ACPI_WARNING((AE_INFO, "Null Node parameter"));
@@ -266,7 +266,7 @@ acpi_object_type acpi_ns_get_type(struct acpi_namespace_node * node)
266 266
267u32 acpi_ns_local(acpi_object_type type) 267u32 acpi_ns_local(acpi_object_type type)
268{ 268{
269 ACPI_FUNCTION_TRACE("ns_local"); 269 ACPI_FUNCTION_TRACE(ns_local);
270 270
271 if (!acpi_ut_valid_object_type(type)) { 271 if (!acpi_ut_valid_object_type(type)) {
272 272
@@ -366,7 +366,7 @@ acpi_status acpi_ns_build_internal_name(struct acpi_namestring_info *info)
366 char *result = NULL; 366 char *result = NULL;
367 acpi_native_uint i; 367 acpi_native_uint i;
368 368
369 ACPI_FUNCTION_TRACE("ns_build_internal_name"); 369 ACPI_FUNCTION_TRACE(ns_build_internal_name);
370 370
371 /* Setup the correct prefixes, counts, and pointers */ 371 /* Setup the correct prefixes, counts, and pointers */
372 372
@@ -477,7 +477,7 @@ acpi_status acpi_ns_internalize_name(char *external_name, char **converted_name)
477 struct acpi_namestring_info info; 477 struct acpi_namestring_info info;
478 acpi_status status; 478 acpi_status status;
479 479
480 ACPI_FUNCTION_TRACE("ns_internalize_name"); 480 ACPI_FUNCTION_TRACE(ns_internalize_name);
481 481
482 if ((!external_name) || (*external_name == 0) || (!converted_name)) { 482 if ((!external_name) || (*external_name == 0) || (!converted_name)) {
483 return_ACPI_STATUS(AE_BAD_PARAMETER); 483 return_ACPI_STATUS(AE_BAD_PARAMETER);
@@ -537,7 +537,7 @@ acpi_ns_externalize_name(u32 internal_name_length,
537 acpi_native_uint i = 0; 537 acpi_native_uint i = 0;
538 acpi_native_uint j = 0; 538 acpi_native_uint j = 0;
539 539
540 ACPI_FUNCTION_TRACE("ns_externalize_name"); 540 ACPI_FUNCTION_TRACE(ns_externalize_name);
541 541
542 if (!internal_name_length || !internal_name || !converted_name) { 542 if (!internal_name_length || !internal_name || !converted_name) {
543 return_ACPI_STATUS(AE_BAD_PARAMETER); 543 return_ACPI_STATUS(AE_BAD_PARAMETER);
@@ -756,7 +756,7 @@ void acpi_ns_terminate(void)
756{ 756{
757 union acpi_operand_object *obj_desc; 757 union acpi_operand_object *obj_desc;
758 758
759 ACPI_FUNCTION_TRACE("ns_terminate"); 759 ACPI_FUNCTION_TRACE(ns_terminate);
760 760
761 /* 761 /*
762 * 1) Free the entire namespace -- all nodes and objects 762 * 1) Free the entire namespace -- all nodes and objects
@@ -796,7 +796,7 @@ void acpi_ns_terminate(void)
796 796
797u32 acpi_ns_opens_scope(acpi_object_type type) 797u32 acpi_ns_opens_scope(acpi_object_type type)
798{ 798{
799 ACPI_FUNCTION_TRACE_STR("ns_opens_scope", acpi_ut_get_type_name(type)); 799 ACPI_FUNCTION_TRACE_STR(ns_opens_scope, acpi_ut_get_type_name(type));
800 800
801 if (!acpi_ut_valid_object_type(type)) { 801 if (!acpi_ut_valid_object_type(type)) {
802 802
@@ -840,7 +840,7 @@ acpi_ns_get_node_by_path(char *pathname,
840 acpi_status status; 840 acpi_status status;
841 char *internal_path = NULL; 841 char *internal_path = NULL;
842 842
843 ACPI_FUNCTION_TRACE_PTR("ns_get_node_by_path", pathname); 843 ACPI_FUNCTION_TRACE_PTR(ns_get_node_by_path, pathname);
844 844
845 if (pathname) { 845 if (pathname) {
846 846
@@ -966,7 +966,7 @@ acpi_name acpi_ns_find_parent_name(struct acpi_namespace_node * child_node)
966{ 966{
967 struct acpi_namespace_node *parent_node; 967 struct acpi_namespace_node *parent_node;
968 968
969 ACPI_FUNCTION_TRACE("ns_find_parent_name"); 969 ACPI_FUNCTION_TRACE(ns_find_parent_name);
970 970
971 if (child_node) { 971 if (child_node) {
972 972