From 0a29b4638919147af8309909aff117d7c478260b Mon Sep 17 00:00:00 2001 From: aystarik Date: Wed, 29 Jun 2005 17:54:45 +0000 Subject: [PATCH] Headers and Cleanup date 2001.01.25.23.35.00; author rmoore1; state Exp; --- source/components/executer/exstoren.c | 30 ++++++++++++---------- source/components/executer/exstorob.c | 36 ++++++++++++++++----------- 2 files changed, 38 insertions(+), 28 deletions(-) diff --git a/source/components/executer/exstoren.c b/source/components/executer/exstoren.c index b0149dc01..f087ec0fe 100644 --- a/source/components/executer/exstoren.c +++ b/source/components/executer/exstoren.c @@ -3,7 +3,7 @@ * * Module Name: amstoren - AML Interpreter object store support, * Store to Node (namespace object) - * $Revision: 1.27 $ + * $Revision: 1.28 $ * *****************************************************************************/ @@ -133,16 +133,18 @@ - /******************************************************************************* * * FUNCTION: AcpiAmlResolveObject * - * PARAMETERS: + * PARAMETERS: SourceDescPtr - Pointer to the source object + * TargetType - Current type of the target + * WalkState - Current walk state * - * RETURN: Status + * RETURN: Status, resolved object in SourceDescPtr. * - * DESCRIPTION: + * DESCRIPTION: Resolve an object. If the object is a reference, dereference + * it and return the actual object in the SourceDescPtr. * ******************************************************************************/ @@ -245,11 +247,17 @@ AcpiAmlResolveObject ( * * FUNCTION: AcpiAmlStoreObject * - * PARAMETERS: + * PARAMETERS: SourceDesc - Object to store + * TargetType - Current type of the target + * TargetDescPtr - Pointer to the target + * WalkState - Current walk state * * RETURN: Status * - * DESCRIPTION: + * DESCRIPTION: "Store" an object to another object. This may include + * converting the source type to the target type (implicit + * conversion), and a copy of the value of the source to + * the target. * ******************************************************************************/ @@ -311,7 +319,7 @@ AcpiAmlStoreObject ( case ACPI_TYPE_FIELD_UNIT: - Status = AcpiAmlCopyIntegerToFieldUnit (SourceDesc, TargetDesc, WalkState); + Status = AcpiAmlCopyIntegerToFieldUnit (SourceDesc, TargetDesc); break; @@ -351,12 +359,8 @@ AcpiAmlStoreObject ( default: /* - * All other types than Alias and the various Fields come here. - * Store SourceDesc as the new value of the Name, and set - * the Name's type to that of the value being stored in it. - * SourceDesc reference count is incremented by AttachObject. + * All other types come here. */ - DEBUG_PRINT (ACPI_WARN, ("AmlStoreObject: Store into type %s not implemented\n", AcpiCmGetTypeName (TargetType))); diff --git a/source/components/executer/exstorob.c b/source/components/executer/exstorob.c index 9bb641797..15db2356b 100644 --- a/source/components/executer/exstorob.c +++ b/source/components/executer/exstorob.c @@ -2,7 +2,7 @@ /****************************************************************************** * * Module Name: amstorob - AML Interpreter object store support, store to object - * $Revision: 1.21 $ + * $Revision: 1.22 $ * *****************************************************************************/ @@ -135,11 +135,12 @@ * * FUNCTION: AcpiAmlCopyBufferToBuffer * - * PARAMETERS: + * PARAMETERS: SourceDesc - Source object to copy + * TargetDesc - Destination object of the copy * * RETURN: Status * - * DESCRIPTION: + * DESCRIPTION: Copy a buffer object to another buffer object. * ******************************************************************************/ @@ -192,11 +193,12 @@ AcpiAmlCopyBufferToBuffer ( * * FUNCTION: AcpiAmlCopyStringToString * - * PARAMETERS: + * PARAMETERS: SourceDesc - Source object to copy + * TargetDesc - Destination object of the copy * * RETURN: Status * - * DESCRIPTION: + * DESCRIPTION: Copy a String object to another String object * ******************************************************************************/ @@ -263,11 +265,12 @@ AcpiAmlCopyStringToString ( * * FUNCTION: AcpiAmlCopyIntegerToIndexField * - * PARAMETERS: + * PARAMETERS: SourceDesc - Source object to copy + * TargetDesc - Destination object of the copy * * RETURN: Status * - * DESCRIPTION: + * DESCRIPTION: Write an Integer to an Index Field * ******************************************************************************/ @@ -329,11 +332,12 @@ AcpiAmlCopyIntegerToIndexField ( * * FUNCTION: AcpiAmlCopyIntegerToBankField * - * PARAMETERS: + * PARAMETERS: SourceDesc - Source object to copy + * TargetDesc - Destination object of the copy * * RETURN: Status * - * DESCRIPTION: + * DESCRIPTION: Write an Integer to a Bank Field * ******************************************************************************/ @@ -395,11 +399,13 @@ AcpiAmlCopyIntegerToBankField ( * * FUNCTION: AcpiAmlCopyDataToNamedField * - * PARAMETERS: + * PARAMETERS: SourceDesc - Source object to copy + * Node - Destination Namespace node * * RETURN: Status * - * DESCRIPTION: + * DESCRIPTION: Copy raw data to a Named Field. No implicit conversion + * is performed on the source object * ******************************************************************************/ @@ -460,19 +466,19 @@ AcpiAmlCopyDataToNamedField ( * * FUNCTION: AcpiAmlCopyIntegerToFieldUnit * - * PARAMETERS: + * PARAMETERS: SourceDesc - Source object to copy + * TargetDesc - Destination object of the copy * * RETURN: Status * - * DESCRIPTION: + * DESCRIPTION: Write an Integer to a Field Unit. * ******************************************************************************/ ACPI_STATUS AcpiAmlCopyIntegerToFieldUnit ( ACPI_OPERAND_OBJECT *SourceDesc, - ACPI_OPERAND_OBJECT *TargetDesc, - ACPI_WALK_STATE *WalkState) + ACPI_OPERAND_OBJECT *TargetDesc) { ACPI_STATUS Status = AE_OK; UINT8 *Location = NULL;