]>
Commit | Line | Data |
---|---|---|
95d675b5 | 1 | /*++\r |
2 | \r | |
4b1e1121 HT |
3 | Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>\r |
4 | This program and the accompanying materials \r | |
95d675b5 | 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 "Tiano.h"\r | |
26 | #include "PeiHob.h"\r | |
27 | \r | |
28 | #define PEI_NT_AUTOSCAN_PPI_GUID \\r | |
29 | { \\r | |
aeef1b2b | 30 | 0xdce384d, 0x7c, 0x4ba5, {0x94, 0xbd, 0xf, 0x6e, 0xb6, 0x4d, 0x2a, 0xa9} \\r |
95d675b5 | 31 | }\r |
32 | \r | |
33 | typedef\r | |
34 | EFI_STATUS\r | |
35 | (EFIAPI *PEI_NT_AUTOSCAN) (\r | |
36 | IN UINTN Index,\r | |
37 | OUT EFI_PHYSICAL_ADDRESS * MemoryBase,\r | |
38 | OUT UINT64 *MemorySize\r | |
39 | );\r | |
40 | \r | |
41 | /*++\r | |
42 | \r | |
43 | Routine Description:\r | |
44 | This service is called from Index == 0 until it returns EFI_UNSUPPORTED.\r | |
45 | It allows discontiguous memory regions to be supported by the emulator.\r | |
46 | It uses gSystemMemory[] and gSystemMemoryCount that were created by\r | |
47 | parsing the Windows environment variable EFI_MEMORY_SIZE.\r | |
48 | The size comes from the varaible and the address comes from the call to\r | |
49 | WinNtOpenFile. \r | |
50 | \r | |
51 | Arguments:\r | |
52 | Index - Which memory region to use\r | |
53 | MemoryBase - Return Base address of memory region\r | |
54 | MemorySize - Return size in bytes of the memory region\r | |
55 | \r | |
56 | Returns:\r | |
57 | EFI_SUCCESS - If memory region was mapped\r | |
58 | EFI_UNSUPPORTED - If Index is not supported\r | |
59 | \r | |
60 | --*/\r | |
61 | typedef struct {\r | |
62 | PEI_NT_AUTOSCAN NtAutoScan;\r | |
63 | } PEI_NT_AUTOSCAN_PPI;\r | |
64 | \r | |
65 | extern EFI_GUID gPeiNtAutoScanPpiGuid;\r | |
66 | \r | |
67 | #endif\r |