]> git.proxmox.com Git - mirror_edk2.git/blame - Nt32Pkg/Library/Nt32BdsLib/BdsPlatform.h
Enable UID support in NT32 platform
[mirror_edk2.git] / Nt32Pkg / Library / Nt32BdsLib / BdsPlatform.h
CommitLineData
6ae81428 1/**@file\r
5fd5fcd3 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
6ae81428 20**/\r
5fd5fcd3 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
fcf24bad 30#include <Library/UefiRuntimeServicesTableLib.h>\r
5fd5fcd3 31#include <Library/MemoryAllocationLib.h>\r
32#include <Library/BaseLib.h>\r
33#include <Library/PcdLib.h>\r
34#include <Library/GenericBdsLib.h>\r
35#include <Library/PlatformBdsLib.h>\r
008698ab 36#include <Library/DevicePathLib.h>\r
5fd5fcd3 37\r
38#include <Protocol/WinNtThunk.h>\r
39#include <Protocol/WinNtIo.h>\r
aa115881 40#include <Protocol/LoadedImage.h>\r
41#include <Protocol/UserManager.h>\r
1a9a1253 42#include <Guid/WinNtSystemConfig.h>\r
5fd5fcd3 43\r
44extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[];\r
45extern EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[];\r
46extern EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[];\r
47\r
48#define gEndEntire \\r
49 { \\r
50 END_DEVICE_PATH_TYPE,\\r
51 END_ENTIRE_DEVICE_PATH_SUBTYPE,\\r
52 END_DEVICE_PATH_LENGTH,\\r
53 0\\r
54 }\r
55\r
56typedef struct {\r
57 VENDOR_DEVICE_PATH VendorDevicePath;\r
58 UINT32 Instance;\r
59} WIN_NT_VENDOR_DEVICE_PATH_NODE;\r
60\r
61//\r
62// Below is the platform console device path\r
63//\r
64typedef struct {\r
65 VENDOR_DEVICE_PATH NtBus;\r
66 WIN_NT_VENDOR_DEVICE_PATH_NODE SerialDevice;\r
67 UART_DEVICE_PATH Uart;\r
68 VENDOR_DEVICE_PATH TerminalType;\r
69 EFI_DEVICE_PATH_PROTOCOL End;\r
70} NT_ISA_SERIAL_DEVICE_PATH;\r
71\r
72typedef struct {\r
73 VENDOR_DEVICE_PATH NtBus;\r
74 WIN_NT_VENDOR_DEVICE_PATH_NODE NtUgaDevice;\r
75 EFI_DEVICE_PATH_PROTOCOL End;\r
76} NT_PLATFORM_UGA_DEVICE_PATH;\r
77\r
78typedef struct {\r
79 VENDOR_DEVICE_PATH NtBus;\r
80 WIN_NT_VENDOR_DEVICE_PATH_NODE NtGopDevice;\r
81 EFI_DEVICE_PATH_PROTOCOL End;\r
82} NT_PLATFORM_GOP_DEVICE_PATH;\r
83\r
84VOID\r
85PlatformBdsGetDriverOption (\r
86 IN LIST_ENTRY *BdsDriverLists\r
ed66e1bc 87 );\r
5fd5fcd3 88\r
89EFI_STATUS\r
90BdsMemoryTest (\r
91 EXTENDMEM_COVERAGE_LEVEL Level\r
ed66e1bc 92 );\r
5fd5fcd3 93\r
94VOID\r
95PlatformBdsConnectSequence (\r
96 VOID\r
ed66e1bc 97 );\r
5fd5fcd3 98\r
99\r
100EFI_STATUS\r
101ProcessCapsules (\r
102 EFI_BOOT_MODE BootMode\r
ed66e1bc 103 );\r
5fd5fcd3 104\r
105EFI_STATUS\r
106PlatformBdsConnectConsole (\r
107 IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole\r
ed66e1bc 108 );\r
5fd5fcd3 109\r
110EFI_STATUS\r
111PlatformBdsNoConsoleAction (\r
112 VOID\r
ed66e1bc 113 );\r
5fd5fcd3 114\r
115VOID\r
116PlatformBdsEnterFrontPage (\r
117 IN UINT16 TimeoutDefault,\r
118 IN BOOLEAN ConnectAllHappened\r
119 );\r
120\r
aa115881 121EFI_STATUS\r
122PlatformBdsUserIdentify (\r
123 VOID\r
124 );\r
125\r
5fd5fcd3 126#endif // _BDS_PLATFORM_H\r