mirror of
https://github.com/acpica/acpica/
synced 2025-01-13 12:59:18 +03:00
Automated cleanup
This commit is contained in:
parent
47db503b5b
commit
bcecdaeb79
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: adisasm - Application-level disassembler routines
|
||||
* $Revision: 1.85 $
|
||||
* $Revision: 1.86 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -580,7 +580,7 @@ AdXrefAscendingOp (
|
||||
* RETURN: None
|
||||
*
|
||||
* DESCRIPTION: Cross reference the namespace to create externals and to
|
||||
* convert fixed-offset references to resource descriptors to
|
||||
* convert fixed-offset references to resource descriptors to
|
||||
* symbolic references.
|
||||
*
|
||||
* TBD: Currently only generates resource symbolic references.
|
||||
@ -731,7 +731,7 @@ AdAmlDisassemble (
|
||||
|
||||
/*
|
||||
* Cross reference the namespace here, in order to
|
||||
* generate External() statements and to convert fixed-offset
|
||||
* generate External() statements and to convert fixed-offset
|
||||
* references to resource descriptors to symbolic references.
|
||||
*/
|
||||
AdCrossReferenceNamespace ();
|
||||
|
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: dmrestag - Add tags to resource descriptors (Application-level)
|
||||
* $Revision: 1.1 $
|
||||
* $Revision: 1.2 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -541,7 +541,7 @@ AcpiDmGetResourceNode (
|
||||
* Value contains the resource offset, Object contains the resource
|
||||
* length (both in bytes)
|
||||
*/
|
||||
if ((ByteIndex >= Node->Value) &&
|
||||
if ((ByteIndex >= Node->Value) &&
|
||||
(ByteIndex < (Node->Value + (UINT32) Node->Object)))
|
||||
{
|
||||
return (Node);
|
||||
@ -895,7 +895,7 @@ AcpiDmFindResources (
|
||||
*
|
||||
* RETURN: None
|
||||
*
|
||||
* DESCRIPTION: Add an entire resource template to the namespace. Each
|
||||
* DESCRIPTION: Add an entire resource template to the namespace. Each
|
||||
* resource descriptor is added as a namespace node.
|
||||
*
|
||||
* TBD: Need a generic routine to walk (external) AML resource lists
|
||||
@ -960,7 +960,7 @@ AcpiDmAddResourcesToNamespace (
|
||||
AcpiDmAddResourceToNamespace (BufferNode, Offset, Length);
|
||||
|
||||
Aml += Length;
|
||||
Offset += Length;
|
||||
Offset += Length;
|
||||
}
|
||||
}
|
||||
|
||||
@ -977,7 +977,7 @@ AcpiDmAddResourcesToNamespace (
|
||||
*
|
||||
* DESCRIPTION: Add one resource descriptor to the namespace as a child of the
|
||||
* parent buffer. The same name is used for each descriptor. This
|
||||
* is changed later to a unique name if the resource is actually
|
||||
* is changed later to a unique name if the resource is actually
|
||||
* referenced by an AML operator.
|
||||
*
|
||||
******************************************************************************/
|
||||
@ -997,8 +997,8 @@ AcpiDmAddResourceToNamespace (
|
||||
|
||||
ScopeInfo.Scope.Node = BufferNode;
|
||||
Status = AcpiNsLookup (&ScopeInfo, "_TMP", ACPI_TYPE_LOCAL_RESOURCE,
|
||||
ACPI_IMODE_LOAD_PASS2,
|
||||
ACPI_NS_NO_UPSEARCH | ACPI_NS_DONT_OPEN_SCOPE | ACPI_NS_PREFIX_IS_SCOPE,
|
||||
ACPI_IMODE_LOAD_PASS2,
|
||||
ACPI_NS_NO_UPSEARCH | ACPI_NS_DONT_OPEN_SCOPE | ACPI_NS_PREFIX_IS_SCOPE,
|
||||
NULL, &Node);
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
|
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: aslanalyze.c - check for semantic errors
|
||||
* $Revision: 1.104 $
|
||||
* $Revision: 1.105 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -1647,7 +1647,7 @@ AnOperandTypecheckWalkEnd (
|
||||
if (ArgOp->Asl.ParseOpcode == PARSEOP_METHODCALL)
|
||||
{
|
||||
/*
|
||||
* Special-case the _OSI method here. This is currently the
|
||||
* Special-case the _OSI method here. This is currently the
|
||||
* only such predefined method.
|
||||
*/
|
||||
if ((!ACPI_STRCMP (ArgOp->Asl.ExternalName, "\\_OSI")) ||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*******************************************************************************
|
||||
*
|
||||
* Module Name: dmopcode - AML disassembler, specific AML opcodes
|
||||
* $Revision: 1.94 $
|
||||
* $Revision: 1.95 $
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
@ -358,12 +358,9 @@ AcpiDmCheckResource (
|
||||
ACPI_PARSE_OBJECT *BufferNameOp;
|
||||
|
||||
|
||||
|
||||
BufferNameOp = Op->Common.Value.Arg;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*******************************************************************************
|
||||
*
|
||||
* Module Name: dmwalk - AML disassembly tree walk
|
||||
* $Revision: 1.28 $
|
||||
* $Revision: 1.29 $
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
@ -694,7 +694,7 @@ AcpiDmDescendingOp (
|
||||
* Bank Value. This is a TermArg in the middle of the parameter
|
||||
* list, must handle it here.
|
||||
*
|
||||
* Disassemble the TermArg parse tree. ACPI_PARSEOP_PARAMLIST
|
||||
* Disassemble the TermArg parse tree. ACPI_PARSEOP_PARAMLIST
|
||||
* eliminates newline in the output.
|
||||
*/
|
||||
NextOp = NextOp->Common.Next;
|
||||
|
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: exresop - AML Interpreter operand/object resolution
|
||||
* $Revision: 1.90 $
|
||||
* $Revision: 1.91 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -286,7 +286,7 @@ AcpiExResolveOperands (
|
||||
ObjectType = ((ACPI_NAMESPACE_NODE *) ObjDesc)->Type;
|
||||
|
||||
/*
|
||||
* Resolve an alias object. The construction of these objects
|
||||
* Resolve an alias object. The construction of these objects
|
||||
* guarantees that there is only one level of alias indirection;
|
||||
* thus, the attached object is always the aliased namespace node
|
||||
*/
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Module Name: exstoren - AML Interpreter object store support,
|
||||
* Store to Node (namespace object)
|
||||
* $Revision: 1.68 $
|
||||
* $Revision: 1.69 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -217,7 +217,7 @@ AcpiExResolveObject (
|
||||
case ACPI_TYPE_LOCAL_METHOD_ALIAS:
|
||||
|
||||
/*
|
||||
* All aliases should have been resolved earlier, during the
|
||||
* All aliases should have been resolved earlier, during the
|
||||
* operand resolution phase.
|
||||
*/
|
||||
ACPI_ERROR ((AE_INFO, "Store into an unresolved Alias object"));
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*******************************************************************************
|
||||
*
|
||||
* Module Name: rscalc - Calculate stream and list lengths
|
||||
* $Revision: 1.75 $
|
||||
* $Revision: 1.76 $
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
@ -537,7 +537,7 @@ AcpiRsGetListLength (
|
||||
* included in the minimum descriptor size (reason for the -1)
|
||||
*/
|
||||
ExtraStructBytes = (Buffer[1] - 1) * sizeof (UINT32);
|
||||
|
||||
|
||||
/* Add the size of the optional ResourceSource */
|
||||
|
||||
ExtraStructBytes += AcpiRsStreamOptionLength (
|
||||
@ -562,12 +562,12 @@ AcpiRsGetListLength (
|
||||
*SizeNeeded += BufferSize;
|
||||
|
||||
ACPI_DEBUG_PRINT ((ACPI_DB_RESOURCES,
|
||||
"Type %.2X, Aml %.2X internal %.2X\n",
|
||||
"Type %.2X, Aml %.2X internal %.2X\n",
|
||||
AcpiUtGetResourceType (AmlBuffer),
|
||||
AcpiUtGetDescriptorLength (AmlBuffer), BufferSize));
|
||||
|
||||
/*
|
||||
* Point to the next resource within the AML stream using the length
|
||||
* Point to the next resource within the AML stream using the length
|
||||
* contained in the resource descriptor header
|
||||
*/
|
||||
AmlBuffer += AcpiUtGetDescriptorLength (AmlBuffer);
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*******************************************************************************
|
||||
*
|
||||
* Module Name: rslist - Linked list utilities
|
||||
* $Revision: 1.54 $
|
||||
* $Revision: 1.55 $
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
@ -191,7 +191,7 @@ AcpiRsConvertAmlToResources (
|
||||
}
|
||||
|
||||
ACPI_DEBUG_PRINT ((ACPI_DB_RESOURCES,
|
||||
"Type %.2X, Aml %.2X internal %.2X\n",
|
||||
"Type %.2X, Aml %.2X internal %.2X\n",
|
||||
AcpiUtGetResourceType (Aml), AcpiUtGetDescriptorLength (Aml),
|
||||
Resource->Length));
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*******************************************************************************
|
||||
*
|
||||
* Module Name: rsutils - Utilities for the resource manager
|
||||
* $Revision: 1.59 $
|
||||
* $Revision: 1.60 $
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
@ -476,7 +476,7 @@ AcpiRsGetResourceSource (
|
||||
*/
|
||||
TotalLength = ACPI_STRLEN (ACPI_CAST_PTR (char, &AmlResourceSource[1])) + 1;
|
||||
TotalLength = (UINT32) ACPI_ROUND_UP_TO_NATIVE_WORD (TotalLength);
|
||||
|
||||
|
||||
ACPI_MEMSET (ResourceSource->StringPtr, 0, TotalLength);
|
||||
|
||||
/* Copy the ResourceSource string to the destination */
|
||||
|
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: utglobal - Global variables for the ACPI subsystem
|
||||
* $Revision: 1.228 $
|
||||
* $Revision: 1.229 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -959,4 +959,3 @@ ACPI_EXPORT_SYMBOL (AcpiDbgLevel)
|
||||
ACPI_EXPORT_SYMBOL (AcpiDbgLayer)
|
||||
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Name: actypes.h - Common data types for the entire ACPI subsystem
|
||||
* $Revision: 1.303 $
|
||||
* $Revision: 1.304 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -325,7 +325,7 @@ typedef ACPI_NATIVE_UINT ACPI_SIZE;
|
||||
*
|
||||
* OS- or compiler-dependent types
|
||||
*
|
||||
* If the defaults below are not appropriate for the host system, they can
|
||||
* If the defaults below are not appropriate for the host system, they can
|
||||
* be defined in the compiler-specific or OS-specific header, and this will
|
||||
* take precedence.
|
||||
*
|
||||
@ -380,7 +380,7 @@ typedef ACPI_NATIVE_UINT ACPI_SIZE;
|
||||
#define ACPI_EXPORT_SYMBOL(Symbol)
|
||||
#endif
|
||||
|
||||
/*
|
||||
/*
|
||||
* ThreadId is returned by AcpiOsGetThreadId.
|
||||
*/
|
||||
#ifndef ACPI_THREAD_ID
|
||||
|
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: ascase - Source conversion - lower/upper case utilities
|
||||
* $Revision: 1.13 $
|
||||
* $Revision: 1.14 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -298,7 +298,7 @@ AsMixedCaseToUnderscores (
|
||||
continue;
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* Ignore identifiers that already contain embedded underscores
|
||||
* These are typically C macros or defines (all upper case)
|
||||
* Note: there are some cases where identifiers have underscores
|
||||
|
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: asconvrt - Source conversion code
|
||||
* $Revision: 1.60 $
|
||||
* $Revision: 1.61 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -745,12 +745,12 @@ AsBracesOnSameLine (
|
||||
* Even then, we don't need more if the previous statement
|
||||
* is an "else".
|
||||
*/
|
||||
if ((Next[0] == '/') &&
|
||||
(Next[1] == '*') &&
|
||||
if ((Next[0] == '/') &&
|
||||
(Next[1] == '*') &&
|
||||
(Next[2] != '\n') &&
|
||||
|
||||
(!strncmp (StartOfThisLine, "else if", 7) ||
|
||||
!strncmp (StartOfThisLine, "else while", 10) ||
|
||||
(!strncmp (StartOfThisLine, "else if", 7) ||
|
||||
!strncmp (StartOfThisLine, "else while", 10) ||
|
||||
strncmp (StartOfThisLine, "else", 4)))
|
||||
{
|
||||
AsReplaceData (Beginning, SubBuffer - Beginning, " {\n", 3);
|
||||
|
Loading…
Reference in New Issue
Block a user