]> git.proxmox.com Git - mirror_edk2.git/blob - Nt32Pkg/Library/Nt32BdsLib/BdsPlatform.h
Update Nt32 package to remove UID support .
[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 <Guid/WinNtSystemConfig.h>
41
42 extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[];
43 extern EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[];
44 extern EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[];
45
46 #define gEndEntire \
47 { \
48 END_DEVICE_PATH_TYPE,\
49 END_ENTIRE_DEVICE_PATH_SUBTYPE,\
50 END_DEVICE_PATH_LENGTH,\
51 0\
52 }
53
54 typedef struct {
55 VENDOR_DEVICE_PATH VendorDevicePath;
56 UINT32 Instance;
57 } WIN_NT_VENDOR_DEVICE_PATH_NODE;
58
59 //
60 // Below is the platform console device path
61 //
62 typedef struct {
63 VENDOR_DEVICE_PATH NtBus;
64 WIN_NT_VENDOR_DEVICE_PATH_NODE SerialDevice;
65 UART_DEVICE_PATH Uart;
66 VENDOR_DEVICE_PATH TerminalType;
67 EFI_DEVICE_PATH_PROTOCOL End;
68 } NT_ISA_SERIAL_DEVICE_PATH;
69
70 typedef struct {
71 VENDOR_DEVICE_PATH NtBus;
72 WIN_NT_VENDOR_DEVICE_PATH_NODE NtUgaDevice;
73 EFI_DEVICE_PATH_PROTOCOL End;
74 } NT_PLATFORM_UGA_DEVICE_PATH;
75
76 typedef struct {
77 VENDOR_DEVICE_PATH NtBus;
78 WIN_NT_VENDOR_DEVICE_PATH_NODE NtGopDevice;
79 EFI_DEVICE_PATH_PROTOCOL End;
80 } NT_PLATFORM_GOP_DEVICE_PATH;
81
82 VOID
83 PlatformBdsGetDriverOption (
84 IN LIST_ENTRY *BdsDriverLists
85 );
86
87 EFI_STATUS
88 BdsMemoryTest (
89 EXTENDMEM_COVERAGE_LEVEL Level
90 );
91
92 VOID
93 PlatformBdsConnectSequence (
94 VOID
95 );
96
97
98 EFI_STATUS
99 ProcessCapsules (
100 EFI_BOOT_MODE BootMode
101 );
102
103 EFI_STATUS
104 PlatformBdsConnectConsole (
105 IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole
106 );
107
108 EFI_STATUS
109 PlatformBdsNoConsoleAction (
110 VOID
111 );
112
113 VOID
114 PlatformBdsEnterFrontPage (
115 IN UINT16 TimeoutDefault,
116 IN BOOLEAN ConnectAllHappened
117 );
118
119 #endif // _BDS_PLATFORM_H