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"
17 #include <Guid/QemuRamfb.h>
20 // Debug Agent UART Device Path structure
24 VENDOR_DEVICE_PATH VendorHardware
;
25 UART_DEVICE_PATH Uart
;
26 VENDOR_DEVICE_PATH TerminalType
;
27 EFI_DEVICE_PATH_PROTOCOL End
;
28 } VENDOR_UART_DEVICE_PATH
;
32 // USB Keyboard Device Path structure
36 USB_CLASS_DEVICE_PATH Keyboard
;
37 EFI_DEVICE_PATH_PROTOCOL End
;
38 } USB_KEYBOARD_DEVICE_PATH
;
42 // QemuRamfb Device Path structure
46 VENDOR_DEVICE_PATH Vendor
;
47 ACPI_ADR_DEVICE_PATH AcpiAdr
;
48 EFI_DEVICE_PATH_PROTOCOL End
;
49 } VENDOR_RAMFB_DEVICE_PATH
;
52 ACPI_HID_DEVICE_PATH gPnpPs2KeyboardDeviceNode
= gPnpPs2Keyboard
;
53 ACPI_HID_DEVICE_PATH gPnp16550ComPortDeviceNode
= gPnp16550ComPort
;
54 UART_DEVICE_PATH gUartDeviceNode
= gUart
;
55 VENDOR_DEVICE_PATH gTerminalTypeDeviceNode
= gPcAnsiTerminal
;
58 // Platform specific keyboard device path
63 // Debug Agent UART Device Path
65 VENDOR_UART_DEVICE_PATH gDebugAgentUartDevicePath
= {
71 (UINT8
) (sizeof (VENDOR_DEVICE_PATH
)),
72 (UINT8
) ((sizeof (VENDOR_DEVICE_PATH
)) >> 8)
79 MESSAGING_DEVICE_PATH
,
82 (UINT8
) (sizeof (UART_DEVICE_PATH
)),
83 (UINT8
) ((sizeof (UART_DEVICE_PATH
)) >> 8)
87 0, // BaudRate - Default
88 0, // DataBits - Default
89 0, // Parity - Default
90 0, // StopBits - Default
96 STATIC USB_KEYBOARD_DEVICE_PATH gUsbKeyboardDevicePath
= {
99 MESSAGING_DEVICE_PATH
,
102 (UINT8
)sizeof (USB_CLASS_DEVICE_PATH
),
103 (UINT8
)(sizeof (USB_CLASS_DEVICE_PATH
) >> 8)
106 0xFFFF, // VendorId: any
107 0xFFFF, // ProductId: any
108 3, // DeviceClass: HID
109 1, // DeviceSubClass: boot
110 1 // DeviceProtocol: keyboard
115 STATIC VENDOR_RAMFB_DEVICE_PATH gQemuRamfbDevicePath
= {
118 HARDWARE_DEVICE_PATH
,
121 (UINT8
) (sizeof (VENDOR_DEVICE_PATH
)),
122 (UINT8
) ((sizeof (VENDOR_DEVICE_PATH
)) >> 8)
132 (UINT8
) (sizeof (ACPI_ADR_DEVICE_PATH
)),
133 (UINT8
) ((sizeof (ACPI_ADR_DEVICE_PATH
)) >> 8)
142 ACPI_ADR_DISPLAY_TYPE_EXTERNAL_DIGITAL
, // Type
151 // Predefined platform default console device path
153 PLATFORM_CONSOLE_CONNECT_ENTRY gPlatformConsole
[] = {
155 (EFI_DEVICE_PATH_PROTOCOL
*) &gDebugAgentUartDevicePath
,
156 (CONSOLE_OUT
| CONSOLE_IN
| STD_ERROR
)
159 (EFI_DEVICE_PATH_PROTOCOL
*)&gUsbKeyboardDevicePath
,
163 (EFI_DEVICE_PATH_PROTOCOL
*)&gQemuRamfbDevicePath
,
173 // Predefined platform connect sequence
175 EFI_DEVICE_PATH_PROTOCOL
*gPlatformConnectSequence
[] = { NULL
};