OpenCore  1.0.4
OpenCore Bootloader
1.0.4
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
PlatformData.c
Go to the documentation of this file.
1/*++
2
3Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
4This program and the accompanying materials
5are licensed and made available under the terms and conditions of the BSD License
6which accompanies this distribution. The full text of the license may be found at
7http://opensource.org/licenses/bsd-license.php
8
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12Module Name:
13
14 PlatformData.c
15
16Abstract:
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
26
27//
28// Predefined platform root bridge
29//
34
35EFI_DEVICE_PATH_PROTOCOL *gPlatformRootBridges[] = {
36 (EFI_DEVICE_PATH_PROTOCOL *)&gPlatformRootBridge0,
37 NULL
38};
39
41 {
42 {
43 MESSAGING_DEVICE_PATH,
44 MSG_USB_CLASS_DP,
45 {
46 (UINT8)(sizeof (USB_CLASS_DEVICE_PATH)),
47 (UINT8)((sizeof (USB_CLASS_DEVICE_PATH)) >> 8)
48 }
49 },
50 0xffff, // VendorId
51 0xffff, // ProductId
52 CLASS_HID, // DeviceClass
53 SUBCLASS_BOOT, // DeviceSubClass
54 PROTOCOL_KEYBOARD // DeviceProtocol
55 },
56
57 {
58 END_DEVICE_PATH_TYPE,
59 END_ENTIRE_DEVICE_PATH_SUBTYPE,
60 {
61 END_DEVICE_PATH_LENGTH,
62 0
63 }
64 }
65};
66
67//
68// Platform specific Dummy ISA keyboard device path
69//
70
77
78//
79// Predefined platform default console device path
80//
82 //
83 // need update dynamically
84 //
85 {
86 (EFI_DEVICE_PATH_PROTOCOL *)&gDummyIsaKeyboardDevicePath,
88 },
89 {
90 (EFI_DEVICE_PATH_PROTOCOL *)&gUsbClassKeyboardDevicePath,
92 },
93 {
94 NULL,
95 0
96 }
97};
98
99//
100// Predefined platform specific driver option
101//
102EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[] = { NULL };
#define gPciRootBridge
Definition BdsPlatform.h:78
#define gPnpPs2Keyboard
Definition BdsPlatform.h:84
#define gPciIsaBridge
Definition BdsPlatform.h:81
#define SUBCLASS_BOOT
#define PROTOCOL_KEYBOARD
#define gEndEntire
Definition BdsPlatform.h:87
#define CLASS_HID
#define STD_ERROR
Definition DuetBdsLib.h:22
#define CONSOLE_IN
Definition DuetBdsLib.h:23
PLATFORM_ROOT_BRIDGE_DEVICE_PATH gPlatformRootBridge0
USB_CLASS_FORMAT_DEVICE_PATH gUsbClassKeyboardDevicePath
EFI_DEVICE_PATH_PROTOCOL * gPlatformRootBridges[]
EFI_DEVICE_PATH_PROTOCOL * gPlatformDriverOption[]
ACPI_HID_DEVICE_PATH gPnpPs2KeyboardDeviceNode
BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[]
PLATFORM_DUMMY_ISA_KEYBOARD_DEVICE_PATH gDummyIsaKeyboardDevicePath