50 #define _COMPONENT ACPI_PARSER
53 static
const u8 acpi_gbl_argument_count[] =
54 { 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 6 };
659 static const u8 acpi_gbl_short_op_index[256] = {
663 0x03,
_UNK, 0x04, 0x05, 0x06, 0x07, 0x6E,
_UNK,
668 0x67, 0x66, 0x68, 0x65, 0x69, 0x64, 0x6A, 0x7D,
674 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13,
675 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a,
_UNK,
676 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x20, 0x21, 0x22,
677 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a,
678 0x2b, 0x2c, 0x2d, 0x2e, 0x70, 0x71, 0x2f, 0x30,
679 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x72,
680 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x73, 0x74,
681 0x75, 0x76,
_UNK,
_UNK, 0x77, 0x78, 0x79, 0x7A,
682 0x3e, 0x3f, 0x40, 0x41, 0x42, 0x43, 0x60, 0x61,
707 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50, 0x51,
719 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f,
743 if (!(opcode & 0xFF00)) {
747 return (&acpi_gbl_aml_op_info
748 [acpi_gbl_short_op_index[(
u8) opcode]]);
756 return (&acpi_gbl_aml_op_info
757 [acpi_gbl_long_op_index[(
u8) opcode]]);
763 "Unknown AML opcode [%4.4X]\n", opcode));
765 return (&acpi_gbl_aml_op_info[
_UNK]);
783 #if defined(ACPI_DISASSEMBLER) || defined (ACPI_DEBUG_OUTPUT)
794 return (
"OpcodeName unavailable");
815 return (acpi_gbl_argument_count[op_type]);