/******************************************************************************* * * FUNCTION: acpi_ps_get_opcode_info * * PARAMETERS: opcode - The AML opcode * * RETURN: A pointer to the info about the opcode. * * DESCRIPTION: Find AML opcode description based on the opcode. * NOTE: This procedure must ALWAYS return a valid pointer! *
******************************************************************************/
/******************************************************************************* * * FUNCTION: acpi_ps_get_opcode_name * * PARAMETERS: opcode - The AML opcode * * RETURN: A pointer to the name of the opcode (ASCII String) * Note: Never returns NULL. * * DESCRIPTION: Translate an opcode into a human-readable string *
******************************************************************************/
constchar *acpi_ps_get_opcode_name(u16 opcode)
{ #ifdefined(ACPI_DISASSEMBLER) || defined (ACPI_DEBUG_OUTPUT)
conststruct acpi_opcode_info *op;
op = acpi_ps_get_opcode_info(opcode);
/* Always guaranteed to return a valid pointer */
return (op->name);
#else return ("OpcodeName unavailable");
#endif
}
/******************************************************************************* * * FUNCTION: acpi_ps_get_argument_count * * PARAMETERS: op_type - Type associated with the AML opcode * * RETURN: Argument count * * DESCRIPTION: Obtain the number of expected arguments for an AML opcode *
******************************************************************************/
u8 acpi_ps_get_argument_count(u32 op_type)
{
if (op_type <= AML_TYPE_EXEC_6A_0T_1R) { return (acpi_gbl_argument_count[op_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.