1 /*++ 2 3 Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR> 4 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 { 54 (UINT8) (sizeof (USB_CLASS_DEVICE_PATH)), 55 (UINT8) ((sizeof (USB_CLASS_DEVICE_PATH)) >> 8) 56 } 57 }, 58 0xffff, // VendorId 59 0xffff, // ProductId 60 CLASS_HID, // DeviceClass 61 SUBCLASS_BOOT, // DeviceSubClass 62 PROTOCOL_KEYBOARD // DeviceProtocol 63 }, 64 65 { 66 END_DEVICE_PATH_TYPE, 67 END_ENTIRE_DEVICE_PATH_SUBTYPE, 68 { 69 END_DEVICE_PATH_LENGTH, 70 0 71 } 72 } 73 }; 74 75 /* 76 // 77 // Platform specific Dummy ISA keyboard device path 78 // 79 PLATFORM_DUMMY_ISA_KEYBOARD_DEVICE_PATH gDummyIsaKeyboardDevicePath = { 80 gPciRootBridge, 81 gPciIsaBridge, 82 gPnpPs2Keyboard, 83 gEndEntire 84 }; 85 86 // 87 // Platform specific Dummy ISA serial device path 88 // 89 PLATFORM_DUMMY_ISA_SERIAL_DEVICE_PATH gDummyIsaSerialDevicePath = { 90 gPciRootBridge, 91 gPciIsaBridge, 92 gPnp16550ComPort, 93 gUart, 94 gPcAnsiTerminal, 95 gEndEntire 96 }; 97 98 // 99 // Platform specific Dummy PCI VGA device path 100 // 101 PLATFORM_DUMMY_PCI_VGA_DEVICE_PATH gDummyPciVgaDevicePath = { 102 gPciRootBridge, 103 PCI_DEVICE_PATH_NODE(0, 0x2), 104 gEndEntire 105 }; 106 107 // 108 // Platform specific Dummy PCI serial device path 109 // 110 PLATFORM_DUMMY_PCI_SERIAL_DEVICE_PATH gDummyPciSerialDevicePath = { 111 gPciRootBridge, 112 gP2PBridge, 113 PCI_DEVICE_PATH_NODE(0, 0x0), 114 gUart, 115 gPcAnsiTerminal, 116 gEndEntire 117 }; 118 */ 119 // 120 // Predefined platform default console device path 121 // 122 BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[] = { 123 // 124 // need update dynamically 125 // 126 // { 127 // (EFI_DEVICE_PATH_PROTOCOL *) &gDummyIsaSerialDevicePath, 128 // (CONSOLE_OUT | CONSOLE_IN | STD_ERROR) 129 // }, 130 // { 131 // (EFI_DEVICE_PATH_PROTOCOL *) &gDummyIsaKeyboardDevicePath, 132 // (CONSOLE_IN | STD_ERROR) 133 // }, 134 // { 135 // (EFI_DEVICE_PATH_PROTOCOL *) &gDummyPciVgaDevicePath, 136 // CONSOLE_OUT 137 // }, 138 // { 139 // (EFI_DEVICE_PATH_PROTOCOL *) &gDummyPciSerialDevicePath, 140 // (CONSOLE_OUT | CONSOLE_IN | STD_ERROR) 141 // }, 142 { 143 (EFI_DEVICE_PATH_PROTOCOL*) &gUsbClassKeyboardDevicePath, 144 CONSOLE_IN 145 }, 146 { 147 NULL, 148 0 149 } 150 }; 151 152 // 153 // Predefined platform specific driver option 154 // 155 EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[] = { NULL }; 156 157 // 158 // Predefined platform connect sequence 159 // 160 EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[] = { NULL }; 161 162