]> git.proxmox.com Git - mirror_edk2.git/blame - Nt32Pkg/Include/Ppi/NtAutoscan.h
Nt32Pkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / Nt32Pkg / Include / Ppi / NtAutoscan.h
CommitLineData
6ae81428 1/**@file\r
45a20a7f 2\r
8f2a5f80 3Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
9d2eedba 4SPDX-License-Identifier: BSD-2-Clause-Patent\r
45a20a7f 5\r
6Module Name:\r
7\r
8 NtAutoscan.h\r
9\r
10Abstract:\r
11\r
12Nt Autoscan PPI\r
13\r
6ae81428 14**/\r
45a20a7f 15\r
16#ifndef __NT_PEI_AUTOSCAN_H__\r
17#define __NT_PEI_AUTOSCAN_H__\r
18\r
19#include <WinNtDxe.h>\r
20\r
21#define PEI_NT_AUTOSCAN_PPI_GUID \\r
22 { \\r
23 0xdce384d, 0x7c, 0x4ba5, {0x94, 0xbd, 0xf, 0x6e, 0xb6, 0x4d, 0x2a, 0xa9 } \\r
24 }\r
25\r
26typedef\r
27EFI_STATUS\r
28(EFIAPI *PEI_NT_AUTOSCAN) (\r
29 IN UINTN Index,\r
30 OUT EFI_PHYSICAL_ADDRESS * MemoryBase,\r
31 OUT UINT64 *MemorySize\r
32 );\r
33\r
34/*++\r
35\r
36Routine Description:\r
37 This service is called from Index == 0 until it returns EFI_UNSUPPORTED.\r
8aa9d680 38 It allows discontinuous memory regions to be supported by the emulator.\r
45a20a7f 39 It uses gSystemMemory[] and gSystemMemoryCount that were created by\r
40 parsing the Windows environment variable EFI_MEMORY_SIZE.\r
41 The size comes from the varaible and the address comes from the call to\r
42 WinNtOpenFile. \r
43\r
44Arguments:\r
45 Index - Which memory region to use\r
46 MemoryBase - Return Base address of memory region\r
47 MemorySize - Return size in bytes of the memory region\r
48\r
49Returns:\r
50 EFI_SUCCESS - If memory region was mapped\r
51 EFI_UNSUPPORTED - If Index is not supported\r
52\r
53--*/\r
54typedef struct {\r
55 PEI_NT_AUTOSCAN NtAutoScan;\r
56} PEI_NT_AUTOSCAN_PPI;\r
57\r
58extern EFI_GUID gPeiNtAutoScanPpiGuid;\r
59\r
60#endif\r