Add in OFFSET_OF macro as defined in MDE Library spec
[mirror_edk2.git] / EdkNt32Pkg / Dxe / PlatformBds / PlatformData.c
CommitLineData
878ddf1f 1/*++\r
2\r
ce8bd86e 3Copyright (c) 2006 - 2007, 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
878ddf1f 8\r
ce8bd86e 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
878ddf1f 13\r
14 PlatformData.c\r
15\r
16Abstract:\r
ce8bd86e 17\r
878ddf1f 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
ce8bd86e 71\r
72b695f3 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
878ddf1f 109\r
110//\r
111// Platform specific serial device path\r
112//\r
113NT_ISA_SERIAL_DEVICE_PATH gNtSerialDevicePath0 = {\r
114 {\r
115 HARDWARE_DEVICE_PATH,\r
116 HW_VENDOR_DP,\r
117 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),\r
118 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),\r
119 EFI_WIN_NT_THUNK_PROTOCOL_GUID\r
120 },\r
121 {\r
122 HARDWARE_DEVICE_PATH,\r
123 HW_VENDOR_DP,\r
124 (UINT8) (sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)),\r
125 (UINT8) ((sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)) >> 8),\r
126 EFI_WIN_NT_SERIAL_PORT_GUID\r
127 },\r
128 {\r
129 MESSAGING_DEVICE_PATH,\r
130 MSG_UART_DP,\r
131 (UINT8) (sizeof (UART_DEVICE_PATH)),\r
132 (UINT8) ((sizeof (UART_DEVICE_PATH)) >> 8),\r
133 0,\r
134 115200,\r
135 8,\r
136 1,\r
137 1\r
138 },\r
139 {\r
140 MESSAGING_DEVICE_PATH,\r
141 MSG_VENDOR_DP,\r
142 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),\r
143 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),\r
144 DEVICE_PATH_MESSAGING_PC_ANSI\r
145 },\r
146 gEndEntire\r
147};\r
148\r
149NT_ISA_SERIAL_DEVICE_PATH gNtSerialDevicePath1 = {\r
150 {\r
151 HARDWARE_DEVICE_PATH,\r
152 HW_VENDOR_DP,\r
153 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),\r
154 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),\r
155 EFI_WIN_NT_THUNK_PROTOCOL_GUID\r
156 },\r
157 {\r
158 HARDWARE_DEVICE_PATH,\r
159 HW_VENDOR_DP,\r
160 (UINT8) (sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)),\r
161 (UINT8) ((sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)) >> 8),\r
162 EFI_WIN_NT_SERIAL_PORT_GUID,\r
163 1\r
164 },\r
165 {\r
166 MESSAGING_DEVICE_PATH,\r
167 MSG_UART_DP,\r
168 (UINT8) (sizeof (UART_DEVICE_PATH)),\r
169 (UINT8) ((sizeof (UART_DEVICE_PATH)) >> 8),\r
170 0,\r
171 115200,\r
172 8,\r
173 1,\r
174 1\r
175 },\r
176 {\r
177 MESSAGING_DEVICE_PATH,\r
178 MSG_VENDOR_DP,\r
179 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),\r
180 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),\r
181 DEVICE_PATH_MESSAGING_PC_ANSI\r
182 },\r
183 gEndEntire\r
184};\r
185\r
186//\r
187// Predefined platform default console device path\r
188//\r
189BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[] = {\r
190 {\r
191 (EFI_DEVICE_PATH_PROTOCOL *) &gNtSerialDevicePath0,\r
192 (CONSOLE_OUT | CONSOLE_IN)\r
193 },\r
194 {\r
195 (EFI_DEVICE_PATH_PROTOCOL *) &gNtSerialDevicePath1,\r
196 (CONSOLE_OUT | CONSOLE_IN)\r
197 },\r
198 {\r
199 (EFI_DEVICE_PATH_PROTOCOL *) &gUgaDevicePath0,\r
200 (CONSOLE_OUT | CONSOLE_IN)\r
201 },\r
202 {\r
203 (EFI_DEVICE_PATH_PROTOCOL *) &gUgaDevicePath1,\r
204 (CONSOLE_OUT | CONSOLE_IN)\r
205 },\r
72b695f3 206 {\r
207 (EFI_DEVICE_PATH_PROTOCOL *) &gGopDevicePath0,\r
208 (CONSOLE_OUT | CONSOLE_IN)\r
209 },\r
210 {\r
211 (EFI_DEVICE_PATH_PROTOCOL *) &gGopDevicePath1,\r
212 (CONSOLE_OUT | CONSOLE_IN)\r
213 },\r
878ddf1f 214 {\r
215 NULL,\r
216 0\r
217 }\r
218};\r
219\r
220//\r
221// Predefined platform specific driver option\r
222//\r
223EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[] = { NULL };\r
224\r
225//\r
226// Predefined platform connect sequence\r
227//\r
228EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[] = { NULL };\r