utcopy.c (67754) | utcopy.c (69450) |
---|---|
1/****************************************************************************** 2 * 3 * Module Name: cmcopy - Internal to external object translation utilities | 1/****************************************************************************** 2 * 3 * Module Name: cmcopy - Internal to external object translation utilities |
4 * $Revision: 56 $ | 4 * $Revision: 58 $ |
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 | 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 | 158static ACPI_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 | 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 | 299static ACPI_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 | 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#ifdef ACPI_FUTURE_IMPLEMENTATION 606 607/* Code to convert packages that are parameters to control methods */ 608 |
|
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 | 609/****************************************************************************** 610 * 611 * FUNCTION: AcpiCmBuildInternalPackageObject 612 * 613 * PARAMETERS: *InternalObj - Pointer to the object we are returning 614 * *Buffer - Where the object is returned 615 * *SpaceUsed - Where the length of the object is returned 616 * 617 * RETURN: Status - the status of the call 618 * 619 * DESCRIPTION: This function is called to place a package object in a user 620 * buffer. A package object by definition contains other objects. 621 * 622 * The buffer is assumed to have sufficient space for the object. 623 * The caller must have verified the buffer length needed using the 624 * AcpiCmGetObjectSize function before calling this function. 625 * 626 ******************************************************************************/ 627 |
624ACPI_STATUS | 628static ACPI_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 | 629AcpiCmBuildInternalPackageObject ( 630 ACPI_OPERAND_OBJECT *InternalObj, 631 UINT8 *Buffer, 632 UINT32 *SpaceUsed) 633{ 634 UINT8 *FreeSpace; 635 ACPI_OBJECT *ExternalObj; 636 UINT32 CurrentDepth = 0; --- 129 unchanged lines hidden (view full) --- 766 CurrentDepth--; 767 LevelPtr = &Level[CurrentDepth]; 768 LevelPtr->Index++; 769 } 770 } /* else object is NOT a package */ 771 } /* while (1) */ 772} 773 |
774#endif /* Future implementation */ |
|
770 | 775 |
776 |
|
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 | 777/****************************************************************************** 778 * 779 * FUNCTION: AcpiCmBuildInternalObject 780 * 781 * PARAMETERS: *InternalObj - The external object to be converted 782 * *BufferPtr - Where the internal object is returned 783 * 784 * RETURN: Status - the status of the call --- 13 unchanged lines hidden (view full) --- 798 FUNCTION_TRACE ("CmBuildInternalObject"); 799 800 801 if (ExternalObj->Type == ACPI_TYPE_PACKAGE) 802 { 803 /* 804 * Package objects contain other objects (which can be objects) 805 * buildpackage does it all |
806 * 807 * TBD: Package conversion must be completed and tested 808 * NOTE: this code converts packages as input parameters to 809 * control methods only. This is a very, very rare case. |
|
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 --- | 810 */ 811/* 812 Status = AcpiCmBuildInternalPackageObject(InternalObj, 813 RetBuffer->Pointer, 814 &RetBuffer->Length); 815*/ 816 DEBUG_PRINT (ACPI_ERROR, 817 ("CmBuildInternalObject: Packages as parameters not implemented!\n")); --- 19 unchanged lines hidden --- |