Commit | Line | Data |
---|---|---|
123e9f62 RN |
1 | /**@file\r |
2 | Head file for BDS Platform specific code\r | |
3 | \r | |
4 | Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r | |
5 | This program and the accompanying materials \r | |
6 | are licensed and made available under the terms and conditions of the BSD License \r | |
7 | which accompanies this distribution. The full text of the license may be found at \r | |
8 | http://opensource.org/licenses/bsd-license.php \r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
11 | WITHOUT 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 | |
20 | #include <Protocol/WinNtThunk.h>\r | |
21 | #include <Protocol/WinNtIo.h>\r | |
22 | #include <Protocol/LoadedImage.h>\r | |
23 | \r | |
24 | #include <Library/DebugLib.h>\r | |
25 | #include <Library/BaseMemoryLib.h>\r | |
26 | #include <Library/UefiBootServicesTableLib.h>\r | |
27 | #include <Library/UefiRuntimeServicesTableLib.h>\r | |
28 | #include <Library/MemoryAllocationLib.h>\r | |
29 | #include <Library/BaseLib.h>\r | |
30 | #include <Library/UefiRuntimeServicesTableLib.h>\r | |
31 | #include <Library/UefiLib.h>\r | |
32 | #include <Library/UefiBootManagerLib.h>\r | |
33 | #include <Library/PcdLib.h>\r | |
34 | #include <Library/DevicePathLib.h>\r | |
35 | \r | |
36 | \r | |
37 | typedef struct {\r | |
38 | EFI_DEVICE_PATH_PROTOCOL *DevicePath;\r | |
39 | UINTN ConnectType;\r | |
40 | } PLATFORM_CONSOLE_CONNECT_ENTRY;\r | |
41 | \r | |
42 | extern PLATFORM_CONSOLE_CONNECT_ENTRY gPlatformConsole[];\r | |
43 | \r | |
44 | #define gEndEntire \\r | |
45 | { \\r | |
46 | END_DEVICE_PATH_TYPE,\\r | |
47 | END_ENTIRE_DEVICE_PATH_SUBTYPE,\\r | |
48 | END_DEVICE_PATH_LENGTH,\\r | |
49 | 0\\r | |
50 | }\r | |
51 | \r | |
52 | #define CONSOLE_OUT BIT0\r | |
53 | #define CONSOLE_IN BIT1\r | |
54 | #define STD_ERROR BIT2\r | |
55 | \r | |
56 | typedef struct {\r | |
57 | VENDOR_DEVICE_PATH VendorDevicePath;\r | |
58 | UINT32 Instance;\r | |
59 | } WIN_NT_VENDOR_DEVICE_PATH_NODE;\r | |
60 | \r | |
61 | //\r | |
62 | // Below is the platform console device path\r | |
63 | //\r | |
64 | typedef struct {\r | |
65 | VENDOR_DEVICE_PATH NtBus;\r | |
66 | WIN_NT_VENDOR_DEVICE_PATH_NODE SerialDevice;\r | |
67 | UART_DEVICE_PATH Uart;\r | |
68 | VENDOR_DEVICE_PATH TerminalType;\r | |
69 | EFI_DEVICE_PATH_PROTOCOL End;\r | |
70 | } NT_ISA_SERIAL_DEVICE_PATH;\r | |
71 | \r | |
72 | typedef struct {\r | |
73 | VENDOR_DEVICE_PATH NtBus;\r | |
74 | WIN_NT_VENDOR_DEVICE_PATH_NODE NtGopDevice;\r | |
75 | EFI_DEVICE_PATH_PROTOCOL End;\r | |
76 | } NT_PLATFORM_GOP_DEVICE_PATH;\r | |
77 | \r | |
78 | #endif // _PLATFORM_BOOT_MANAGER_H\r |