1. Removed #ifdef EDK_RELEASE_VERSION from all c files for all modules
[mirror_edk2.git] / EdkNt32Pkg / Dxe / PlatformBds / PlatformData.c
1 /*++
2
3 Copyright (c) 2006 - 2007, 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 PlatformData.c
15
16 Abstract:
17
18 Defined the platform specific device path which will be used by
19 platform Bbd to perform the platform policy connect.
20
21 --*/
22
23 #include "Generic/Bds.h"
24 #include "BdsPlatform.h"
25
26 //
27 // Predefined platform default time out value
28 //
29 UINT16 gPlatformBootTimeOutDefault = 10;
30
31 //
32 // Platform specific keyboard device path
33 //
34 NT_PLATFORM_UGA_DEVICE_PATH gUgaDevicePath0 = {
35 {
36 HARDWARE_DEVICE_PATH,
37 HW_VENDOR_DP,
38 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
39 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
40 EFI_WIN_NT_THUNK_PROTOCOL_GUID
41 },
42 {
43 HARDWARE_DEVICE_PATH,
44 HW_VENDOR_DP,
45 (UINT8) (sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)),
46 (UINT8) ((sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)) >> 8),
47 EFI_WIN_NT_UGA_GUID,
48 0
49 },
50 gEndEntire
51 };
52
53 NT_PLATFORM_UGA_DEVICE_PATH gUgaDevicePath1 = {
54 {
55 HARDWARE_DEVICE_PATH,
56 HW_VENDOR_DP,
57 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
58 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
59 EFI_WIN_NT_THUNK_PROTOCOL_GUID
60 },
61 {
62 HARDWARE_DEVICE_PATH,
63 HW_VENDOR_DP,
64 (UINT8) (sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)),
65 (UINT8) ((sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)) >> 8),
66 EFI_WIN_NT_UGA_GUID,
67 1
68 },
69 gEndEntire
70 };
71
72 NT_PLATFORM_GOP_DEVICE_PATH gGopDevicePath0 = {
73 {
74 HARDWARE_DEVICE_PATH,
75 HW_VENDOR_DP,
76 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
77 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
78 EFI_WIN_NT_THUNK_PROTOCOL_GUID
79 },
80 {
81 HARDWARE_DEVICE_PATH,
82 HW_VENDOR_DP,
83 (UINT8) (sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)),
84 (UINT8) ((sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)) >> 8),
85 EFI_WIN_NT_GOP_GUID,
86 0
87 },
88 gEndEntire
89 };
90
91 NT_PLATFORM_GOP_DEVICE_PATH gGopDevicePath1 = {
92 {
93 HARDWARE_DEVICE_PATH,
94 HW_VENDOR_DP,
95 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
96 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
97 EFI_WIN_NT_THUNK_PROTOCOL_GUID
98 },
99 {
100 HARDWARE_DEVICE_PATH,
101 HW_VENDOR_DP,
102 (UINT8) (sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)),
103 (UINT8) ((sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)) >> 8),
104 EFI_WIN_NT_GOP_GUID,
105 1
106 },
107 gEndEntire
108 };
109
110 //
111 // Platform specific serial device path
112 //
113 NT_ISA_SERIAL_DEVICE_PATH gNtSerialDevicePath0 = {
114 {
115 HARDWARE_DEVICE_PATH,
116 HW_VENDOR_DP,
117 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
118 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
119 EFI_WIN_NT_THUNK_PROTOCOL_GUID
120 },
121 {
122 HARDWARE_DEVICE_PATH,
123 HW_VENDOR_DP,
124 (UINT8) (sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)),
125 (UINT8) ((sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)) >> 8),
126 EFI_WIN_NT_SERIAL_PORT_GUID
127 },
128 {
129 MESSAGING_DEVICE_PATH,
130 MSG_UART_DP,
131 (UINT8) (sizeof (UART_DEVICE_PATH)),
132 (UINT8) ((sizeof (UART_DEVICE_PATH)) >> 8),
133 0,
134 115200,
135 8,
136 1,
137 1
138 },
139 {
140 MESSAGING_DEVICE_PATH,
141 MSG_VENDOR_DP,
142 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
143 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
144 DEVICE_PATH_MESSAGING_PC_ANSI
145 },
146 gEndEntire
147 };
148
149 NT_ISA_SERIAL_DEVICE_PATH gNtSerialDevicePath1 = {
150 {
151 HARDWARE_DEVICE_PATH,
152 HW_VENDOR_DP,
153 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
154 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
155 EFI_WIN_NT_THUNK_PROTOCOL_GUID
156 },
157 {
158 HARDWARE_DEVICE_PATH,
159 HW_VENDOR_DP,
160 (UINT8) (sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)),
161 (UINT8) ((sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)) >> 8),
162 EFI_WIN_NT_SERIAL_PORT_GUID,
163 1
164 },
165 {
166 MESSAGING_DEVICE_PATH,
167 MSG_UART_DP,
168 (UINT8) (sizeof (UART_DEVICE_PATH)),
169 (UINT8) ((sizeof (UART_DEVICE_PATH)) >> 8),
170 0,
171 115200,
172 8,
173 1,
174 1
175 },
176 {
177 MESSAGING_DEVICE_PATH,
178 MSG_VENDOR_DP,
179 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
180 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
181 DEVICE_PATH_MESSAGING_PC_ANSI
182 },
183 gEndEntire
184 };
185
186 //
187 // Predefined platform default console device path
188 //
189 BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[] = {
190 {
191 (EFI_DEVICE_PATH_PROTOCOL *) &gNtSerialDevicePath0,
192 (CONSOLE_OUT | CONSOLE_IN)
193 },
194 {
195 (EFI_DEVICE_PATH_PROTOCOL *) &gNtSerialDevicePath1,
196 (CONSOLE_OUT | CONSOLE_IN)
197 },
198 {
199 (EFI_DEVICE_PATH_PROTOCOL *) &gUgaDevicePath0,
200 (CONSOLE_OUT | CONSOLE_IN)
201 },
202 {
203 (EFI_DEVICE_PATH_PROTOCOL *) &gUgaDevicePath1,
204 (CONSOLE_OUT | CONSOLE_IN)
205 },
206 {
207 (EFI_DEVICE_PATH_PROTOCOL *) &gGopDevicePath0,
208 (CONSOLE_OUT | CONSOLE_IN)
209 },
210 {
211 (EFI_DEVICE_PATH_PROTOCOL *) &gGopDevicePath1,
212 (CONSOLE_OUT | CONSOLE_IN)
213 },
214 {
215 NULL,
216 0
217 }
218 };
219
220 //
221 // Predefined platform specific driver option
222 //
223 EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[] = { NULL };
224
225 //
226 // Predefined platform connect sequence
227 //
228 EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[] = { NULL };