From d11ad58418c773d73e5870f61285915bb901c1a9 Mon Sep 17 00:00:00 2001 From: xli24 Date: Fri, 13 Mar 2009 07:33:05 +0000 Subject: Rename BaseMemoryTestLib to MemoryTestLib. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7876 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Include/Library/BaseMemoryTestLib.h | 100 --------------------- MdeModulePkg/Include/Library/MemoryTestLib.h | 100 +++++++++++++++++++++ .../Library/BaseMemoryTestLib/BaseMemoryTestLib.c | 2 +- .../BaseMemoryTestLib/BaseMemoryTestLib.inf | 4 +- .../BaseMemoryTestLibNull/BaseMemoryTestLibNull.c | 2 +- .../BaseMemoryTestLibNull.inf | 4 +- MdeModulePkg/MdeModulePkg.dec | 2 +- MdeModulePkg/MdeModulePkg.dsc | 2 +- 8 files changed, 108 insertions(+), 108 deletions(-) delete mode 100644 MdeModulePkg/Include/Library/BaseMemoryTestLib.h create mode 100644 MdeModulePkg/Include/Library/MemoryTestLib.h (limited to 'MdeModulePkg') diff --git a/MdeModulePkg/Include/Library/BaseMemoryTestLib.h b/MdeModulePkg/Include/Library/BaseMemoryTestLib.h deleted file mode 100644 index 12c043c..0000000 --- a/MdeModulePkg/Include/Library/BaseMemoryTestLib.h +++ /dev/null @@ -1,100 +0,0 @@ -/** @file - Library class to provide APIs for system memory test. - -Copyright (c) 2009, Intel Corporation.
-All rights reserved. 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. - -**/ - -#ifndef _MEMORY_TEST_LIB_H_ -#define _MEMORY_TEST_LIB_H_ - - -/** - Perform a quick system memory range test. - - This function performs a quick system memory range test. It leads to quick performance - but least reliability. - - @param StartAddress Start address of the memory range to test. - @param Length Length of the memory range to test. - @param ErrorAddress Address of the memory where error is encountered. - - @retval RETURN_SUCCESS The memory range passes test. - @retval RETURN_DEVICE_ERROR The memory range does not pass test. - -**/ -RETURN_STATUS -EFIAPI -QuickMemoryTest ( - IN VOID *StartAddress, - IN UINT64 Length, - OUT VOID **ErrorAddress - ); - -/** - Test a system memory range with sparsely sampled memory units. - - This function tests a system memory range, whose memory units - are sampled sparsely. It leads to relatively good performance - and partial reliability. - - @param StartAddress Start address of the memory range to test. - @param Length Length of the memory range to test. - @param ErrorAddress Address of the memory where error is encountered. - - @retval RETURN_SUCCESS The memory range passes test. - @retval RETURN_DEVICE_ERROR The memory range does not pass test. - -**/ -RETURN_STATUS -EFIAPI -SparseMemoryTest ( - IN VOID *StartAddress, - IN UINT64 Length, - OUT VOID **ErrorAddress - ); - -/** - Test a system memory range with extensively sampled memory units. - - This function tests a system memory range, whose memory units - are sampled extensively. Compared with SparseMemoryTest, it achieves - more reliability and less performance. - - @param StartAddress Start address of the memory range to test. - @param Length Length of the memory range to test. - @param ErrorAddress Address of the memory where error is encountered. - - @retval RETURN_SUCCESS The memory range passes test. - @retval RETURN_DEVICE_ERROR The memory range does not pass test. - -**/ -RETURN_STATUS -EFIAPI -ExtensiveMemoryTest ( - IN VOID *StartAddress, - IN UINT64 Length, - OUT VOID **ErrorAddress - ); - -/** - Check if soft ECC initialzation is needed for system - - @retval TRUE Soft ECC initialzation is needed. - @retval FALSE Soft ECC initialzation is not needed. - -**/ -BOOLEAN -EFIAPI -IsSoftEccInitRequired ( - VOID - ); - -#endif diff --git a/MdeModulePkg/Include/Library/MemoryTestLib.h b/MdeModulePkg/Include/Library/MemoryTestLib.h new file mode 100644 index 0000000..12c043c --- /dev/null +++ b/MdeModulePkg/Include/Library/MemoryTestLib.h @@ -0,0 +1,100 @@ +/** @file + Library class to provide APIs for system memory test. + +Copyright (c) 2009, Intel Corporation.
+All rights reserved. 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. + +**/ + +#ifndef _MEMORY_TEST_LIB_H_ +#define _MEMORY_TEST_LIB_H_ + + +/** + Perform a quick system memory range test. + + This function performs a quick system memory range test. It leads to quick performance + but least reliability. + + @param StartAddress Start address of the memory range to test. + @param Length Length of the memory range to test. + @param ErrorAddress Address of the memory where error is encountered. + + @retval RETURN_SUCCESS The memory range passes test. + @retval RETURN_DEVICE_ERROR The memory range does not pass test. + +**/ +RETURN_STATUS +EFIAPI +QuickMemoryTest ( + IN VOID *StartAddress, + IN UINT64 Length, + OUT VOID **ErrorAddress + ); + +/** + Test a system memory range with sparsely sampled memory units. + + This function tests a system memory range, whose memory units + are sampled sparsely. It leads to relatively good performance + and partial reliability. + + @param StartAddress Start address of the memory range to test. + @param Length Length of the memory range to test. + @param ErrorAddress Address of the memory where error is encountered. + + @retval RETURN_SUCCESS The memory range passes test. + @retval RETURN_DEVICE_ERROR The memory range does not pass test. + +**/ +RETURN_STATUS +EFIAPI +SparseMemoryTest ( + IN VOID *StartAddress, + IN UINT64 Length, + OUT VOID **ErrorAddress + ); + +/** + Test a system memory range with extensively sampled memory units. + + This function tests a system memory range, whose memory units + are sampled extensively. Compared with SparseMemoryTest, it achieves + more reliability and less performance. + + @param StartAddress Start address of the memory range to test. + @param Length Length of the memory range to test. + @param ErrorAddress Address of the memory where error is encountered. + + @retval RETURN_SUCCESS The memory range passes test. + @retval RETURN_DEVICE_ERROR The memory range does not pass test. + +**/ +RETURN_STATUS +EFIAPI +ExtensiveMemoryTest ( + IN VOID *StartAddress, + IN UINT64 Length, + OUT VOID **ErrorAddress + ); + +/** + Check if soft ECC initialzation is needed for system + + @retval TRUE Soft ECC initialzation is needed. + @retval FALSE Soft ECC initialzation is not needed. + +**/ +BOOLEAN +EFIAPI +IsSoftEccInitRequired ( + VOID + ); + +#endif diff --git a/MdeModulePkg/Library/BaseMemoryTestLib/BaseMemoryTestLib.c b/MdeModulePkg/Library/BaseMemoryTestLib/BaseMemoryTestLib.c index c939450..878b755 100644 --- a/MdeModulePkg/Library/BaseMemoryTestLib/BaseMemoryTestLib.c +++ b/MdeModulePkg/Library/BaseMemoryTestLib/BaseMemoryTestLib.c @@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ #include -#include +#include #include #include #include diff --git a/MdeModulePkg/Library/BaseMemoryTestLib/BaseMemoryTestLib.inf b/MdeModulePkg/Library/BaseMemoryTestLib/BaseMemoryTestLib.inf index f1bd888..ff6273e 100644 --- a/MdeModulePkg/Library/BaseMemoryTestLib/BaseMemoryTestLib.inf +++ b/MdeModulePkg/Library/BaseMemoryTestLib/BaseMemoryTestLib.inf @@ -18,7 +18,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. FILE_GUID = 216CAA56-AF75-4BBB-9D74-CC0960E92ECB MODULE_TYPE = BASE VERSION_STRING = 1.0 - LIBRARY_CLASS = BaseMemoryTestLib + LIBRARY_CLASS = MemoryTestLib # # The following information is for reference only and not required by the build tools. @@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. MdeModulePkg/MdeModulePkg.dec [LibraryClasses] - BaseMemoryTestLib + MemoryTestLib BaseMemoryLib CacheMaintenanceLib DebugLib diff --git a/MdeModulePkg/Library/BaseMemoryTestLibNull/BaseMemoryTestLibNull.c b/MdeModulePkg/Library/BaseMemoryTestLibNull/BaseMemoryTestLibNull.c index e88a225..747fc16 100644 --- a/MdeModulePkg/Library/BaseMemoryTestLibNull/BaseMemoryTestLibNull.c +++ b/MdeModulePkg/Library/BaseMemoryTestLibNull/BaseMemoryTestLibNull.c @@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ #include -#include +#include /** Perform a quick system memory range test. diff --git a/MdeModulePkg/Library/BaseMemoryTestLibNull/BaseMemoryTestLibNull.inf b/MdeModulePkg/Library/BaseMemoryTestLibNull/BaseMemoryTestLibNull.inf index 79f1395f..3587516 100644 --- a/MdeModulePkg/Library/BaseMemoryTestLibNull/BaseMemoryTestLibNull.inf +++ b/MdeModulePkg/Library/BaseMemoryTestLibNull/BaseMemoryTestLibNull.inf @@ -18,7 +18,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. FILE_GUID = D519E511-9C1C-47F5-AE01-FD216E779269 MODULE_TYPE = BASE VERSION_STRING = 1.0 - LIBRARY_CLASS = BaseMemoryTestLib + LIBRARY_CLASS = MemoryTestLib # # The following information is for reference only and not required by the build tools. @@ -34,4 +34,4 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. MdeModulePkg/MdeModulePkg.dec [LibraryClasses] - BaseMemoryTestLib + MemoryTestLib diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec index ebd59e1..9a07e3f 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -78,7 +78,7 @@ ## @libraryclass Provides APIs for system memory test. ## - BaseMemoryTestLib|Include/Library/BaseMemoryTestLib.h + MemoryTestLib|Include/Library/MemoryTestLib.h [Guids.common] ## MdeModule package token space guid diff --git a/MdeModulePkg/MdeModulePkg.dsc b/MdeModulePkg/MdeModulePkg.dsc index 59c33d6..9fab0b9 100644 --- a/MdeModulePkg/MdeModulePkg.dsc +++ b/MdeModulePkg/MdeModulePkg.dsc @@ -77,7 +77,7 @@ PlatformDriverOverrideLib|MdeModulePkg/Library/DxePlatDriOverLib/DxePlatDriOverLib.inf HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf - BaseMemoryTestLib|MdeModulePkg/Library/BaseMemoryTestLibNull/BaseMemoryTestLibNull.inf + MemoryTestLib|MdeModulePkg/Library/BaseMemoryTestLibNull/BaseMemoryTestLibNull.inf [LibraryClasses.IA32] IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf -- cgit v1.1