]>
git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Library/BaseMemoryTestLibNull/BaseMemoryTestLibNull.c
2 Null instance of Memory Test Library.
4 Copyright (c) 2009, Intel Corporation.<BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #include <Library/MemoryTestLib.h>
18 Perform a quick system memory range test.
20 This function performs a quick system memory range test. It leads to quick performance
21 but least reliability.
23 @param StartAddress Start address of the memory range to test.
24 @param Length Length of the memory range to test.
25 @param ErrorAddress Address of the memory where error is encountered.
27 @retval RETURN_SUCCESS The memory range passes test.
28 @retval RETURN_DEVICE_ERROR The memory range does not pass test.
34 IN VOID
*StartAddress
,
36 OUT VOID
**ErrorAddress
39 return RETURN_SUCCESS
;
43 Test a system memory range with sparsely sampled memory units.
45 This function tests a system memory range, whose memory units
46 are sampled sparsely. It leads to relatively good performance
47 and partial reliability.
49 @param StartAddress Start address of the memory range to test.
50 @param Length Length of the memory range to test.
51 @param ErrorAddress Address of the memory where error is encountered.
53 @retval RETURN_SUCCESS The memory range passes test.
54 @retval RETURN_DEVICE_ERROR The memory range does not pass test.
60 IN VOID
*StartAddress
,
62 OUT VOID
**ErrorAddress
65 return RETURN_SUCCESS
;
69 Test a system memory range with extensively sampled memory units.
71 This function tests a system memory range, whose memory units
72 are sampled extensively. Compared with SparseMemoryTest, it achieves
73 more reliability and less performance.
75 @param StartAddress Start address of the memory range to test.
76 @param Length Length of the memory range to test.
77 @param ErrorAddress Address of the memory where error is encountered.
79 @retval RETURN_SUCCESS The memory range passes test.
80 @retval RETURN_DEVICE_ERROR The memory range does not pass test.
86 IN VOID
*StartAddress
,
88 OUT VOID
**ErrorAddress
91 return RETURN_SUCCESS
;
95 Check if soft ECC initialzation is needed for system
97 @retval TRUE Soft ECC initialzation is needed.
98 @retval FALSE Soft ECC initialzation is not needed.
103 IsSoftEccInitRequired (