]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/MemoryTest/BaseMemoryTestPei/BaseMemoryTest.h
Clean up gEfiHotPlugDeviceGuid in ConPlatformDxe.
[mirror_edk2.git] / MdeModulePkg / Universal / MemoryTest / BaseMemoryTestPei / BaseMemoryTest.h
CommitLineData
79021021 1/** @file\r
37887186 2 Internal include file for support of memory test in PEI Phase.\r
05177bef 3\r
79021021 4Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
5All rights reserved. This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
05177bef 9\r
79021021 10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
05177bef 12\r
79021021 13**/\r
05177bef 14\r
15#ifndef _PEI_BASE_MEMORY_TEST_H_\r
16#define _PEI_BASE_MEMORY_TEST_H_\r
17\r
18#include <PiPei.h>\r
19#include <Ppi/BaseMemoryTest.h>\r
20#include <Library/DebugLib.h>\r
21#include <Library/PeimEntryPoint.h>\r
22#include <Library/ReportStatusCodeLib.h>\r
23#include <Library/PcdLib.h>\r
37887186 24#include <Library/PeiServicesLib.h>\r
05177bef 25\r
05177bef 26#define COVER_SPAN 0x40000\r
27#define TEST_PATTERN 0x5A5A5A5A\r
28\r
37887186 29/**\r
30 Test base memory.\r
05177bef 31\r
37887186 32 @param PeiServices An indirect pointer to the PEI Services Table published by the PEI Foundation.\r
33 @param This Pointer to this PPI instance.\r
34 @param BeginAddress Beginning of the memory address to be checked.\r
35 @param MemoryLength Bytes of memory range to be checked.\r
36 @param Operation Type of memory check operation to be performed.\r
37 @param ErrorAddress Pointer to address of the error memory returned.\r
05177bef 38\r
37887186 39 @retval EFI_SUCCESS Memory test passed.\r
40 @retval EFI_DEVICE_ERROR Memory test failed.\r
05177bef 41\r
37887186 42**/ \r
05177bef 43EFI_STATUS\r
44EFIAPI\r
45BaseMemoryTest (\r
46 IN EFI_PEI_SERVICES **PeiServices,\r
47 IN PEI_BASE_MEMORY_TEST_PPI *This,\r
48 IN EFI_PHYSICAL_ADDRESS BeginAddress,\r
49 IN UINT64 MemoryLength,\r
50 IN PEI_MEMORY_TEST_OP Operation,\r
51 OUT EFI_PHYSICAL_ADDRESS *ErrorAddress\r
37887186 52 );\r
05177bef 53\r
54#endif\r