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