Rewrote the error message output when module cannnot be found in any packages.
[mirror_edk2.git] / EdkNt32Pkg / Dxe / PlatformBds / PlatformData.c
1 /*++
2
3 Copyright (c) 2006, 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 //
73 // Platform specific serial device path
74 //
75 NT_ISA_SERIAL_DEVICE_PATH gNtSerialDevicePath0 = {
76 {
77 HARDWARE_DEVICE_PATH,
78 HW_VENDOR_DP,
79 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
80 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
81 EFI_WIN_NT_THUNK_PROTOCOL_GUID
82 },
83 {
84 HARDWARE_DEVICE_PATH,
85 HW_VENDOR_DP,
86 (UINT8) (sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)),
87 (UINT8) ((sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)) >> 8),
88 EFI_WIN_NT_SERIAL_PORT_GUID
89 },
90 {
91 MESSAGING_DEVICE_PATH,
92 MSG_UART_DP,
93 (UINT8) (sizeof (UART_DEVICE_PATH)),
94 (UINT8) ((sizeof (UART_DEVICE_PATH)) >> 8),
95 0,
96 115200,
97 8,
98 1,
99 1
100 },
101 {
102 MESSAGING_DEVICE_PATH,
103 MSG_VENDOR_DP,
104 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
105 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
106 DEVICE_PATH_MESSAGING_PC_ANSI
107 },
108 gEndEntire
109 };
110
111 NT_ISA_SERIAL_DEVICE_PATH gNtSerialDevicePath1 = {
112 {
113 HARDWARE_DEVICE_PATH,
114 HW_VENDOR_DP,
115 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
116 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
117 EFI_WIN_NT_THUNK_PROTOCOL_GUID
118 },
119 {
120 HARDWARE_DEVICE_PATH,
121 HW_VENDOR_DP,
122 (UINT8) (sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)),
123 (UINT8) ((sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)) >> 8),
124 EFI_WIN_NT_SERIAL_PORT_GUID,
125 1
126 },
127 {
128 MESSAGING_DEVICE_PATH,
129 MSG_UART_DP,
130 (UINT8) (sizeof (UART_DEVICE_PATH)),
131 (UINT8) ((sizeof (UART_DEVICE_PATH)) >> 8),
132 0,
133 115200,
134 8,
135 1,
136 1
137 },
138 {
139 MESSAGING_DEVICE_PATH,
140 MSG_VENDOR_DP,
141 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
142 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
143 DEVICE_PATH_MESSAGING_PC_ANSI
144 },
145 gEndEntire
146 };
147
148 //
149 // Predefined platform default console device path
150 //
151 BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[] = {
152 {
153 (EFI_DEVICE_PATH_PROTOCOL *) &gNtSerialDevicePath0,
154 (CONSOLE_OUT | CONSOLE_IN)
155 },
156 {
157 (EFI_DEVICE_PATH_PROTOCOL *) &gNtSerialDevicePath1,
158 (CONSOLE_OUT | CONSOLE_IN)
159 },
160 {
161 (EFI_DEVICE_PATH_PROTOCOL *) &gUgaDevicePath0,
162 (CONSOLE_OUT | CONSOLE_IN)
163 },
164 {
165 (EFI_DEVICE_PATH_PROTOCOL *) &gUgaDevicePath1,
166 (CONSOLE_OUT | CONSOLE_IN)
167 },
168 {
169 NULL,
170 0
171 }
172 };
173
174 //
175 // Predefined platform specific driver option
176 //
177 EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[] = { NULL };
178
179 //
180 // Predefined platform connect sequence
181 //
182 EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[] = { NULL };