]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Library/PlatformBootManagerLib/PlatformData.c
OvmgPkg/PlatformBootManagerLib: Add Debug Agent console
[mirror_edk2.git] / OvmfPkg / Library / PlatformBootManagerLib / PlatformData.c
CommitLineData
30541881
RN
1/** @file\r
2 Defined the platform specific device path which will be used by\r
3 platform Bbd to perform the platform policy connect.\r
4\r
f4d575b5 5 Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>\r
30541881
RN
6 This program and the accompanying materials\r
7 are licensed and made available under the terms and conditions of the BSD License\r
8 which accompanies this distribution. The full text of the license may be found at\r
9 http://opensource.org/licenses/bsd-license.php\r
10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#include "BdsPlatform.h"\r
17\r
f4d575b5
MK
18//\r
19// Debug Agent UART Device Path structure\r
20//\r
21#pragma pack(1)\r
22typedef struct {\r
23 VENDOR_DEVICE_PATH VendorHardware;\r
24 UART_DEVICE_PATH Uart;\r
25 VENDOR_DEVICE_PATH TerminalType;\r
26 EFI_DEVICE_PATH_PROTOCOL End;\r
27} VENDOR_UART_DEVICE_PATH;\r
28#pragma pack()\r
29\r
30541881
RN
30ACPI_HID_DEVICE_PATH gPnpPs2KeyboardDeviceNode = gPnpPs2Keyboard;\r
31ACPI_HID_DEVICE_PATH gPnp16550ComPortDeviceNode = gPnp16550ComPort;\r
32UART_DEVICE_PATH gUartDeviceNode = gUart;\r
33VENDOR_DEVICE_PATH gTerminalTypeDeviceNode = gPcAnsiTerminal;\r
34\r
35//\r
36// Platform specific keyboard device path\r
37//\r
38\r
f4d575b5
MK
39\r
40//\r
41// Debug Agent UART Device Path\r
42//\r
43VENDOR_UART_DEVICE_PATH gDebugAgentUartDevicePath = {\r
44 {\r
45 {\r
46 HARDWARE_DEVICE_PATH,\r
47 HW_VENDOR_DP,\r
48 {\r
49 (UINT8) (sizeof (VENDOR_DEVICE_PATH)),\r
50 (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8)\r
51 }\r
52 },\r
53 EFI_DEBUG_AGENT_GUID,\r
54 },\r
55 {\r
56 {\r
57 MESSAGING_DEVICE_PATH,\r
58 MSG_UART_DP,\r
59 {\r
60 (UINT8) (sizeof (UART_DEVICE_PATH)),\r
61 (UINT8) ((sizeof (UART_DEVICE_PATH)) >> 8)\r
62 }\r
63 },\r
64 0, // Reserved\r
65 0, // BaudRate - Default\r
66 0, // DataBits - Default\r
67 0, // Parity - Default\r
68 0, // StopBits - Default\r
69 },\r
70 gPcAnsiTerminal,\r
71 gEndEntire\r
72};\r
73\r
74\r
30541881
RN
75//\r
76// Predefined platform default console device path\r
77//\r
e9e9ad64 78PLATFORM_CONSOLE_CONNECT_ENTRY gPlatformConsole[] = {\r
f4d575b5
MK
79 {\r
80 (EFI_DEVICE_PATH_PROTOCOL *) &gDebugAgentUartDevicePath,\r
81 (CONSOLE_OUT | CONSOLE_IN | STD_ERROR)\r
82 },\r
30541881
RN
83 {\r
84 NULL,\r
85 0\r
86 }\r
87};\r
88\r
30541881
RN
89//\r
90// Predefined platform connect sequence\r
91//\r
92EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[] = { NULL };\r
93\r