Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117300
b: refs/heads/master
c: f02a99a
h: refs/heads/master
v: v3
  • Loading branch information
Bob Moore authored and Len Brown committed Oct 23, 2008
1 parent aea576a commit 3a309ae
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d00d23651d17a2848f6923f3b1ec4efe19f5f2f1
refs/heads/master: f02a99ac66748f8b62477c86f6df04d3ec6169fd
36 changes: 36 additions & 0 deletions trunk/drivers/acpi/utilities/utglobal.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

#include <acpi/acpi.h>
#include <acpi/acnamesp.h>
#include <acpi/amlcode.h>

ACPI_EXPORT_SYMBOL(acpi_gbl_FADT)
#define _COMPONENT ACPI_UTILITIES
Expand Down Expand Up @@ -575,6 +576,41 @@ char *acpi_ut_get_descriptor_name(void *object)

}

/*******************************************************************************
*
* FUNCTION: acpi_ut_get_reference_name
*
* PARAMETERS: Object - An ACPI reference object
*
* RETURN: Pointer to a string
*
* DESCRIPTION: Decode a reference object sub-type to a string.
*
******************************************************************************/

/* Printable names of reference object sub-types */

const char *acpi_ut_get_reference_name(union acpi_operand_object *object)
{

switch (object->reference.opcode) {
case AML_INT_NAMEPATH_OP:
return "Name";

case AML_LOAD_OP:
return "DDB-Handle";

case AML_REF_OF_OP:
return "RefOf";

case AML_INDEX_OP:
return "Index";

default:
return "Unknown";
}
}

#if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
/*
* Strings and procedures used for debug only
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/acpi/acutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ char *acpi_ut_get_node_name(void *object);

char *acpi_ut_get_descriptor_name(void *object);

const char *acpi_ut_get_reference_name(union acpi_operand_object *object);

char *acpi_ut_get_object_type_name(union acpi_operand_object *obj_desc);

char *acpi_ut_get_region_name(u8 space_id);
Expand Down

0 comments on commit 3a309ae

Please sign in to comment.