Headers and Cleanup

date	2001.01.25.23.35.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 17:54:45 +00:00
parent 4b99f128f1
commit 0a29b46389
2 changed files with 38 additions and 28 deletions

View File

@ -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)));

View File

@ -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;