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