TianoCore EDK2 master
Loading...
Searching...
No Matches
GenericMemoryTest.h
Go to the documentation of this file.
1
9#ifndef __GENERIC_MEMORY_TEST_H__
10#define __GENERIC_MEMORY_TEST_H__
11
12#define EFI_GENERIC_MEMORY_TEST_PROTOCOL_GUID \
13 { 0x309de7f1, 0x7f5e, 0x4ace, {0xb4, 0x9c, 0x53, 0x1b, 0xe5, 0xaa, 0x95, 0xef} }
14
16
21typedef enum {
22 IGNORE,
23 QUICK,
24 SPARSE,
25 EXTENSIVE,
26 MAXLEVEL
28
40typedef
42(EFIAPI *EFI_MEMORY_TEST_INIT)(
45 OUT BOOLEAN *RequireSoftECCInit
46 );
47
63typedef
67 OUT UINT64 *TestedMemorySize,
68 OUT UINT64 *TotalMemorySize,
69 OUT BOOLEAN *ErrorOut,
70 IN BOOLEAN IfTestAbort
71 );
72
81typedef
85 );
86
99typedef
103 IN EFI_PHYSICAL_ADDRESS StartAddress,
104 IN UINT64 Length
105 );
106
108 EFI_MEMORY_TEST_INIT MemoryTestInit;
109 EFI_PERFORM_MEMORY_TEST PerformMemoryTest;
111 EFI_MEMORY_TEST_COMPATIBLE_RANGE CompatibleRangeTest;
112};
113
114extern EFI_GUID gEfiGenericMemTestProtocolGuid;
115
116#endif
EFI_STATUS(EFIAPI * EFI_MEMORY_TEST_FINISHED)(IN EFI_GENERIC_MEMORY_TEST_PROTOCOL *This)
EXTENDMEM_COVERAGE_LEVEL
EFI_STATUS(EFIAPI * EFI_MEMORY_TEST_INIT)(IN EFI_GENERIC_MEMORY_TEST_PROTOCOL *This, IN EXTENDMEM_COVERAGE_LEVEL Level, OUT BOOLEAN *RequireSoftECCInit)
EFI_STATUS(EFIAPI * EFI_PERFORM_MEMORY_TEST)(IN EFI_GENERIC_MEMORY_TEST_PROTOCOL *This, OUT UINT64 *TestedMemorySize, OUT UINT64 *TotalMemorySize, OUT BOOLEAN *ErrorOut, IN BOOLEAN IfTestAbort)
EFI_STATUS(EFIAPI * EFI_MEMORY_TEST_COMPATIBLE_RANGE)(IN EFI_GENERIC_MEMORY_TEST_PROTOCOL *This, IN EFI_PHYSICAL_ADDRESS StartAddress, IN UINT64 Length)
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
UINT64 EFI_PHYSICAL_ADDRESS
Definition: UefiBaseType.h:50
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
Definition: Base.h:213