2 Defined the platform specific device path which will be used by
3 platform Bbd to perform the platform policy connect.
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
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.
16 #include "BdsPlatform.h"
19 // Debug Agent UART Device Path structure
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
;
31 // USB Keyboard Device Path structure
35 USB_CLASS_DEVICE_PATH Keyboard
;
36 EFI_DEVICE_PATH_PROTOCOL End
;
37 } USB_KEYBOARD_DEVICE_PATH
;
40 ACPI_HID_DEVICE_PATH gPnpPs2KeyboardDeviceNode
= gPnpPs2Keyboard
;
41 ACPI_HID_DEVICE_PATH gPnp16550ComPortDeviceNode
= gPnp16550ComPort
;
42 UART_DEVICE_PATH gUartDeviceNode
= gUart
;
43 VENDOR_DEVICE_PATH gTerminalTypeDeviceNode
= gPcAnsiTerminal
;
46 // Platform specific keyboard device path
51 // Debug Agent UART Device Path
53 VENDOR_UART_DEVICE_PATH gDebugAgentUartDevicePath
= {
59 (UINT8
) (sizeof (VENDOR_DEVICE_PATH
)),
60 (UINT8
) ((sizeof (VENDOR_DEVICE_PATH
)) >> 8)
67 MESSAGING_DEVICE_PATH
,
70 (UINT8
) (sizeof (UART_DEVICE_PATH
)),
71 (UINT8
) ((sizeof (UART_DEVICE_PATH
)) >> 8)
75 0, // BaudRate - Default
76 0, // DataBits - Default
77 0, // Parity - Default
78 0, // StopBits - Default
84 STATIC USB_KEYBOARD_DEVICE_PATH gUsbKeyboardDevicePath
= {
87 MESSAGING_DEVICE_PATH
,
90 (UINT8
)sizeof (USB_CLASS_DEVICE_PATH
),
91 (UINT8
)(sizeof (USB_CLASS_DEVICE_PATH
) >> 8)
94 0xFFFF, // VendorId: any
95 0xFFFF, // ProductId: any
96 3, // DeviceClass: HID
97 1, // DeviceSubClass: boot
98 1 // DeviceProtocol: keyboard
104 // Predefined platform default console device path
106 PLATFORM_CONSOLE_CONNECT_ENTRY gPlatformConsole
[] = {
108 (EFI_DEVICE_PATH_PROTOCOL
*) &gDebugAgentUartDevicePath
,
109 (CONSOLE_OUT
| CONSOLE_IN
| STD_ERROR
)
112 (EFI_DEVICE_PATH_PROTOCOL
*)&gUsbKeyboardDevicePath
,
122 // Predefined platform connect sequence
124 EFI_DEVICE_PATH_PROTOCOL
*gPlatformConnectSequence
[] = { NULL
};