Nt32Pkg: Platform BDS should test the untested memory
[mirror_edk2.git] / Nt32Pkg / Library / PlatformBootManagerLib / PlatformBootManager.h
CommitLineData
123e9f62
RN
1/**@file\r
2 Head file for BDS Platform specific code\r
3\r
4Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
5This 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
9 \r
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
12**/\r
13\r
14#ifndef _PLATFORM_BOOT_MANAGER_H\r
15#define _PLATFORM_BOOT_MANAGER_H\r
16\r
17#include <PiDxe.h>\r
18\r
19#include <Guid/WinNtSystemConfig.h>\r
8f227c2f 20#include <Protocol/GenericMemoryTest.h>\r
123e9f62
RN
21#include <Protocol/WinNtThunk.h>\r
22#include <Protocol/WinNtIo.h>\r
23#include <Protocol/LoadedImage.h>\r
24\r
25#include <Library/DebugLib.h>\r
26#include <Library/BaseMemoryLib.h>\r
27#include <Library/UefiBootServicesTableLib.h>\r
28#include <Library/UefiRuntimeServicesTableLib.h>\r
29#include <Library/MemoryAllocationLib.h>\r
30#include <Library/BaseLib.h>\r
31#include <Library/UefiRuntimeServicesTableLib.h>\r
32#include <Library/UefiLib.h>\r
33#include <Library/UefiBootManagerLib.h>\r
34#include <Library/PcdLib.h>\r
35#include <Library/DevicePathLib.h>\r
36\r
37\r
38typedef struct {\r
39 EFI_DEVICE_PATH_PROTOCOL *DevicePath;\r
40 UINTN ConnectType;\r
41} PLATFORM_CONSOLE_CONNECT_ENTRY;\r
42\r
43extern PLATFORM_CONSOLE_CONNECT_ENTRY gPlatformConsole[];\r
44\r
45#define gEndEntire \\r
46 { \\r
47 END_DEVICE_PATH_TYPE,\\r
48 END_ENTIRE_DEVICE_PATH_SUBTYPE,\\r
49 END_DEVICE_PATH_LENGTH,\\r
50 0\\r
51 }\r
52\r
53#define CONSOLE_OUT BIT0\r
54#define CONSOLE_IN BIT1\r
55#define STD_ERROR BIT2\r
56\r
57typedef struct {\r
58 VENDOR_DEVICE_PATH VendorDevicePath;\r
59 UINT32 Instance;\r
60} WIN_NT_VENDOR_DEVICE_PATH_NODE;\r
61\r
62//\r
63// Below is the platform console device path\r
64//\r
65typedef struct {\r
66 VENDOR_DEVICE_PATH NtBus;\r
67 WIN_NT_VENDOR_DEVICE_PATH_NODE SerialDevice;\r
68 UART_DEVICE_PATH Uart;\r
69 VENDOR_DEVICE_PATH TerminalType;\r
70 EFI_DEVICE_PATH_PROTOCOL End;\r
71} NT_ISA_SERIAL_DEVICE_PATH;\r
72\r
73typedef struct {\r
74 VENDOR_DEVICE_PATH NtBus;\r
75 WIN_NT_VENDOR_DEVICE_PATH_NODE NtGopDevice;\r
76 EFI_DEVICE_PATH_PROTOCOL End;\r
77} NT_PLATFORM_GOP_DEVICE_PATH;\r
78\r
79#endif // _PLATFORM_BOOT_MANAGER_H\r