Nt32/PlatformBootManagerLib: Enable STD_ERROR on all consoles
[mirror_edk2.git] / Nt32Pkg / Library / PlatformBootManagerLib / PlatformData.c
CommitLineData
123e9f62
RN
1/**@file\r
2 Defined the platform specific device path which will be filled to\r
3 ConIn/ConOut variables.\r
4 \r
af0364f0 5Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>\r
123e9f62
RN
6This program and the accompanying materials \r
7are licensed and made available under the terms and conditions of the BSD License \r
8which accompanies this distribution. The full text of the license may be found at \r
9http://opensource.org/licenses/bsd-license.php \r
10 \r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
13**/\r
14\r
15#include "PlatformBootManager.h"\r
16\r
17//\r
18// Platform specific keyboard device path\r
19//\r
20NT_PLATFORM_GOP_DEVICE_PATH gGopDevicePath0 = {\r
21 {\r
22 HARDWARE_DEVICE_PATH,\r
23 HW_VENDOR_DP,\r
24 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),\r
25 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),\r
26 EFI_WIN_NT_THUNK_PROTOCOL_GUID\r
27 },\r
28 {\r
29 HARDWARE_DEVICE_PATH,\r
30 HW_VENDOR_DP,\r
31 (UINT8) (sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)),\r
32 (UINT8) ((sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)) >> 8),\r
33 EFI_WIN_NT_GOP_GUID,\r
34 0\r
35 },\r
36 gEndEntire\r
37};\r
38\r
39NT_PLATFORM_GOP_DEVICE_PATH gGopDevicePath1 = {\r
40 {\r
41 HARDWARE_DEVICE_PATH,\r
42 HW_VENDOR_DP,\r
43 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),\r
44 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),\r
45 EFI_WIN_NT_THUNK_PROTOCOL_GUID\r
46 },\r
47 {\r
48 HARDWARE_DEVICE_PATH,\r
49 HW_VENDOR_DP,\r
50 (UINT8) (sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)),\r
51 (UINT8) ((sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)) >> 8),\r
52 EFI_WIN_NT_GOP_GUID,\r
53 1\r
54 },\r
55 gEndEntire\r
56};\r
57\r
58//\r
59// Platform specific serial device path\r
60//\r
61NT_ISA_SERIAL_DEVICE_PATH gNtSerialDevicePath0 = {\r
62 {\r
63 HARDWARE_DEVICE_PATH,\r
64 HW_VENDOR_DP,\r
65 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),\r
66 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),\r
67 EFI_WIN_NT_THUNK_PROTOCOL_GUID\r
68 },\r
69 {\r
70 HARDWARE_DEVICE_PATH,\r
71 HW_VENDOR_DP,\r
72 (UINT8) (sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)),\r
73 (UINT8) ((sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)) >> 8),\r
74 EFI_WIN_NT_SERIAL_PORT_GUID\r
75 },\r
76 {\r
77 MESSAGING_DEVICE_PATH,\r
78 MSG_UART_DP,\r
79 (UINT8) (sizeof (UART_DEVICE_PATH)),\r
80 (UINT8) ((sizeof (UART_DEVICE_PATH)) >> 8),\r
81 0,\r
82 115200,\r
83 8,\r
84 1,\r
85 1\r
86 },\r
87 {\r
88 MESSAGING_DEVICE_PATH,\r
89 MSG_VENDOR_DP,\r
90 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),\r
91 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),\r
92 DEVICE_PATH_MESSAGING_PC_ANSI\r
93 },\r
94 gEndEntire\r
95};\r
96\r
97NT_ISA_SERIAL_DEVICE_PATH gNtSerialDevicePath1 = {\r
98 {\r
99 HARDWARE_DEVICE_PATH,\r
100 HW_VENDOR_DP,\r
101 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),\r
102 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),\r
103 EFI_WIN_NT_THUNK_PROTOCOL_GUID\r
104 },\r
105 {\r
106 HARDWARE_DEVICE_PATH,\r
107 HW_VENDOR_DP,\r
108 (UINT8) (sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)),\r
109 (UINT8) ((sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)) >> 8),\r
110 EFI_WIN_NT_SERIAL_PORT_GUID,\r
111 1\r
112 },\r
113 {\r
114 MESSAGING_DEVICE_PATH,\r
115 MSG_UART_DP,\r
116 (UINT8) (sizeof (UART_DEVICE_PATH)),\r
117 (UINT8) ((sizeof (UART_DEVICE_PATH)) >> 8),\r
118 0,\r
119 115200,\r
120 8,\r
121 1,\r
122 1\r
123 },\r
124 {\r
125 MESSAGING_DEVICE_PATH,\r
126 MSG_VENDOR_DP,\r
127 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),\r
128 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),\r
129 DEVICE_PATH_MESSAGING_PC_ANSI\r
130 },\r
131 gEndEntire\r
132};\r
133\r
134//\r
135// Predefined platform default console device path\r
136//\r
137PLATFORM_CONSOLE_CONNECT_ENTRY gPlatformConsole[] = {\r
138 {\r
139 (EFI_DEVICE_PATH_PROTOCOL *) &gNtSerialDevicePath0,\r
af0364f0 140 (CONSOLE_OUT | CONSOLE_IN | STD_ERROR)\r
123e9f62
RN
141 },\r
142 {\r
143 (EFI_DEVICE_PATH_PROTOCOL *) &gNtSerialDevicePath1,\r
af0364f0 144 (CONSOLE_OUT | CONSOLE_IN | STD_ERROR)\r
123e9f62
RN
145 },\r
146 {\r
147 (EFI_DEVICE_PATH_PROTOCOL *) &gGopDevicePath0,\r
af0364f0 148 (CONSOLE_OUT | CONSOLE_IN | STD_ERROR)\r
123e9f62
RN
149 },\r
150 {\r
151 (EFI_DEVICE_PATH_PROTOCOL *) &gGopDevicePath1,\r
af0364f0 152 (CONSOLE_OUT | CONSOLE_IN | STD_ERROR)\r
123e9f62
RN
153 },\r
154 {\r
155 NULL,\r
156 0\r
157 }\r
158};\r