Deleted Added
sdiff udiff text old ( 67754 ) new ( 69450 )
full compact
1/******************************************************************************
2 *
3 * Module Name: cmcopy - Internal to external object translation utilities
4 * $Revision: 56 $
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999, Intel Corp. All rights

--- 137 unchanged lines hidden (view full) ---

150 *
151 * DESCRIPTION: This function is called to place a simple object in a user
152 * buffer.
153 *
154 * The buffer is assumed to have sufficient space for the object.
155 *
156 ******************************************************************************/
157
158ACPI_STATUS
159AcpiCmBuildExternalSimpleObject (
160 ACPI_OPERAND_OBJECT *InternalObj,
161 ACPI_OBJECT *ExternalObj,
162 UINT8 *DataSpace,
163 UINT32 *BufferSpaceUsed)
164{
165 UINT32 Length = 0;
166 UINT8 *SourcePtr = NULL;

--- 124 unchanged lines hidden (view full) ---

291 * buffer. A package object by definition contains other objects.
292 *
293 * The buffer is assumed to have sufficient space for the object.
294 * The caller must have verified the buffer length needed using the
295 * AcpiCmGetObjectSize function before calling this function.
296 *
297 ******************************************************************************/
298
299ACPI_STATUS
300AcpiCmBuildExternalPackageObject (
301 ACPI_OPERAND_OBJECT *InternalObj,
302 UINT8 *Buffer,
303 UINT32 *SpaceUsed)
304{
305 UINT8 *FreeSpace;
306 ACPI_OBJECT *ExternalObj;
307 UINT32 CurrentDepth = 0;

--- 289 unchanged lines hidden (view full) ---

597 break;
598 }
599
600
601 return_ACPI_STATUS (AE_OK);
602}
603
604
605/******************************************************************************
606 *
607 * FUNCTION: AcpiCmBuildInternalPackageObject
608 *
609 * PARAMETERS: *InternalObj - Pointer to the object we are returning
610 * *Buffer - Where the object is returned
611 * *SpaceUsed - Where the length of the object is returned
612 *
613 * RETURN: Status - the status of the call
614 *
615 * DESCRIPTION: This function is called to place a package object in a user
616 * buffer. A package object by definition contains other objects.
617 *
618 * The buffer is assumed to have sufficient space for the object.
619 * The caller must have verified the buffer length needed using the
620 * AcpiCmGetObjectSize function before calling this function.
621 *
622 ******************************************************************************/
623
624ACPI_STATUS
625AcpiCmBuildInternalPackageObject (
626 ACPI_OPERAND_OBJECT *InternalObj,
627 UINT8 *Buffer,
628 UINT32 *SpaceUsed)
629{
630 UINT8 *FreeSpace;
631 ACPI_OBJECT *ExternalObj;
632 UINT32 CurrentDepth = 0;

--- 129 unchanged lines hidden (view full) ---

762 CurrentDepth--;
763 LevelPtr = &Level[CurrentDepth];
764 LevelPtr->Index++;
765 }
766 } /* else object is NOT a package */
767 } /* while (1) */
768}
769
770
771/******************************************************************************
772 *
773 * FUNCTION: AcpiCmBuildInternalObject
774 *
775 * PARAMETERS: *InternalObj - The external object to be converted
776 * *BufferPtr - Where the internal object is returned
777 *
778 * RETURN: Status - the status of the call

--- 13 unchanged lines hidden (view full) ---

792 FUNCTION_TRACE ("CmBuildInternalObject");
793
794
795 if (ExternalObj->Type == ACPI_TYPE_PACKAGE)
796 {
797 /*
798 * Package objects contain other objects (which can be objects)
799 * buildpackage does it all
800 */
801/*
802 Status = AcpiCmBuildInternalPackageObject(InternalObj,
803 RetBuffer->Pointer,
804 &RetBuffer->Length);
805*/
806 DEBUG_PRINT (ACPI_ERROR,
807 ("CmBuildInternalObject: Packages as parameters not implemented!\n"));

--- 19 unchanged lines hidden ---