878ddf1f |
1 | /*++\r |
2 | \r |
3 | Copyright (c) 2006, 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 | NtAutoscan.h\r |
15 | \r |
16 | Abstract:\r |
17 | \r |
18 | Nt Autoscan PPI\r |
19 | \r |
20 | --*/\r |
21 | \r |
22 | #ifndef __NT_PEI_AUTOSCAN_H__\r |
23 | #define __NT_PEI_AUTOSCAN_H__\r |
24 | \r |
25 | #include <WinNtDxe.h>\r |
26 | \r |
27 | #define PEI_NT_AUTOSCAN_PPI_GUID \\r |
28 | { \\r |
29 | 0xdce384d, 0x7c, 0x4ba5, {0x94, 0xbd, 0xf, 0x6e, 0xb6, 0x4d, 0x2a, 0xa9 } \\r |
30 | }\r |
31 | \r |
32 | typedef\r |
33 | EFI_STATUS\r |
34 | (EFIAPI *PEI_NT_AUTOSCAN) (\r |
35 | IN UINTN Index,\r |
36 | OUT EFI_PHYSICAL_ADDRESS * MemoryBase,\r |
37 | OUT UINT64 *MemorySize\r |
38 | );\r |
39 | \r |
40 | /*++\r |
41 | \r |
42 | Routine Description:\r |
43 | This service is called from Index == 0 until it returns EFI_UNSUPPORTED.\r |
44 | It allows discontiguous memory regions to be supported by the emulator.\r |
45 | It uses gSystemMemory[] and gSystemMemoryCount that were created by\r |
46 | parsing the Windows environment variable EFI_MEMORY_SIZE.\r |
47 | The size comes from the varaible and the address comes from the call to\r |
48 | WinNtOpenFile. \r |
49 | \r |
50 | Arguments:\r |
51 | Index - Which memory region to use\r |
52 | MemoryBase - Return Base address of memory region\r |
53 | MemorySize - Return size in bytes of the memory region\r |
54 | \r |
55 | Returns:\r |
56 | EFI_SUCCESS - If memory region was mapped\r |
57 | EFI_UNSUPPORTED - If Index is not supported\r |
58 | \r |
59 | --*/\r |
60 | typedef struct {\r |
61 | PEI_NT_AUTOSCAN NtAutoScan;\r |
62 | } PEI_NT_AUTOSCAN_PPI;\r |
63 | \r |
64 | extern EFI_GUID gPeiNtAutoScanPpiGuid;\r |
65 | \r |
66 | #endif\r |