Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141848
b: refs/heads/master
c: c114e4b
h: refs/heads/master
v: v3
  • Loading branch information
Bob Moore authored and Len Brown committed Mar 26, 2009
1 parent 344541e commit 01fd83e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4f70e371cdf6ab4f988fbaf2257e6259422ba662
refs/heads/master: c114e4b6c606c7f174b752f946fcfb0e7e61a347
32 changes: 21 additions & 11 deletions trunk/drivers/acpi/acpica/uteval.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ acpi_status acpi_ut_osi_implementation(struct acpi_walk_state *walk_state)
acpi_status status;
union acpi_operand_object *string_desc;
union acpi_operand_object *return_desc;
u32 return_value;
u32 i;

ACPI_FUNCTION_TRACE(ut_osi_implementation);
Expand All @@ -116,19 +117,21 @@ acpi_status acpi_ut_osi_implementation(struct acpi_walk_state *walk_state)
return_ACPI_STATUS(AE_NO_MEMORY);
}

/* Default return value is 0, NOT-SUPPORTED */
/* Default return value is 0, NOT SUPPORTED */

return_desc->integer.value = 0;
walk_state->return_desc = return_desc;
return_value = 0;

/* Compare input string to static table of supported interfaces */

for (i = 0; i < ACPI_ARRAY_LENGTH(acpi_interfaces_supported); i++) {
if (!ACPI_STRCMP
(string_desc->string.pointer,
acpi_interfaces_supported[i])) {
return_desc->integer.value = ACPI_UINT32_MAX;
goto done;

/* The interface is supported */

return_value = ACPI_UINT32_MAX;
goto exit;
}
}

Expand All @@ -139,15 +142,22 @@ acpi_status acpi_ut_osi_implementation(struct acpi_walk_state *walk_state)
*/
status = acpi_os_validate_interface(string_desc->string.pointer);
if (ACPI_SUCCESS(status)) {
return_desc->integer.value = ACPI_UINT32_MAX;

/* The interface is supported */

return_value = ACPI_UINT32_MAX;
}

done:
ACPI_DEBUG_PRINT_RAW((ACPI_DB_INFO, "ACPI: BIOS _OSI(%s) %ssupported\n",
string_desc->string.pointer,
return_desc->integer.value == 0 ? "not-" : ""));
exit:
ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INFO,
"ACPI: BIOS _OSI(%s) is %ssupported\n",
string_desc->string.pointer, return_value == 0 ? "not " : ""));

return_ACPI_STATUS(AE_OK);
/* Complete the return value */

return_desc->integer.value = return_value;
walk_state->return_desc = return_desc;
return_ACPI_STATUS (AE_OK);
}

/*******************************************************************************
Expand Down

0 comments on commit 01fd83e

Please sign in to comment.