mirror of
https://github.com/acpica/acpica/
synced 2025-02-19 15:04:30 +03:00
Extraneous spaces removed
date 2000.06.13.21.22.00; author rmoore1; state Exp;
This commit is contained in:
parent
7295df62a1
commit
e7da47204d
@ -1,6 +1,6 @@
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
*
|
||||
* Module Name: tbinstal - ACPI table installation
|
||||
*
|
||||
*****************************************************************************/
|
||||
@ -38,9 +38,9 @@
|
||||
* The above copyright and patent license is granted only if the following
|
||||
* conditions are met:
|
||||
*
|
||||
* 3. Conditions
|
||||
* 3. Conditions
|
||||
*
|
||||
* 3.1. Redistribution of Source with Rights to Further Distribute Source.
|
||||
* 3.1. Redistribution of Source with Rights to Further Distribute Source.
|
||||
* Redistribution of source code of any substantial portion of the Covered
|
||||
* Code or modification with rights to further distribute source must include
|
||||
* the above Copyright Notice, the above License, this list of Conditions,
|
||||
@ -48,11 +48,11 @@
|
||||
* Licensee must cause all Covered Code to which Licensee contributes to
|
||||
* contain a file documenting the changes Licensee made to create that Covered
|
||||
* Code and the date of any change. Licensee must include in that file the
|
||||
* documentation of any changes made by any predecessor Licensee. Licensee
|
||||
* documentation of any changes made by any predecessor Licensee. Licensee
|
||||
* must include a prominent statement that the modification is derived,
|
||||
* directly or indirectly, from Original Intel Code.
|
||||
*
|
||||
* 3.2. Redistribution of Source with no Rights to Further Distribute Source.
|
||||
* 3.2. Redistribution of Source with no Rights to Further Distribute Source.
|
||||
* Redistribution of source code of any substantial portion of the Covered
|
||||
* Code or modification without rights to further distribute source must
|
||||
* include the following Disclaimer and Export Compliance provision in the
|
||||
@ -86,7 +86,7 @@
|
||||
* INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
|
||||
* UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
|
||||
* PARTICULAR PURPOSE.
|
||||
* PARTICULAR PURPOSE.
|
||||
*
|
||||
* 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
|
||||
* OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
|
||||
@ -137,7 +137,7 @@
|
||||
* RETURN: Status
|
||||
*
|
||||
* DESCRIPTION: Load and validate all tables other than the RSDT. The RSDT must
|
||||
* already be loaded and validated.
|
||||
* already be loaded and validated.
|
||||
* Install the table into the global data structs.
|
||||
*
|
||||
******************************************************************************/
|
||||
@ -155,7 +155,7 @@ AcpiTbInstallTable (
|
||||
FUNCTION_TRACE ("TbInstallTable");
|
||||
|
||||
|
||||
/*
|
||||
/*
|
||||
* Check the table signature and make sure it is recognized
|
||||
* Also checks the header checksum
|
||||
*/
|
||||
@ -183,7 +183,7 @@ AcpiTbInstallTable (
|
||||
return_ACPI_STATUS (Status);
|
||||
}
|
||||
|
||||
DEBUG_PRINT (ACPI_INFO, ("%s located at %p\n",
|
||||
DEBUG_PRINT (ACPI_INFO, ("%s located at %p\n",
|
||||
Acpi_GblAcpiTableData[TableType].Name, TableHeader));
|
||||
|
||||
AcpiCmReleaseMutex (MTX_TABLES);
|
||||
@ -203,10 +203,10 @@ AcpiTbInstallTable (
|
||||
* DESCRIPTION: Check a table signature for a match against known table types
|
||||
*
|
||||
* NOTE: All table pointers are validated as follows:
|
||||
* 1) Table pointer must point to valid physical memory
|
||||
* 1) Table pointer must point to valid physical memory
|
||||
* 2) Signature must be 4 ASCII chars, even if we don't recognize the name
|
||||
* 3) Table must be readable for length specified in the header
|
||||
* 4) Table checksum must be valid (with the exception of the FACS which
|
||||
* 4) Table checksum must be valid (with the exception of the FACS which
|
||||
* has no checksum for some odd reason…)
|
||||
*
|
||||
******************************************************************************/
|
||||
@ -221,7 +221,7 @@ AcpiTbRecognizeTable (
|
||||
ACPI_TABLE_TYPE TableType = 0;
|
||||
UINT32 i;
|
||||
|
||||
|
||||
|
||||
FUNCTION_TRACE ("TbRecognizeTable");
|
||||
|
||||
|
||||
@ -229,7 +229,7 @@ AcpiTbRecognizeTable (
|
||||
|
||||
TableHeader = (ACPI_TABLE_HEADER *) TableInfo->Pointer;
|
||||
if (!TableHeader)
|
||||
{
|
||||
{
|
||||
return_ACPI_STATUS (AE_BAD_PARAMETER);
|
||||
}
|
||||
|
||||
@ -256,7 +256,7 @@ AcpiTbRecognizeTable (
|
||||
TableInfo->Length = TableHeader->Length;
|
||||
|
||||
|
||||
/*
|
||||
/*
|
||||
* Validate checksum for _most_ tables,
|
||||
* even the ones whose signature we don't recognize
|
||||
*/
|
||||
@ -269,7 +269,7 @@ AcpiTbRecognizeTable (
|
||||
AcpiTbVerifyTableChecksum (TableHeader);
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* An AE_SUPPORT means that the table was not recognized.
|
||||
* We basically ignore this; just print a debug message
|
||||
*/
|
||||
@ -309,12 +309,12 @@ AcpiTbInitTableDescriptor (
|
||||
FUNCTION_TRACE_U32 ("TbInitTableDescriptor", TableType);
|
||||
|
||||
/*
|
||||
* Install the table into the global data structure
|
||||
* Install the table into the global data structure
|
||||
*/
|
||||
|
||||
|
||||
ListHead = &Acpi_GblAcpiTables[TableType];
|
||||
TableDesc = ListHead;
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
@ -338,7 +338,7 @@ AcpiTbInitTableDescriptor (
|
||||
}
|
||||
|
||||
|
||||
else
|
||||
else
|
||||
{
|
||||
/*
|
||||
* Multiple tables allowed for this table type, we must link
|
||||
@ -379,7 +379,7 @@ AcpiTbInitTableDescriptor (
|
||||
/* Common initialization of the table descriptor */
|
||||
|
||||
TableDesc->Pointer = TableInfo->Pointer;
|
||||
TableDesc->BasePointer = TableInfo->BasePointer;
|
||||
TableDesc->BasePointer = TableInfo->BasePointer;
|
||||
TableDesc->Length = TableInfo->Length;
|
||||
TableDesc->Allocation = TableInfo->Allocation;
|
||||
TableDesc->AmlPointer = (UINT8 *) (TableDesc->Pointer + 1),
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
*
|
||||
* Module Name: tbapi - Public interfaces to the ACPI subsystem
|
||||
* ACPI table oriented interfaces
|
||||
*
|
||||
@ -39,9 +39,9 @@
|
||||
* The above copyright and patent license is granted only if the following
|
||||
* conditions are met:
|
||||
*
|
||||
* 3. Conditions
|
||||
* 3. Conditions
|
||||
*
|
||||
* 3.1. Redistribution of Source with Rights to Further Distribute Source.
|
||||
* 3.1. Redistribution of Source with Rights to Further Distribute Source.
|
||||
* Redistribution of source code of any substantial portion of the Covered
|
||||
* Code or modification with rights to further distribute source must include
|
||||
* the above Copyright Notice, the above License, this list of Conditions,
|
||||
@ -49,11 +49,11 @@
|
||||
* Licensee must cause all Covered Code to which Licensee contributes to
|
||||
* contain a file documenting the changes Licensee made to create that Covered
|
||||
* Code and the date of any change. Licensee must include in that file the
|
||||
* documentation of any changes made by any predecessor Licensee. Licensee
|
||||
* documentation of any changes made by any predecessor Licensee. Licensee
|
||||
* must include a prominent statement that the modification is derived,
|
||||
* directly or indirectly, from Original Intel Code.
|
||||
*
|
||||
* 3.2. Redistribution of Source with no Rights to Further Distribute Source.
|
||||
* 3.2. Redistribution of Source with no Rights to Further Distribute Source.
|
||||
* Redistribution of source code of any substantial portion of the Covered
|
||||
* Code or modification without rights to further distribute source must
|
||||
* include the following Disclaimer and Export Compliance provision in the
|
||||
@ -87,7 +87,7 @@
|
||||
* INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
|
||||
* UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
|
||||
* PARTICULAR PURPOSE.
|
||||
* PARTICULAR PURPOSE.
|
||||
*
|
||||
* 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
|
||||
* OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
|
||||
@ -143,7 +143,7 @@ ACPI_STATUS
|
||||
AcpiLoadFirmwareTables (void)
|
||||
{
|
||||
ACPI_STATUS Status = AE_OK;
|
||||
UINT32 NumberOfTables = 0;
|
||||
UINT32 NumberOfTables = 0;
|
||||
|
||||
|
||||
FUNCTION_TRACE ("AcpiLoadFirmwareTables");
|
||||
@ -173,9 +173,9 @@ AcpiLoadFirmwareTables (void)
|
||||
return_ACPI_STATUS (AE_OK);
|
||||
|
||||
|
||||
ErrorExit:
|
||||
ErrorExit:
|
||||
DEBUG_PRINT (ACPI_ERROR, ("Failure during ACPI Table Init: %s\n", AcpiCmFormatException (Status)));
|
||||
|
||||
|
||||
return_ACPI_STATUS (Status);
|
||||
}
|
||||
|
||||
@ -220,7 +220,7 @@ AcpiLoadTable (
|
||||
{
|
||||
return_ACPI_STATUS (Status);
|
||||
}
|
||||
|
||||
|
||||
/* Install the new table into the local data structures */
|
||||
|
||||
Status = AcpiTbInstallTable (NULL, &TableInfo);
|
||||
@ -262,19 +262,19 @@ AcpiUnloadTable (
|
||||
return_ACPI_STATUS (AE_BAD_PARAMETER);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Find all tables of the requested type */
|
||||
|
||||
ListHead = &Acpi_GblAcpiTables[TableType];
|
||||
do
|
||||
{
|
||||
{
|
||||
/* Delete the entire namespace under this table NTE */
|
||||
|
||||
AcpiNsDeleteNamespaceByOwner (ListHead->TableId);
|
||||
|
||||
/* Delete (or unmap) the actual table */
|
||||
|
||||
AcpiTbDeleteAcpiTable (TableType);
|
||||
AcpiTbDeleteAcpiTable (TableType);
|
||||
|
||||
} while (ListHead != &Acpi_GblAcpiTables[TableType]);
|
||||
|
||||
@ -308,7 +308,7 @@ AcpiUnloadTable (
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiGetTableHeader (
|
||||
ACPI_TABLE_TYPE TableType,
|
||||
ACPI_TABLE_TYPE TableType,
|
||||
UINT32 Instance,
|
||||
ACPI_TABLE_HEADER *OutTableHeader)
|
||||
{
|
||||
@ -335,7 +335,7 @@ AcpiGetTableHeader (
|
||||
{
|
||||
return_ACPI_STATUS (AE_BAD_PARAMETER);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Get a pointer to the entire table */
|
||||
|
||||
@ -409,11 +409,11 @@ AcpiGetTable (
|
||||
if ((Instance == 0) ||
|
||||
(!RetBuffer) ||
|
||||
(!RetBuffer->Pointer) ||
|
||||
(!RetBuffer->Length))
|
||||
(!RetBuffer->Length))
|
||||
{
|
||||
return_ACPI_STATUS (AE_BAD_PARAMETER);
|
||||
}
|
||||
|
||||
|
||||
/* Check the table type and instance */
|
||||
|
||||
if ((TableType > ACPI_TABLE_MAX) ||
|
||||
@ -422,7 +422,7 @@ AcpiGetTable (
|
||||
{
|
||||
return_ACPI_STATUS (AE_BAD_PARAMETER);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Get a pointer to the entire table */
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
*
|
||||
* Module Name: tbfac - ACPI FAC* (FACP, FACS) utilities
|
||||
*
|
||||
*****************************************************************************/
|
||||
@ -38,9 +38,9 @@
|
||||
* The above copyright and patent license is granted only if the following
|
||||
* conditions are met:
|
||||
*
|
||||
* 3. Conditions
|
||||
* 3. Conditions
|
||||
*
|
||||
* 3.1. Redistribution of Source with Rights to Further Distribute Source.
|
||||
* 3.1. Redistribution of Source with Rights to Further Distribute Source.
|
||||
* Redistribution of source code of any substantial portion of the Covered
|
||||
* Code or modification with rights to further distribute source must include
|
||||
* the above Copyright Notice, the above License, this list of Conditions,
|
||||
@ -48,11 +48,11 @@
|
||||
* Licensee must cause all Covered Code to which Licensee contributes to
|
||||
* contain a file documenting the changes Licensee made to create that Covered
|
||||
* Code and the date of any change. Licensee must include in that file the
|
||||
* documentation of any changes made by any predecessor Licensee. Licensee
|
||||
* documentation of any changes made by any predecessor Licensee. Licensee
|
||||
* must include a prominent statement that the modification is derived,
|
||||
* directly or indirectly, from Original Intel Code.
|
||||
*
|
||||
* 3.2. Redistribution of Source with no Rights to Further Distribute Source.
|
||||
* 3.2. Redistribution of Source with no Rights to Further Distribute Source.
|
||||
* Redistribution of source code of any substantial portion of the Covered
|
||||
* Code or modification without rights to further distribute source must
|
||||
* include the following Disclaimer and Export Compliance provision in the
|
||||
@ -86,7 +86,7 @@
|
||||
* INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
|
||||
* UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
|
||||
* PARTICULAR PURPOSE.
|
||||
* PARTICULAR PURPOSE.
|
||||
*
|
||||
* 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
|
||||
* OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
|
||||
@ -136,7 +136,7 @@
|
||||
*
|
||||
* RETURN: Status
|
||||
*
|
||||
* DESCRIPTION: Returns a pointer to the FACS as defined in FACP. This
|
||||
* DESCRIPTION: Returns a pointer to the FACS as defined in FACP. This
|
||||
* function assumes the global variable FACP has been
|
||||
* correctly initialized. The value of FACP->FirmwareCtrl
|
||||
* into a far pointer which is returned.
|
||||
@ -145,7 +145,7 @@
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiTbGetTableFacs (
|
||||
char *BufferPtr,
|
||||
char *BufferPtr,
|
||||
ACPI_TABLE_DESC *TableInfo)
|
||||
{
|
||||
void *TablePtr = NULL;
|
||||
@ -163,7 +163,7 @@ AcpiTbGetTableFacs (
|
||||
{
|
||||
return_ACPI_STATUS (AE_NO_ACPI_TABLES);
|
||||
}
|
||||
|
||||
|
||||
Size = sizeof (FIRMWARE_ACPI_CONTROL_STRUCTURE);
|
||||
if (BufferPtr)
|
||||
{
|
||||
@ -178,22 +178,22 @@ AcpiTbGetTableFacs (
|
||||
}
|
||||
|
||||
MEMCPY (TablePtr, BufferPtr, Size);
|
||||
|
||||
|
||||
/* Save allocation type */
|
||||
|
||||
Allocation = ACPI_MEM_ALLOCATED;
|
||||
}
|
||||
|
||||
|
||||
else
|
||||
{
|
||||
/* Just map the physical memory to our address space */
|
||||
|
||||
Status = AcpiTbMapAcpiTable ((void *) Acpi_GblFACP->FirmwareCtrl, &Size, &TablePtr);
|
||||
Status = AcpiTbMapAcpiTable ((void *) Acpi_GblFACP->FirmwareCtrl, &Size, &TablePtr);
|
||||
if (ACPI_FAILURE(Status))
|
||||
{
|
||||
return_ACPI_STATUS (Status);
|
||||
}
|
||||
|
||||
|
||||
/* Save allocation type */
|
||||
|
||||
Allocation = ACPI_MEM_MAPPED;
|
||||
@ -206,7 +206,7 @@ AcpiTbGetTableFacs (
|
||||
TableInfo->Length = Size;
|
||||
TableInfo->Allocation = Allocation;
|
||||
TableInfo->BasePointer = TablePtr;
|
||||
|
||||
|
||||
return_ACPI_STATUS (Status);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user