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