FreeBSD/sys/contrib/dev/acpica/components/parser/psutils.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiPsInitOp
 *
 * PARAMETERS:  Op              - A newly allocated Op object
 *              Opcode          - Opcode to store in the Op
 *
 * RETURN:      None
 *
 * DESCRIPTION: Initialize a parse (Op) object
 *
 ******************************************************************************/
AcpiPsInitOp
PARAMETERS:  Op              - A newly allocated Op object
Opcode          - Opcode to store in the Op

None

Initialize a parse (Op) object
AcpiPsInitOp PARAMETERS : Op - A newly allocated Op object Opcode - Opcode to store in the Op None Initialize a parse ( Op ) object
void
AcpiPsInitOp (
    ACPI_PARSE_OBJECT       *Op,
    UINT16                  Opcode)
{
    ACPI_FUNCTION_ENTRY ();
    Op->Common.DescriptorType = ACPI_DESC_TYPE_PARSER;
    Op->Common.AmlOpcode = Opcode;
    ACPI_DISASM_ONLY_MEMBERS (strncpy (Op->Common.AmlOpName,
        (AcpiPsGetOpcodeInfo (Opcode))->Name,
        sizeof (Op->Common.AmlOpName)));
}
void AcpiPsInitOp ( ACPI_PARSE_OBJECT * Op , UINT16 Opcode ) { ACPI_FUNCTION_ENTRY ( ) ; Op -> Common . DescriptorType = ACPI_DESC_TYPE_PARSER ; Op -> Common . AmlOpcode = Opcode ; ACPI_DISASM_ONLY_MEMBERS ( strncpy ( Op -> Common . AmlOpName , ( AcpiPsGetOpcodeInfo ( Opcode ) ) -> Name , sizeof ( Op -> Common . AmlOpName ) ) ) ; }
FUNCTION:    AcpiPsInitOp
 PARAMETERS:  Op              - A newly allocated Op object
              Opcode          - Opcode to store in the Op
FUNCTION : AcpiPsInitOp PARAMETERS : Op - A newly allocated Op object Opcode - Opcode to store in the Op