diff options
author | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 2002-07-09 17:51:31 +0000 |
---|---|---|
committer | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 2002-07-09 17:51:31 +0000 |
commit | 7174287062b13041257019f445469f00eaaf9c76 (patch) | |
tree | ea70a54a7d2f53270d0147b285a5fa912b760051 /sys/contrib/dev/acpica/dsmthdat.c | |
parent | 3f12fee6bc6478d15b9d7d5228e3d71e1c6e9af4 (diff) |
Vendor import of the Intel ACPI CA 20020611 drop.
Notes
Notes:
svn path=/vendor-sys/acpica/dist/; revision=99679
Diffstat (limited to 'sys/contrib/dev/acpica/dsmthdat.c')
-rw-r--r-- | sys/contrib/dev/acpica/dsmthdat.c | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/sys/contrib/dev/acpica/dsmthdat.c b/sys/contrib/dev/acpica/dsmthdat.c index d55ed303975d..12bfc852e4f6 100644 --- a/sys/contrib/dev/acpica/dsmthdat.c +++ b/sys/contrib/dev/acpica/dsmthdat.c @@ -1,7 +1,7 @@ /******************************************************************************* * * Module Name: dsmthdat - control method arguments and local variables - * $Revision: 59 $ + * $Revision: 62 $ * ******************************************************************************/ @@ -117,9 +117,7 @@ #define __DSMTHDAT_C__ #include "acpi.h" -#include "acparser.h" #include "acdispat.h" -#include "acinterp.h" #include "amlcode.h" #include "acnamesp.h" @@ -149,7 +147,7 @@ * ******************************************************************************/ -ACPI_STATUS +void AcpiDsMethodDataInit ( ACPI_WALK_STATE *WalkState) { @@ -184,7 +182,7 @@ AcpiDsMethodDataInit ( WalkState->LocalVariables[i].Flags = ANOBJ_END_OF_PEER_LIST | ANOBJ_METHOD_LOCAL; } - return_ACPI_STATUS (AE_OK); + return_VOID; } @@ -194,14 +192,14 @@ AcpiDsMethodDataInit ( * * PARAMETERS: WalkState - Current walk state object * - * RETURN: Status + * RETURN: None * * DESCRIPTION: Delete method locals and arguments. Arguments are only * deleted if this method was called from another method. * ******************************************************************************/ -ACPI_STATUS +void AcpiDsMethodDataDeleteAll ( ACPI_WALK_STATE *WalkState) { @@ -223,7 +221,7 @@ AcpiDsMethodDataDeleteAll ( /* Detach object (if present) and remove a reference */ AcpiNsDetachObject (&WalkState->LocalVariables[Index]); - } + } } /* Detach the arguments */ @@ -241,7 +239,7 @@ AcpiDsMethodDataDeleteAll ( } } - return_ACPI_STATUS (AE_OK); + return_VOID; } @@ -463,7 +461,7 @@ AcpiDsMethodDataGetType ( /* Get the object type */ - return_VALUE (Object->Common.Type); + return_VALUE (ACPI_GET_OBJECT_TYPE (Object)); } @@ -546,6 +544,9 @@ AcpiDsMethodDataGetValue ( Index, Node)); return_ACPI_STATUS (AE_AML_UNINITIALIZED_LOCAL); + + default: + return_ACPI_STATUS (AE_AML_INTERNAL); } } @@ -568,14 +569,14 @@ AcpiDsMethodDataGetValue ( * Index - Which localVar or argument to delete * WalkState - Current walk state object * - * RETURN: Status + * RETURN: None * * DESCRIPTION: Delete the entry at Opcode:Index on the method stack. Inserts * a null into the stack slot after the object is deleted. * ******************************************************************************/ -ACPI_STATUS +void AcpiDsMethodDataDeleteValue ( UINT16 Opcode, UINT32 Index, @@ -594,7 +595,7 @@ AcpiDsMethodDataDeleteValue ( Status = AcpiDsMethodDataGetNode (Opcode, Index, WalkState, &Node); if (ACPI_FAILURE (Status)) { - return_ACPI_STATUS (Status); + return_VOID; } /* Get the associated object */ @@ -609,7 +610,7 @@ AcpiDsMethodDataDeleteValue ( Node->Object = NULL; if ((Object) && - (ACPI_GET_DESCRIPTOR_TYPE (Object) == ACPI_DESC_TYPE_INTERNAL)) + (ACPI_GET_DESCRIPTOR_TYPE (Object) == ACPI_DESC_TYPE_OPERAND)) { /* * There is a valid object. @@ -619,7 +620,7 @@ AcpiDsMethodDataDeleteValue ( AcpiUtRemoveReference (Object); } - return_ACPI_STATUS (AE_OK); + return_VOID; } @@ -719,7 +720,7 @@ AcpiDsStoreObjectToLocal ( * (perform the indirect store) */ Status = AcpiNsAttachObject ((ACPI_NAMESPACE_NODE *) CurrentObjDesc, - ObjDesc, ObjDesc->Common.Type); + ObjDesc, ACPI_GET_OBJECT_TYPE (ObjDesc)); return_ACPI_STATUS (Status); } |