]> git.proxmox.com Git - mirror_edk2.git/blob - Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.h
Nt32Pkg: Platform BDS should test the untested memory
[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/GenericMemoryTest.h>
21 #include <Protocol/WinNtThunk.h>
22 #include <Protocol/WinNtIo.h>
23 #include <Protocol/LoadedImage.h>
24
25 #include <Library/DebugLib.h>
26 #include <Library/BaseMemoryLib.h>
27 #include <Library/UefiBootServicesTableLib.h>
28 #include <Library/UefiRuntimeServicesTableLib.h>
29 #include <Library/MemoryAllocationLib.h>
30 #include <Library/BaseLib.h>
31 #include <Library/UefiRuntimeServicesTableLib.h>
32 #include <Library/UefiLib.h>
33 #include <Library/UefiBootManagerLib.h>
34 #include <Library/PcdLib.h>
35 #include <Library/DevicePathLib.h>
36
37
38 typedef struct {
39 EFI_DEVICE_PATH_PROTOCOL *DevicePath;
40 UINTN ConnectType;
41 } PLATFORM_CONSOLE_CONNECT_ENTRY;
42
43 extern PLATFORM_CONSOLE_CONNECT_ENTRY gPlatformConsole[];
44
45 #define gEndEntire \
46 { \
47 END_DEVICE_PATH_TYPE,\
48 END_ENTIRE_DEVICE_PATH_SUBTYPE,\
49 END_DEVICE_PATH_LENGTH,\
50 0\
51 }
52
53 #define CONSOLE_OUT BIT0
54 #define CONSOLE_IN BIT1
55 #define STD_ERROR BIT2
56
57 typedef struct {
58 VENDOR_DEVICE_PATH VendorDevicePath;
59 UINT32 Instance;
60 } WIN_NT_VENDOR_DEVICE_PATH_NODE;
61
62 //
63 // Below is the platform console device path
64 //
65 typedef struct {
66 VENDOR_DEVICE_PATH NtBus;
67 WIN_NT_VENDOR_DEVICE_PATH_NODE SerialDevice;
68 UART_DEVICE_PATH Uart;
69 VENDOR_DEVICE_PATH TerminalType;
70 EFI_DEVICE_PATH_PROTOCOL End;
71 } NT_ISA_SERIAL_DEVICE_PATH;
72
73 typedef struct {
74 VENDOR_DEVICE_PATH NtBus;
75 WIN_NT_VENDOR_DEVICE_PATH_NODE NtGopDevice;
76 EFI_DEVICE_PATH_PROTOCOL End;
77 } NT_PLATFORM_GOP_DEVICE_PATH;
78
79 #endif // _PLATFORM_BOOT_MANAGER_H