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