IntelFrameworkModulePkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
This is an implementation of the ACPI S3 Save protocol. This is defined in
|
||||
S3 boot path specification 0.9.
|
||||
|
||||
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions
|
||||
@@ -55,7 +55,7 @@ EFI_ACPI_S3_SAVE_PROTOCOL mS3Save = {
|
||||
|
||||
@param MemoryType Memory type of memory to allocate.
|
||||
@param Size Size of memory to allocate.
|
||||
|
||||
|
||||
@return Allocated address for output.
|
||||
|
||||
**/
|
||||
@@ -88,7 +88,7 @@ AllocateMemoryBelow4G (
|
||||
}
|
||||
|
||||
/**
|
||||
Gets the buffer of legacy memory below 1 MB
|
||||
Gets the buffer of legacy memory below 1 MB
|
||||
This function is to get the buffer in legacy memory below 1MB that is required during S3 resume.
|
||||
|
||||
@param This A pointer to the EFI_ACPI_S3_SAVE_PROTOCOL instance.
|
||||
@@ -115,9 +115,9 @@ LegacyGetS3MemorySize (
|
||||
|
||||
/**
|
||||
Prepares all information that is needed in the S3 resume boot path.
|
||||
|
||||
Allocate the resources or prepare informations and save in ACPI variable set for S3 resume boot path
|
||||
|
||||
|
||||
Allocate the resources or prepare informations and save in ACPI variable set for S3 resume boot path
|
||||
|
||||
@param This A pointer to the EFI_ACPI_S3_SAVE_PROTOCOL instance.
|
||||
@param LegacyMemoryAddress The base address of legacy memory.
|
||||
|
||||
@@ -156,9 +156,9 @@ S3Ready (
|
||||
|
||||
/**
|
||||
The Driver Entry Point.
|
||||
|
||||
|
||||
The function is the driver Entry point which will produce AcpiS3SaveProtocol.
|
||||
|
||||
|
||||
@param ImageHandle A handle for the image that is initializing this driver
|
||||
@param SystemTable A pointer to the EFI system table
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
/** @file
|
||||
This is an implementation of the ACPI S3 Save protocol. This is defined in
|
||||
This is an implementation of the ACPI S3 Save protocol. This is defined in
|
||||
S3 boot path specification 0.9.
|
||||
|
||||
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions
|
||||
@@ -19,7 +19,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#define _ACPI_S3_SAVE_H_
|
||||
|
||||
/**
|
||||
Gets the buffer of legacy memory below 1 MB
|
||||
Gets the buffer of legacy memory below 1 MB
|
||||
This function is to get the buffer in legacy memory below 1MB that is required during S3 resume.
|
||||
|
||||
@param This A pointer to the EFI_ACPI_S3_SAVE_PROTOCOL instance.
|
||||
@@ -38,9 +38,9 @@ LegacyGetS3MemorySize (
|
||||
|
||||
/**
|
||||
Prepares all information that is needed in the S3 resume boot path.
|
||||
|
||||
Allocate the resources or prepare informations and save in ACPI variable set for S3 resume boot path
|
||||
|
||||
|
||||
Allocate the resources or prepare informations and save in ACPI variable set for S3 resume boot path
|
||||
|
||||
@param This A pointer to the EFI_ACPI_S3_SAVE_PROTOCOL instance.
|
||||
@param LegacyMemoryAddress The base address of legacy memory.
|
||||
|
||||
@@ -54,6 +54,6 @@ EFI_STATUS
|
||||
EFIAPI
|
||||
S3Ready (
|
||||
IN EFI_ACPI_S3_SAVE_PROTOCOL *This,
|
||||
IN VOID *LegacyMemoryAddress
|
||||
IN VOID *LegacyMemoryAddress
|
||||
);
|
||||
#endif
|
||||
|
@@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# AcpiS3Save module installs ACPI S3 Save protocol to prepare S3 boot data.
|
||||
#
|
||||
# Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials are
|
||||
# licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -73,7 +73,7 @@
|
||||
[Depex]
|
||||
#
|
||||
# Note: the extra dependency of gEfiMpServiceProtocolGuid is to ensure that ACPI variable is set by MpDxe driver before
|
||||
# AcpiS3SaveDxe module is executed.
|
||||
# AcpiS3SaveDxe module is executed.
|
||||
#
|
||||
gEfiVariableArchProtocolGuid AND gEfiVariableWriteArchProtocolGuid AND gEfiMpServiceProtocolGuid
|
||||
|
||||
|
@@ -3,13 +3,13 @@
|
||||
//
|
||||
// AcpiS3Save module installs ACPI S3 Save protocol to prepare S3 boot data.
|
||||
//
|
||||
// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// This program and the accompanying materials are
|
||||
// licensed and made available under the terms and conditions of the BSD License
|
||||
// which accompanies this distribution. The full text of the license may be found at
|
||||
// http://opensource.org/licenses/bsd-license.php
|
||||
//
|
||||
//
|
||||
// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// /** @file
|
||||
// AcpiS3SaveDxe Localized Strings and Content
|
||||
//
|
||||
// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// This program and the accompanying materials are
|
||||
// licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -13,8 +13,8 @@
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
"ACPI S3 Save State DXE Driver"
|
||||
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
This is an implementation of the AcpiVariable platform field for ECP platform.
|
||||
|
||||
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions
|
||||
@@ -25,8 +25,8 @@ typedef struct {
|
||||
ACPI_CPU_DATA_COMPATIBILITY AcpiCpuData;
|
||||
EFI_PHYSICAL_ADDRESS VideoOpromAddress;
|
||||
UINT32 VideoOpromSize;
|
||||
EFI_PHYSICAL_ADDRESS S3DebugBufferAddress;
|
||||
EFI_PHYSICAL_ADDRESS S3ResumeNvsEntryPoint;
|
||||
EFI_PHYSICAL_ADDRESS S3DebugBufferAddress;
|
||||
EFI_PHYSICAL_ADDRESS S3ResumeNvsEntryPoint;
|
||||
} ACPI_VARIABLE_SET_COMPATIBILITY;
|
||||
|
||||
**/
|
||||
@@ -54,7 +54,7 @@ ACPI_VARIABLE_SET_COMPATIBILITY *mAcpiVariableSetCompatibility = N
|
||||
|
||||
@param MemoryType Memory type of memory to allocate.
|
||||
@param Size Size of memory to allocate.
|
||||
|
||||
|
||||
@return Allocated address for output.
|
||||
|
||||
**/
|
||||
@@ -167,8 +167,8 @@ InstallAcpiS3SaveThunk (
|
||||
);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
//
|
||||
// On ECP platform, if framework CPU drivers are in use, The compatible version of ACPI variable set
|
||||
// should be produced by CPU driver.
|
||||
// On ECP platform, if framework CPU drivers are in use, The compatible version of ACPI variable set
|
||||
// should be produced by CPU driver.
|
||||
//
|
||||
VarSize = sizeof (mAcpiVariableSetCompatibility);
|
||||
Status = gRT->GetVariable (
|
||||
@@ -184,7 +184,7 @@ InstallAcpiS3SaveThunk (
|
||||
}
|
||||
} else {
|
||||
//
|
||||
// Allocate/initialize the compatible version of Acpi Variable Set since Framework chipset/platform
|
||||
// Allocate/initialize the compatible version of Acpi Variable Set since Framework chipset/platform
|
||||
// driver need this variable. ACPI_GLOBAL_VARIABLE variable is not used in runtime phase,
|
||||
// so RT attribute is not needed for it.
|
||||
//
|
||||
|
@@ -1,8 +1,8 @@
|
||||
/** @file
|
||||
This is an implementation of the ACPI Support protocol. This is defined in
|
||||
This is an implementation of the ACPI Support protocol. This is defined in
|
||||
the Tiano ACPI External Product Specification, revision 0.3.6.
|
||||
|
||||
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions
|
||||
@@ -26,14 +26,14 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
EFI_HANDLE mHandle = NULL;
|
||||
|
||||
/**
|
||||
Entry point of the ACPI support driver. This function creates and initializes an instance of the ACPI Support
|
||||
Entry point of the ACPI support driver. This function creates and initializes an instance of the ACPI Support
|
||||
Protocol and installs it on a new handle.
|
||||
|
||||
@param ImageHandle A handle for the image that is initializing this driver
|
||||
@param SystemTable A pointer to the EFI system table
|
||||
@param SystemTable A pointer to the EFI system table
|
||||
|
||||
@retval EFI_SUCCESS Driver initialized successfully
|
||||
@retval EFI_LOAD_ERROR Failed to Initialize or has been loaded
|
||||
@retval EFI_LOAD_ERROR Failed to Initialize or has been loaded
|
||||
@retval EFI_OUT_OF_RESOURCES Could not allocate needed resources
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -85,7 +85,7 @@ InstallAcpiSupport (
|
||||
NULL
|
||||
);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
}
|
||||
}
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
This is an implementation of the ACPI Support protocol.
|
||||
It is in compliance with the 0.9 definition of the protocol.
|
||||
|
||||
Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions
|
||||
@@ -131,12 +131,12 @@ typedef struct {
|
||||
AcpiTableProtocol, \
|
||||
EFI_ACPI_SUPPORT_SIGNATURE \
|
||||
)
|
||||
|
||||
|
||||
/**
|
||||
Constructor for the ACPI support protocol.
|
||||
|
||||
Constructor for the ACPI support protocol.
|
||||
|
||||
Constructor for the ACPI support protocol to initializes instance data.
|
||||
|
||||
|
||||
@param AcpiSupportInstance Instance to construct
|
||||
|
||||
@retval EFI_SUCCESS Instance initialized.
|
||||
@@ -147,14 +147,14 @@ AcpiSupportAcpiSupportConstructor (
|
||||
IN EFI_ACPI_SUPPORT_INSTANCE *AcpiSupportInstance
|
||||
);
|
||||
/**
|
||||
Entry point of the ACPI support driver. This function creates and initializes an instance of the ACPI Support
|
||||
Entry point of the ACPI support driver. This function creates and initializes an instance of the ACPI Support
|
||||
Protocol and installs it on a new handle.
|
||||
|
||||
@param ImageHandle A handle for the image that is initializing this driver
|
||||
@param SystemTable A pointer to the EFI system table
|
||||
@param SystemTable A pointer to the EFI system table
|
||||
|
||||
@retval EFI_SUCCESS Driver initialized successfully
|
||||
@retval EFI_LOAD_ERROR Failed to Initialize or has been loaded
|
||||
@retval EFI_LOAD_ERROR Failed to Initialize or has been loaded
|
||||
@retval EFI_OUT_OF_RESOURCES Could not allocate needed resources
|
||||
**/
|
||||
EFI_STATUS
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
ACPI Support Protocol implementation
|
||||
|
||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions
|
||||
@@ -19,9 +19,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
//
|
||||
#include "AcpiSupport.h"
|
||||
//
|
||||
// The maximum number of tables that pre-allocated.
|
||||
// The maximum number of tables that pre-allocated.
|
||||
//
|
||||
UINTN mEfiAcpiMaxNumTables = EFI_ACPI_MAX_NUM_TABLES;
|
||||
UINTN mEfiAcpiMaxNumTables = EFI_ACPI_MAX_NUM_TABLES;
|
||||
/**
|
||||
This function adds an ACPI table to the table list. It will detect FACS and
|
||||
allocate the correct type of memory and properly align the table.
|
||||
@@ -91,10 +91,10 @@ ChecksumCommonTables (
|
||||
);
|
||||
|
||||
/**
|
||||
This function returns a table specified by an index if it exists.
|
||||
|
||||
The function returns a buffer containing the table that the caller must free.
|
||||
The function also returns a handle used to identify the table for update or
|
||||
This function returns a table specified by an index if it exists.
|
||||
|
||||
The function returns a buffer containing the table that the caller must free.
|
||||
The function also returns a handle used to identify the table for update or
|
||||
deletion using the SetAcpiTable function.
|
||||
|
||||
@param This Instance of the protocol.
|
||||
@@ -165,7 +165,7 @@ GetAcpiTable (
|
||||
}
|
||||
/**
|
||||
This function adds, removes, or updates ACPI tables. If the address is not
|
||||
null and the handle value is null, the table is added. If both the address and
|
||||
null and the handle value is null, the table is added. If both the address and
|
||||
handle are not null, the table at handle is updated with the table at address.
|
||||
If the address is null and the handle is not, the table at handle is deleted.
|
||||
|
||||
@@ -371,7 +371,7 @@ PublishTables (
|
||||
@param TableKey Reurns a key to refer to the ACPI table.
|
||||
|
||||
@return EFI_SUCCESS The table was successfully inserted.
|
||||
@return EFI_INVALID_PARAMETER Either AcpiTableBuffer is NULL, TableKey is NULL, or AcpiTableBufferSize
|
||||
@return EFI_INVALID_PARAMETER Either AcpiTableBuffer is NULL, TableKey is NULL, or AcpiTableBufferSize
|
||||
and the size field embedded in the ACPI table pointed to by AcpiTableBuffer
|
||||
are not in sync.
|
||||
@return EFI_OUT_OF_RESOURCES Insufficient resources exist to complete the request.
|
||||
@@ -427,7 +427,7 @@ InstallAcpiTable (
|
||||
);
|
||||
}
|
||||
FreePool (AcpiTableBufferConst);
|
||||
|
||||
|
||||
return Status;
|
||||
}
|
||||
/**
|
||||
@@ -500,7 +500,7 @@ ReallocateAcpiTableBuffer (
|
||||
EFI_STATUS Status;
|
||||
UINT64 CurrentData;
|
||||
|
||||
CopyMem (&TempPrivateData, AcpiSupportInstance, sizeof (EFI_ACPI_SUPPORT_INSTANCE));
|
||||
CopyMem (&TempPrivateData, AcpiSupportInstance, sizeof (EFI_ACPI_SUPPORT_INSTANCE));
|
||||
//
|
||||
// Enlarge the max table number from mEfiAcpiMaxNumTables to mEfiAcpiMaxNumTables + EFI_ACPI_MAX_NUM_TABLES
|
||||
//
|
||||
@@ -538,7 +538,7 @@ ReallocateAcpiTableBuffer (
|
||||
|
||||
Pointer = (UINT8 *) (UINTN) PageAddress;
|
||||
ZeroMem (Pointer, TotalSize);
|
||||
|
||||
|
||||
AcpiSupportInstance->Rsdt1 = (EFI_ACPI_DESCRIPTION_HEADER *) Pointer;
|
||||
Pointer += (sizeof (EFI_ACPI_DESCRIPTION_HEADER) + NewMaxTableNumber * sizeof (UINT32));
|
||||
AcpiSupportInstance->Rsdt3 = (EFI_ACPI_DESCRIPTION_HEADER *) Pointer;
|
||||
@@ -554,12 +554,12 @@ ReallocateAcpiTableBuffer (
|
||||
CopyMem (&AcpiSupportInstance->Rsdp3->XsdtAddress, &CurrentData, sizeof (UINT64));
|
||||
|
||||
//
|
||||
// copy the original Rsdt1, Rsdt3 and Xsdt structure to new buffer
|
||||
// copy the original Rsdt1, Rsdt3 and Xsdt structure to new buffer
|
||||
//
|
||||
CopyMem (AcpiSupportInstance->Rsdt1, TempPrivateData.Rsdt1, (sizeof (EFI_ACPI_DESCRIPTION_HEADER) + mEfiAcpiMaxNumTables * sizeof (UINT32)));
|
||||
CopyMem (AcpiSupportInstance->Rsdt3, TempPrivateData.Rsdt3, (sizeof (EFI_ACPI_DESCRIPTION_HEADER) + mEfiAcpiMaxNumTables * sizeof (UINT32)));
|
||||
CopyMem (AcpiSupportInstance->Rsdt1, TempPrivateData.Rsdt1, (sizeof (EFI_ACPI_DESCRIPTION_HEADER) + mEfiAcpiMaxNumTables * sizeof (UINT32)));
|
||||
CopyMem (AcpiSupportInstance->Rsdt3, TempPrivateData.Rsdt3, (sizeof (EFI_ACPI_DESCRIPTION_HEADER) + mEfiAcpiMaxNumTables * sizeof (UINT32)));
|
||||
CopyMem (AcpiSupportInstance->Xsdt, TempPrivateData.Xsdt, (sizeof (EFI_ACPI_DESCRIPTION_HEADER) + mEfiAcpiMaxNumTables * sizeof (UINT64)));
|
||||
|
||||
|
||||
//
|
||||
// Calculate orignal ACPI table buffer size
|
||||
//
|
||||
@@ -570,10 +570,10 @@ ReallocateAcpiTableBuffer (
|
||||
sizeof (EFI_ACPI_DESCRIPTION_HEADER) + // for ACPI 2.0/3.0 XSDT
|
||||
mEfiAcpiMaxNumTables * sizeof (UINT64);
|
||||
gBS->FreePages ((EFI_PHYSICAL_ADDRESS)(UINTN)TempPrivateData.Rsdt1, EFI_SIZE_TO_PAGES (TotalSize));
|
||||
|
||||
|
||||
//
|
||||
// Update the Max ACPI table number
|
||||
//
|
||||
//
|
||||
mEfiAcpiMaxNumTables = NewMaxTableNumber;
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
@@ -650,7 +650,7 @@ AddTableToList (
|
||||
//
|
||||
// Allocation memory type depends on the type of the table
|
||||
//
|
||||
if ((CurrentTableSignature == EFI_ACPI_2_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE) ||
|
||||
if ((CurrentTableSignature == EFI_ACPI_2_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE) ||
|
||||
(CurrentTableSignature == EFI_ACPI_4_0_UEFI_ACPI_DATA_TABLE_SIGNATURE)) {
|
||||
//
|
||||
// Allocate memory for the FACS. This structure must be aligned
|
||||
@@ -778,7 +778,7 @@ AddTableToList (
|
||||
|
||||
//
|
||||
// Update pointers in FADT. If tables don't exist this will put NULL pointers there.
|
||||
// Note: If the FIRMWARE_CTRL is non-zero, then X_FIRMWARE_CTRL must be zero, and
|
||||
// Note: If the FIRMWARE_CTRL is non-zero, then X_FIRMWARE_CTRL must be zero, and
|
||||
// vice-versa.
|
||||
//
|
||||
if ((UINT64)(UINTN)AcpiSupportInstance->Facs3 < BASE_4GB) {
|
||||
@@ -913,7 +913,7 @@ AddTableToList (
|
||||
//
|
||||
if (AcpiSupportInstance->Fadt3 != NULL) {
|
||||
//
|
||||
// Note: If the FIRMWARE_CTRL is non-zero, then X_FIRMWARE_CTRL must be zero, and
|
||||
// Note: If the FIRMWARE_CTRL is non-zero, then X_FIRMWARE_CTRL must be zero, and
|
||||
// vice-versa.
|
||||
//
|
||||
if ((UINT64)(UINTN)AcpiSupportInstance->Facs3 < BASE_4GB) {
|
||||
@@ -984,7 +984,7 @@ AddTableToList (
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((Version & EFI_ACPI_TABLE_VERSION_2_0) != 0 ||
|
||||
(Version & EFI_ACPI_TABLE_VERSION_3_0) != 0) {
|
||||
//
|
||||
@@ -1014,7 +1014,7 @@ AddTableToList (
|
||||
Checksum)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
//
|
||||
// Checksum the table
|
||||
//
|
||||
@@ -1094,7 +1094,7 @@ AddTableToList (
|
||||
if (AcpiSupportInstance->NumberOfTableEntries3 >= mEfiAcpiMaxNumTables) {
|
||||
Status = ReallocateAcpiTableBuffer (AcpiSupportInstance);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
}
|
||||
}
|
||||
//
|
||||
// At this time, it is assumed that RSDT and XSDT maintain parallel lists of tables.
|
||||
// If it becomes necessary to maintain separate table lists, changes will be required.
|
||||
@@ -1159,7 +1159,7 @@ AddTableToList (
|
||||
|
||||
@param Handle Table to find.
|
||||
@param TableList Table list to search
|
||||
@param Table Pointer to table found.
|
||||
@param Table Pointer to table found.
|
||||
|
||||
@return EFI_SUCCESS The function completed successfully.
|
||||
@return EFI_NOT_FOUND No table found matching the handle specified.
|
||||
@@ -1207,7 +1207,7 @@ FindTableByHandle (
|
||||
For Acpi 1.0 tables, pass in the Rsdt.
|
||||
For Acpi 2.0 tables, pass in both Rsdt and Xsdt.
|
||||
|
||||
@param Table Pointer to table found.
|
||||
@param Table Pointer to table found.
|
||||
@param NumberOfTableEntries Current number of table entries in the RSDT/XSDT
|
||||
@param Rsdt Pointer to the RSDT to remove from
|
||||
@param Xsdt Pointer to the Xsdt to remove from
|
||||
@@ -1417,11 +1417,11 @@ DeleteTable (
|
||||
//
|
||||
if (Version & EFI_ACPI_TABLE_VERSION_2_0 & Table->Version) {
|
||||
Table->Version = Table->Version &~EFI_ACPI_TABLE_VERSION_2_0;
|
||||
}
|
||||
}
|
||||
if (Version & EFI_ACPI_TABLE_VERSION_3_0 & Table->Version) {
|
||||
Table->Version = Table->Version &~EFI_ACPI_TABLE_VERSION_3_0;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Remove from Rsdt and Xsdt. We don't care about the return value
|
||||
// because it is acceptable for the table to not exist in Rsdt/Xsdt.
|
||||
@@ -1435,7 +1435,7 @@ DeleteTable (
|
||||
AcpiSupportInstance->Xsdt
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
//
|
||||
// Free the table, clean up any dependent tables and our private data pointers.
|
||||
//
|
||||
@@ -1495,7 +1495,7 @@ DeleteTable (
|
||||
Checksum)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case EFI_ACPI_3_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE:
|
||||
@@ -1520,7 +1520,7 @@ DeleteTable (
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ((Version & EFI_ACPI_TABLE_VERSION_2_0) != 0 ||
|
||||
(Version & EFI_ACPI_TABLE_VERSION_3_0) != 0) {
|
||||
AcpiSupportInstance->Dsdt3 = NULL;
|
||||
@@ -1733,12 +1733,12 @@ ChecksumCommonTables (
|
||||
OFFSET_OF (EFI_ACPI_DESCRIPTION_HEADER,
|
||||
Checksum)
|
||||
);
|
||||
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
/**
|
||||
/**
|
||||
Constructor for the ACPI support protocol to initializes instance data.
|
||||
|
||||
|
||||
@param AcpiSupportInstance Instance to construct
|
||||
|
||||
@retval EFI_SUCCESS Instance initialized.
|
||||
@@ -1769,7 +1769,7 @@ AcpiSupportAcpiSupportConstructor (
|
||||
|
||||
AcpiSupportInstance->AcpiTableProtocol.InstallAcpiTable = InstallAcpiTable;
|
||||
AcpiSupportInstance->AcpiTableProtocol.UninstallAcpiTable = UninstallAcpiTable;
|
||||
|
||||
|
||||
//
|
||||
// Create RSDP table
|
||||
//
|
||||
|
@@ -1,10 +1,10 @@
|
||||
## @file
|
||||
# Acpi Support Dirver to install Framework Acpi Support Protocol.
|
||||
#
|
||||
# This driver initializes ACPI support protocol instance data structure and intstall
|
||||
# This driver initializes ACPI support protocol instance data structure and intstall
|
||||
# ACPI support protocol to provide Get, Set and Publish Table services.
|
||||
#
|
||||
# Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions
|
||||
|
@@ -4,14 +4,14 @@
|
||||
// This driver initializes ACPI support protocol instance data structure and intstall
|
||||
// ACPI support protocol to provide Get, Set and Publish Table services.
|
||||
//
|
||||
// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// This program and the accompanying materials
|
||||
// are licensed and made available under the terms and conditions
|
||||
// of the BSD License which accompanies this distribution. The
|
||||
// full text of the license may be found at
|
||||
// http://opensource.org/licenses/bsd-license.php
|
||||
//
|
||||
//
|
||||
// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// /** @file
|
||||
// AcpiSupportDxe Localized Strings and Content
|
||||
//
|
||||
// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// This program and the accompanying materials
|
||||
// are licensed and made available under the terms and conditions
|
||||
@@ -14,8 +14,8 @@
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
"ACPI Support DXE Driver"
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user