]>
git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Include/Library/BaseMemoryTestLib.h
ec384de83e9ceb262adb07afcca52cee9bd19f3f
2 Library class to provide APIs for system memory test.
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 #ifndef _MEMORY_TEST_LIB_H_
16 #define _MEMORY_TEST_LIB_H_
20 Test a system memory range with sparsely sampled memory units.
22 This function tests a system memory range, whose memory units
23 are sampled sparsely. It leads to quick performance but less
26 @param StartAddress Start address of the memory range to test.
27 @param Length Length of the memory range to test.
28 @param ErrorAddress Address of the memory where error is encountered.
30 @retval RETURN_SUCCESS The memory range passes test.
31 @retval RETURNEFI_DEVICE_ERROR The memory range does not pass test.
37 IN VOID
*StartAddress
,
39 OUT VOID
**ErrorAddress
43 Test a system memory range with extensively sampled memory units.
45 This function tests a system memory range, whose memory units
46 are sampled extensively. Compared with SparseMemoryTest, it achieves
47 more reliability and less performance.
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 RETURNEFI_DEVICE_ERROR The memory range does not pass test.
60 IN VOID
*StartAddress
,
62 OUT VOID
**ErrorAddress
66 Test a system memory range with every memory unit checked.
68 This function tests a system memory range, whose memory units
69 are fully checked. It leads to complete reliability with the
72 @param StartAddress Start address of the memory range to test.
73 @param Length Length of the memory range to test.
74 @param ErrorAddress Address of the memory where error is encountered.
76 @retval RETURN_SUCCESS The memory range passes test.
77 @retval RETURNEFI_DEVICE_ERROR The memory range does not pass test.
83 IN VOID
*StartAddress
,
85 OUT VOID
**ErrorAddress