/* AML code generation for an Integer object node. */
STATIC EFI_STATUS EFIAPI AmlCodeGenInteger(IN UINT64 Integer, OUT AML_OBJECT_NODE **NewObjectNode)
/* AML code generation for an Integer object node. */
STATIC EFI_STATUS EFIAPI AmlCodeGenInteger(IN UINT64 Integer, OUT AML_OBJECT_NODE **NewObjectNode)
{
  EFI_STATUS  Status;
  INT8        ValueWidthDiff;
  if (NewObjectNode == NULL) {
    ASSERT (0);
    return EFI_INVALID_PARAMETER;
  }
  Status = AmlCreateObjectNode (
             AmlGetByteEncodingByOpCode (AML_ZERO_OP, 0),
             0,
             NewObjectNode
             );
  if (EFI_ERROR (Status)) {
    ASSERT (0);
    return Status;
  }
  Status = AmlNodeSetIntegerValue (*NewObjectNode, Integer, &ValueWidthDiff);
  if (EFI_ERROR (Status)) {
    ASSERT (0);
    AmlDeleteTree ((AML_NODE_HEADER *)*NewObjectNode);
  }
  return Status;
}