]> git.proxmox.com Git - mirror_edk2.git/blob - Nt32Pkg/Library/Nt32BdsLib/BdsPlatform.h
02136a29eaf78ff86f834640fa3af2e8a0a9dd0b
[mirror_edk2.git] / Nt32Pkg / Library / Nt32BdsLib / BdsPlatform.h
1 /**@file
2
3 Copyright (c) 2004 - 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 BdsPlatform.h
15
16 Abstract:
17
18 Head file for BDS Platform specific code
19
20 **/
21
22 #ifndef _BDS_PLATFORM_H
23 #define _BDS_PLATFORM_H
24
25 #include <PiDxe.h>
26
27 #include <Library/DebugLib.h>
28 #include <Library/BaseMemoryLib.h>
29 #include <Library/UefiBootServicesTableLib.h>
30 #include <Library/UefiRuntimeServicesTableLib.h>
31 #include <Library/MemoryAllocationLib.h>
32 #include <Library/BaseLib.h>
33 #include <Library/PcdLib.h>
34 #include <Library/GenericBdsLib.h>
35 #include <Library/PlatformBdsLib.h>
36 #include <Library/DevicePathLib.h>
37
38 #include <Protocol/WinNtThunk.h>
39 #include <Protocol/WinNtIo.h>
40 #include <Protocol/LoadedImage.h>
41 #include <Protocol/UserManager.h>
42 #include <Guid/WinNtSystemConfig.h>
43
44 extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[];
45 extern EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[];
46 extern EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[];
47
48 #define gEndEntire \
49 { \
50 END_DEVICE_PATH_TYPE,\
51 END_ENTIRE_DEVICE_PATH_SUBTYPE,\
52 END_DEVICE_PATH_LENGTH,\
53 0\
54 }
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 NtUgaDevice;
75 EFI_DEVICE_PATH_PROTOCOL End;
76 } NT_PLATFORM_UGA_DEVICE_PATH;
77
78 typedef struct {
79 VENDOR_DEVICE_PATH NtBus;
80 WIN_NT_VENDOR_DEVICE_PATH_NODE NtGopDevice;
81 EFI_DEVICE_PATH_PROTOCOL End;
82 } NT_PLATFORM_GOP_DEVICE_PATH;
83
84 VOID
85 PlatformBdsGetDriverOption (
86 IN LIST_ENTRY *BdsDriverLists
87 );
88
89 EFI_STATUS
90 BdsMemoryTest (
91 EXTENDMEM_COVERAGE_LEVEL Level
92 );
93
94 VOID
95 PlatformBdsConnectSequence (
96 VOID
97 );
98
99
100 EFI_STATUS
101 ProcessCapsules (
102 EFI_BOOT_MODE BootMode
103 );
104
105 EFI_STATUS
106 PlatformBdsConnectConsole (
107 IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole
108 );
109
110 EFI_STATUS
111 PlatformBdsNoConsoleAction (
112 VOID
113 );
114
115 VOID
116 PlatformBdsEnterFrontPage (
117 IN UINT16 TimeoutDefault,
118 IN BOOLEAN ConnectAllHappened
119 );
120
121 EFI_STATUS
122 PlatformBdsUserIdentify (
123 VOID
124 );
125
126 #endif // _BDS_PLATFORM_H