]> git.proxmox.com Git - mirror_edk2.git/blob - DuetPkg/Library/DuetBdsLib/PlatformData.c
e1a0cde3d4b50bac2023c9969087d9156510a83d
[mirror_edk2.git] / DuetPkg / Library / DuetBdsLib / PlatformData.c
1 /*++
2
3 Copyright (c) 2006 - 2007, 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 "BdsPlatform.h"
24
25 //
26 // Predefined platform default time out value
27 //
28 UINT16 gPlatformBootTimeOutDefault = 3;
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 // Predefined platform root bridge
37 //
38 PLATFORM_ROOT_BRIDGE_DEVICE_PATH gPlatformRootBridge0 = {
39 gPciRootBridge,
40 gEndEntire
41 };
42
43 EFI_DEVICE_PATH_PROTOCOL *gPlatformRootBridges[] = {
44 (EFI_DEVICE_PATH_PROTOCOL *) &gPlatformRootBridge0,
45 NULL
46 };
47
48 USB_CLASS_FORMAT_DEVICE_PATH gUsbClassKeyboardDevicePath = {
49 {
50 {
51 MESSAGING_DEVICE_PATH,
52 MSG_USB_CLASS_DP,
53 (UINT8) (sizeof (USB_CLASS_DEVICE_PATH)),
54 (UINT8) ((sizeof (USB_CLASS_DEVICE_PATH)) >> 8)
55 },
56 0xffff, // VendorId
57 0xffff, // ProductId
58 CLASS_HID, // DeviceClass
59 SUBCLASS_BOOT, // DeviceSubClass
60 PROTOCOL_KEYBOARD // DeviceProtocol
61 },
62
63 {
64 END_DEVICE_PATH_TYPE,
65 END_ENTIRE_DEVICE_PATH_SUBTYPE,
66 END_DEVICE_PATH_LENGTH,
67 0
68 }
69 };
70
71 /*
72 //
73 // Platform specific Dummy ISA keyboard device path
74 //
75 PLATFORM_DUMMY_ISA_KEYBOARD_DEVICE_PATH gDummyIsaKeyboardDevicePath = {
76 gPciRootBridge,
77 gPciIsaBridge,
78 gPnpPs2Keyboard,
79 gEndEntire
80 };
81
82 //
83 // Platform specific Dummy ISA serial device path
84 //
85 PLATFORM_DUMMY_ISA_SERIAL_DEVICE_PATH gDummyIsaSerialDevicePath = {
86 gPciRootBridge,
87 gPciIsaBridge,
88 gPnp16550ComPort,
89 gUart,
90 gPcAnsiTerminal,
91 gEndEntire
92 };
93
94 //
95 // Platform specific Dummy PCI VGA device path
96 //
97 PLATFORM_DUMMY_PCI_VGA_DEVICE_PATH gDummyPciVgaDevicePath = {
98 gPciRootBridge,
99 PCI_DEVICE_PATH_NODE(0, 0x2),
100 gEndEntire
101 };
102
103 //
104 // Platform specific Dummy PCI serial device path
105 //
106 PLATFORM_DUMMY_PCI_SERIAL_DEVICE_PATH gDummyPciSerialDevicePath = {
107 gPciRootBridge,
108 gP2PBridge,
109 PCI_DEVICE_PATH_NODE(0, 0x0),
110 gUart,
111 gPcAnsiTerminal,
112 gEndEntire
113 };
114 */
115 //
116 // Predefined platform default console device path
117 //
118 BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[] = {
119 //
120 // need update dynamically
121 //
122 // {
123 // (EFI_DEVICE_PATH_PROTOCOL *) &gDummyIsaSerialDevicePath,
124 // (CONSOLE_OUT | CONSOLE_IN | STD_ERROR)
125 // },
126 // {
127 // (EFI_DEVICE_PATH_PROTOCOL *) &gDummyIsaKeyboardDevicePath,
128 // (CONSOLE_IN | STD_ERROR)
129 // },
130 // {
131 // (EFI_DEVICE_PATH_PROTOCOL *) &gDummyPciVgaDevicePath,
132 // CONSOLE_OUT
133 // },
134 // {
135 // (EFI_DEVICE_PATH_PROTOCOL *) &gDummyPciSerialDevicePath,
136 // (CONSOLE_OUT | CONSOLE_IN | STD_ERROR)
137 // },
138 {
139 (EFI_DEVICE_PATH_PROTOCOL*) &gUsbClassKeyboardDevicePath,
140 CONSOLE_IN
141 },
142 {
143 NULL,
144 0
145 }
146 };
147
148 //
149 // Predefined platform specific driver option
150 //
151 EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[] = { NULL };
152
153 //
154 // Predefined platform connect sequence
155 //
156 EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[] = { NULL };
157