]>
Commit | Line | Data |
---|---|---|
ad801d01 | 1 | /** @file\r |
2 | Null instance of Memory Test Library.\r | |
3 | \r | |
4 | Copyright (c) 2009, Intel Corporation.<BR>\r | |
5 | All rights reserved. This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | **/\r | |
13 | \r | |
14 | #include <Base.h>\r | |
d11ad584 | 15 | #include <Library/MemoryTestLib.h>\r |
ad801d01 | 16 | \r |
17 | /**\r | |
b6ee92ec | 18 | Perform a quick system memory range test.\r |
ad801d01 | 19 | \r |
b6ee92ec | 20 | This function performs a quick system memory range test. It leads to quick performance\r |
21 | but least reliability.\r | |
ad801d01 | 22 | \r |
23 | @param StartAddress Start address of the memory range to test.\r | |
24 | @param Length Length of the memory range to test.\r | |
25 | @param ErrorAddress Address of the memory where error is encountered.\r | |
26 | \r | |
27 | @retval RETURN_SUCCESS The memory range passes test.\r | |
b6ee92ec | 28 | @retval RETURN_DEVICE_ERROR The memory range does not pass test.\r |
ad801d01 | 29 | \r |
30 | **/\r | |
31 | RETURN_STATUS\r | |
32 | EFIAPI\r | |
b6ee92ec | 33 | QuickMemoryTest (\r |
ad801d01 | 34 | IN VOID *StartAddress,\r |
35 | IN UINT64 Length,\r | |
36 | OUT VOID **ErrorAddress\r | |
37 | )\r | |
38 | {\r | |
39 | return RETURN_SUCCESS;\r | |
40 | }\r | |
41 | \r | |
42 | /**\r | |
b6ee92ec | 43 | Test a system memory range with sparsely sampled memory units.\r |
ad801d01 | 44 | \r |
45 | This function tests a system memory range, whose memory units\r | |
b6ee92ec | 46 | are sampled sparsely. It leads to relatively good performance\r |
47 | and partial reliability.\r | |
ad801d01 | 48 | \r |
49 | @param StartAddress Start address of the memory range to test.\r | |
50 | @param Length Length of the memory range to test.\r | |
51 | @param ErrorAddress Address of the memory where error is encountered.\r | |
52 | \r | |
53 | @retval RETURN_SUCCESS The memory range passes test.\r | |
b6ee92ec | 54 | @retval RETURN_DEVICE_ERROR The memory range does not pass test.\r |
ad801d01 | 55 | \r |
56 | **/\r | |
57 | RETURN_STATUS\r | |
58 | EFIAPI\r | |
b6ee92ec | 59 | SparseMemoryTest (\r |
ad801d01 | 60 | IN VOID *StartAddress,\r |
61 | IN UINT64 Length,\r | |
62 | OUT VOID **ErrorAddress\r | |
63 | )\r | |
64 | {\r | |
65 | return RETURN_SUCCESS;\r | |
66 | }\r | |
67 | \r | |
68 | /**\r | |
b6ee92ec | 69 | Test a system memory range with extensively sampled memory units.\r |
ad801d01 | 70 | \r |
71 | This function tests a system memory range, whose memory units\r | |
b6ee92ec | 72 | are sampled extensively. Compared with SparseMemoryTest, it achieves\r |
73 | more reliability and less performance.\r | |
ad801d01 | 74 | \r |
75 | @param StartAddress Start address of the memory range to test.\r | |
76 | @param Length Length of the memory range to test.\r | |
77 | @param ErrorAddress Address of the memory where error is encountered.\r | |
78 | \r | |
79 | @retval RETURN_SUCCESS The memory range passes test.\r | |
b6ee92ec | 80 | @retval RETURN_DEVICE_ERROR The memory range does not pass test.\r |
ad801d01 | 81 | \r |
82 | **/\r | |
83 | RETURN_STATUS\r | |
84 | EFIAPI\r | |
b6ee92ec | 85 | ExtensiveMemoryTest (\r |
ad801d01 | 86 | IN VOID *StartAddress,\r |
87 | IN UINT64 Length,\r | |
88 | OUT VOID **ErrorAddress\r | |
89 | )\r | |
90 | {\r | |
91 | return RETURN_SUCCESS;\r | |
92 | }\r | |
b6ee92ec | 93 | \r |
94 | /**\r | |
95 | Check if soft ECC initialzation is needed for system\r | |
96 | \r | |
97 | @retval TRUE Soft ECC initialzation is needed.\r | |
98 | @retval FALSE Soft ECC initialzation is not needed.\r | |
99 | \r | |
100 | **/\r | |
101 | BOOLEAN\r | |
102 | EFIAPI\r | |
103 | IsSoftEccInitRequired (\r | |
104 | VOID\r | |
105 | )\r | |
106 | {\r | |
107 | return FALSE;\r | |
108 | }\r |