| 1 | /*++\r |
| 2 | \r |
| 3 | Copyright (c) 2006 - 2007, Intel Corporation \r |
| 4 | All rights reserved. This program and the accompanying materials \r |
| 5 | are licensed and made available under the terms and conditions of the BSD License \r |
| 6 | which accompanies this distribution. The full text of the license may be found at \r |
| 7 | http://opensource.org/licenses/bsd-license.php \r |
| 8 | \r |
| 9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r |
| 10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r |
| 11 | \r |
| 12 | Module Name:\r |
| 13 | \r |
| 14 | BaseMemoryTest.h\r |
| 15 | \r |
| 16 | Abstract:\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 | #include <PiPei.h>\r |
| 26 | #include <Ppi/BaseMemoryTest.h>\r |
| 27 | #include <Library/DebugLib.h>\r |
| 28 | #include <Library/PeimEntryPoint.h>\r |
| 29 | #include <Library/ReportStatusCodeLib.h>\r |
| 30 | #include <Library/PcdLib.h>\r |
| 31 | \r |
| 32 | \r |
| 33 | //\r |
| 34 | // Some global define\r |
| 35 | //\r |
| 36 | #define COVER_SPAN 0x40000\r |
| 37 | #define TEST_PATTERN 0x5A5A5A5A\r |
| 38 | \r |
| 39 | EFI_STATUS\r |
| 40 | EFIAPI\r |
| 41 | PeiBaseMemoryTestInit (\r |
| 42 | IN EFI_FFS_FILE_HEADER *FfsHeader,\r |
| 43 | IN EFI_PEI_SERVICES **PeiServices\r |
| 44 | )\r |
| 45 | /*++\r |
| 46 | \r |
| 47 | Routine Description:\r |
| 48 | \r |
| 49 | TODO: Add function description\r |
| 50 | \r |
| 51 | Arguments:\r |
| 52 | \r |
| 53 | FfsHeader - TODO: add argument description\r |
| 54 | PeiServices - TODO: add argument description\r |
| 55 | \r |
| 56 | Returns:\r |
| 57 | \r |
| 58 | TODO: add return values\r |
| 59 | \r |
| 60 | --*/\r |
| 61 | ;\r |
| 62 | \r |
| 63 | EFI_STATUS\r |
| 64 | EFIAPI\r |
| 65 | BaseMemoryTest (\r |
| 66 | IN EFI_PEI_SERVICES **PeiServices,\r |
| 67 | IN PEI_BASE_MEMORY_TEST_PPI *This,\r |
| 68 | IN EFI_PHYSICAL_ADDRESS BeginAddress,\r |
| 69 | IN UINT64 MemoryLength,\r |
| 70 | IN PEI_MEMORY_TEST_OP Operation,\r |
| 71 | OUT EFI_PHYSICAL_ADDRESS *ErrorAddress\r |
| 72 | )\r |
| 73 | /*++\r |
| 74 | \r |
| 75 | Routine Description:\r |
| 76 | \r |
| 77 | TODO: Add function description\r |
| 78 | \r |
| 79 | Arguments:\r |
| 80 | \r |
| 81 | PeiServices - TODO: add argument description\r |
| 82 | This - TODO: add argument description\r |
| 83 | BeginAddress - TODO: add argument description\r |
| 84 | MemoryLength - TODO: add argument description\r |
| 85 | Operation - TODO: add argument description\r |
| 86 | ErrorAddress - TODO: add argument description\r |
| 87 | \r |
| 88 | Returns:\r |
| 89 | \r |
| 90 | TODO: add return values\r |
| 91 | \r |
| 92 | --*/\r |
| 93 | ;\r |
| 94 | \r |
| 95 | #endif\r |