Add BaseMemoryTestDxe in MdeModulePkg.dsc
[mirror_edk2.git] / MdeModulePkg / Universal / BaseMemoryTestPei / BaseMemoryTest.h
CommitLineData
ce2f5557 1/*++\r
2\r
3Copyright (c) 2006 - 2007, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 BaseMemoryTest.h\r
15 \r
16Abstract:\r
17\r
18 Tiano PEIM to provide a PEI memory test service.\r
19\r
20--*/\r
21\r
22#ifndef _PEI_BASE_MEMORY_TEST_H_\r
23#define _PEI_BASE_MEMORY_TEST_H_\r
24\r
25//\r
26// Some global define\r
27//\r
28#define COVER_SPAN 0x40000\r
29#define TEST_PATTERN 0x5A5A5A5A\r
30\r
31EFI_STATUS\r
32EFIAPI\r
33PeiBaseMemoryTestInit (\r
34 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
35 IN EFI_PEI_SERVICES **PeiServices\r
36 )\r
37/*++\r
38\r
39Routine Description:\r
40\r
41 TODO: Add function description\r
42\r
43Arguments:\r
44\r
45 FfsHeader - TODO: add argument description\r
46 PeiServices - TODO: add argument description\r
47\r
48Returns:\r
49\r
50 TODO: add return values\r
51\r
52--*/\r
53;\r
54\r
55EFI_STATUS\r
56EFIAPI\r
57BaseMemoryTest (\r
58 IN EFI_PEI_SERVICES **PeiServices,\r
59 IN PEI_BASE_MEMORY_TEST_PPI *This,\r
60 IN EFI_PHYSICAL_ADDRESS BeginAddress,\r
61 IN UINT64 MemoryLength,\r
62 IN PEI_MEMORY_TEST_OP Operation,\r
63 OUT EFI_PHYSICAL_ADDRESS *ErrorAddress\r
64 )\r
65/*++\r
66\r
67Routine Description:\r
68\r
69 TODO: Add function description\r
70\r
71Arguments:\r
72\r
73 PeiServices - TODO: add argument description\r
74 This - TODO: add argument description\r
75 BeginAddress - TODO: add argument description\r
76 MemoryLength - TODO: add argument description\r
77 Operation - TODO: add argument description\r
78 ErrorAddress - TODO: add argument description\r
79\r
80Returns:\r
81\r
82 TODO: add return values\r
83\r
84--*/\r
85;\r
86\r
87#endif\r