]>
Commit | Line | Data |
---|---|---|
6ae81428 | 1 | /**@file\r |
5fd5fcd3 | 2 | \r |
3 | Copyright (c) 2004 - 2006, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name: \r | |
13 | \r | |
14 | BdsPlatform.h\r | |
15 | \r | |
16 | Abstract:\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 | |
1a9a1253 | 40 | #include <Guid/WinNtSystemConfig.h>\r |
5fd5fcd3 | 41 | \r |
42 | extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[];\r | |
43 | extern EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[];\r | |
44 | extern EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[];\r | |
45 | \r | |
46 | #define gEndEntire \\r | |
47 | { \\r | |
48 | END_DEVICE_PATH_TYPE,\\r | |
49 | END_ENTIRE_DEVICE_PATH_SUBTYPE,\\r | |
50 | END_DEVICE_PATH_LENGTH,\\r | |
51 | 0\\r | |
52 | }\r | |
53 | \r | |
54 | typedef struct {\r | |
55 | VENDOR_DEVICE_PATH VendorDevicePath;\r | |
56 | UINT32 Instance;\r | |
57 | } WIN_NT_VENDOR_DEVICE_PATH_NODE;\r | |
58 | \r | |
59 | //\r | |
60 | // Below is the platform console device path\r | |
61 | //\r | |
62 | typedef struct {\r | |
63 | VENDOR_DEVICE_PATH NtBus;\r | |
64 | WIN_NT_VENDOR_DEVICE_PATH_NODE SerialDevice;\r | |
65 | UART_DEVICE_PATH Uart;\r | |
66 | VENDOR_DEVICE_PATH TerminalType;\r | |
67 | EFI_DEVICE_PATH_PROTOCOL End;\r | |
68 | } NT_ISA_SERIAL_DEVICE_PATH;\r | |
69 | \r | |
70 | typedef struct {\r | |
71 | VENDOR_DEVICE_PATH NtBus;\r | |
72 | WIN_NT_VENDOR_DEVICE_PATH_NODE NtUgaDevice;\r | |
73 | EFI_DEVICE_PATH_PROTOCOL End;\r | |
74 | } NT_PLATFORM_UGA_DEVICE_PATH;\r | |
75 | \r | |
76 | typedef struct {\r | |
77 | VENDOR_DEVICE_PATH NtBus;\r | |
78 | WIN_NT_VENDOR_DEVICE_PATH_NODE NtGopDevice;\r | |
79 | EFI_DEVICE_PATH_PROTOCOL End;\r | |
80 | } NT_PLATFORM_GOP_DEVICE_PATH;\r | |
81 | \r | |
82 | VOID\r | |
83 | PlatformBdsGetDriverOption (\r | |
84 | IN LIST_ENTRY *BdsDriverLists\r | |
ed66e1bc | 85 | );\r |
5fd5fcd3 | 86 | \r |
87 | EFI_STATUS\r | |
88 | BdsMemoryTest (\r | |
89 | EXTENDMEM_COVERAGE_LEVEL Level\r | |
ed66e1bc | 90 | );\r |
5fd5fcd3 | 91 | \r |
92 | VOID\r | |
93 | PlatformBdsConnectSequence (\r | |
94 | VOID\r | |
ed66e1bc | 95 | );\r |
5fd5fcd3 | 96 | \r |
97 | \r | |
98 | EFI_STATUS\r | |
99 | ProcessCapsules (\r | |
100 | EFI_BOOT_MODE BootMode\r | |
ed66e1bc | 101 | );\r |
5fd5fcd3 | 102 | \r |
103 | EFI_STATUS\r | |
104 | PlatformBdsConnectConsole (\r | |
105 | IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole\r | |
ed66e1bc | 106 | );\r |
5fd5fcd3 | 107 | \r |
108 | EFI_STATUS\r | |
109 | PlatformBdsNoConsoleAction (\r | |
110 | VOID\r | |
ed66e1bc | 111 | );\r |
5fd5fcd3 | 112 | \r |
113 | VOID\r | |
114 | PlatformBdsEnterFrontPage (\r | |
115 | IN UINT16 TimeoutDefault,\r | |
116 | IN BOOLEAN ConnectAllHappened\r | |
117 | );\r | |
118 | \r | |
119 | #endif // _BDS_PLATFORM_H\r |