/******************************************************************************* * * FUNCTION: acpi_ut_get_region_name * * PARAMETERS: Space ID - ID for the region * * RETURN: Decoded region space_id name * * DESCRIPTION: Translate a Space ID into a name string (Debug only) *
******************************************************************************/
/******************************************************************************* * * FUNCTION: acpi_ut_get_event_name * * PARAMETERS: event_id - Fixed event ID * * RETURN: Decoded event ID name * * DESCRIPTION: Translate a Event ID into a name string (Debug only) *
******************************************************************************/
if (event_id > ACPI_EVENT_MAX) { return ("InvalidEventID");
}
return (acpi_gbl_event_types[event_id]);
}
/******************************************************************************* * * FUNCTION: acpi_ut_get_type_name * * PARAMETERS: type - An ACPI object type * * RETURN: Decoded ACPI object type name * * DESCRIPTION: Translate a Type ID into a name string (Debug only) *
******************************************************************************/
/* * Elements of acpi_gbl_ns_type_names below must match * one-to-one with values of acpi_object_type * * The type ACPI_TYPE_ANY (Untyped) is used as a "don't care" when searching; * when stored in a table it really means that we have thus far seen no * evidence to indicate what type is actually going to be stored for this & entry.
*/ staticconstchar acpi_gbl_bad_type[] = "UNDEFINED";
/******************************************************************************* * * FUNCTION: acpi_ut_get_node_name * * PARAMETERS: object - A namespace node * * RETURN: ASCII name of the node * * DESCRIPTION: Validate the node and return the node's ACPI name. *
******************************************************************************/
if (ACPI_GET_DESCRIPTOR_TYPE(node) != ACPI_DESC_TYPE_NAMED) { return ("####");
}
/* * Ensure name is valid. The name was validated/repaired when the node * was created, but make sure it has not been corrupted.
*/
acpi_ut_repair_name(node->name.ascii);
/* Return the name */
return (node->name.ascii);
}
/******************************************************************************* * * FUNCTION: acpi_ut_get_descriptor_name * * PARAMETERS: object - An ACPI object * * RETURN: Decoded name of the descriptor type * * DESCRIPTION: Validate object and return the descriptor type *
******************************************************************************/
/******************************************************************************* * * FUNCTION: acpi_ut_get_reference_name * * PARAMETERS: object - An ACPI reference object * * RETURN: Decoded name of the type of reference * * DESCRIPTION: Decode a reference object sub-type to a string. *
******************************************************************************/
/* Printable names of reference object sub-types */
/******************************************************************************* * * FUNCTION: acpi_ut_get_mutex_name * * PARAMETERS: mutex_id - The predefined ID for this mutex. * * RETURN: Decoded name of the internal mutex * * DESCRIPTION: Translate a mutex ID into a name string (Debug only) *
******************************************************************************/
/* Names for internal mutex objects, used for debug output */
/* * Strings and procedures used for debug only
*/
/******************************************************************************* * * FUNCTION: acpi_ut_get_notify_name * * PARAMETERS: notify_value - Value from the Notify() request * * RETURN: Decoded name for the notify value * * DESCRIPTION: Translate a Notify Value to a notify namestring. *
******************************************************************************/
/* Names for Notify() values, used for debug output */
/* 00 - 0F are "common to all object types" (from ACPI Spec) */
if (notify_value <= ACPI_GENERIC_NOTIFY_MAX) { return (acpi_gbl_generic_notify[notify_value]);
}
/* 10 - 7F are reserved */
if (notify_value <= ACPI_MAX_SYS_NOTIFY) { return ("Reserved");
}
/* 80 - 84 are per-object-type */
if (notify_value <= ACPI_SPECIFIC_NOTIFY_MAX) { switch (type) { case ACPI_TYPE_ANY: case ACPI_TYPE_DEVICE: return (acpi_gbl_device_notify[notify_value - 0x80]);
case ACPI_TYPE_PROCESSOR: return (acpi_gbl_processor_notify[notify_value - 0x80]);
case ACPI_TYPE_THERMAL: return (acpi_gbl_thermal_notify[notify_value - 0x80]);
default: return ("Target object type does not support notifies");
}
}
/* 84 - BF are device-specific */
if (notify_value <= ACPI_MAX_DEVICE_SPECIFIC_NOTIFY) { return ("Device-Specific");
}
/* C0 and above are hardware-specific */
return ("Hardware-Specific");
}
/******************************************************************************* * * FUNCTION: acpi_ut_get_argument_type_name * * PARAMETERS: arg_type - an ARGP_* parser argument type * * RETURN: Decoded ARGP_* type * * DESCRIPTION: Decode an ARGP_* parser type, as defined in the amlcode.h file, * and used in the acopcode.h file. For example, ARGP_TERMARG. * Used for debug only. *
******************************************************************************/
if (arg_type > ARGP_MAX) { return ("Unknown ARGP");
}
return (acpi_gbl_argument_type[arg_type]);
}
#endif
/******************************************************************************* * * FUNCTION: acpi_ut_valid_object_type * * PARAMETERS: type - Object type to be validated * * RETURN: TRUE if valid object type, FALSE otherwise * * DESCRIPTION: Validate an object type *
******************************************************************************/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.