OpenCore
1.0.4
OpenCore Bootloader
1.0.4
Toggle main menu visibility
Main Page
Related Pages
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
s
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
PlatformData.c
Go to the documentation of this file.
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
ACPI_HID_DEVICE_PATH
gPnpPs2KeyboardDeviceNode
=
gPnpPs2Keyboard
;
26
27
//
28
// Predefined platform root bridge
29
//
30
PLATFORM_ROOT_BRIDGE_DEVICE_PATH
gPlatformRootBridge0
= {
31
gPciRootBridge
,
32
gEndEntire
33
};
30
PLATFORM_ROOT_BRIDGE_DEVICE_PATH
gPlatformRootBridge0
= {
…
};
34
35
EFI_DEVICE_PATH_PROTOCOL *
gPlatformRootBridges
[] = {
36
(EFI_DEVICE_PATH_PROTOCOL *)&
gPlatformRootBridge0
,
37
NULL
38
};
35
EFI_DEVICE_PATH_PROTOCOL *
gPlatformRootBridges
[] = {
…
};
39
40
USB_CLASS_FORMAT_DEVICE_PATH
gUsbClassKeyboardDevicePath
= {
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
};
40
USB_CLASS_FORMAT_DEVICE_PATH
gUsbClassKeyboardDevicePath
= {
…
};
66
67
//
68
// Platform specific Dummy ISA keyboard device path
69
//
70
71
PLATFORM_DUMMY_ISA_KEYBOARD_DEVICE_PATH
gDummyIsaKeyboardDevicePath
= {
72
gPciRootBridge
,
73
gPciIsaBridge
,
74
gPnpPs2Keyboard
,
75
gEndEntire
76
};
71
PLATFORM_DUMMY_ISA_KEYBOARD_DEVICE_PATH
gDummyIsaKeyboardDevicePath
= {
…
};
77
78
//
79
// Predefined platform default console device path
80
//
81
BDS_CONSOLE_CONNECT_ENTRY
gPlatformConsole
[] = {
82
//
83
// need update dynamically
84
//
85
{
86
(EFI_DEVICE_PATH_PROTOCOL *)&
gDummyIsaKeyboardDevicePath
,
87
(
CONSOLE_IN
|
STD_ERROR
)
88
},
89
{
90
(EFI_DEVICE_PATH_PROTOCOL *)&
gUsbClassKeyboardDevicePath
,
91
CONSOLE_IN
92
},
93
{
94
NULL,
95
0
96
}
97
};
81
BDS_CONSOLE_CONNECT_ENTRY
gPlatformConsole
[] = {
…
};
98
99
//
100
// Predefined platform specific driver option
101
//
102
EFI_DEVICE_PATH_PROTOCOL *
gPlatformDriverOption
[] = { NULL };
BdsPlatform.h
gPciRootBridge
#define gPciRootBridge
Definition
BdsPlatform.h:78
gPnpPs2Keyboard
#define gPnpPs2Keyboard
Definition
BdsPlatform.h:84
gPciIsaBridge
#define gPciIsaBridge
Definition
BdsPlatform.h:81
SUBCLASS_BOOT
#define SUBCLASS_BOOT
Definition
BdsPlatform.h:124
PROTOCOL_KEYBOARD
#define PROTOCOL_KEYBOARD
Definition
BdsPlatform.h:125
gEndEntire
#define gEndEntire
Definition
BdsPlatform.h:87
CLASS_HID
#define CLASS_HID
Definition
BdsPlatform.h:123
STD_ERROR
#define STD_ERROR
Definition
DuetBdsLib.h:22
CONSOLE_IN
#define CONSOLE_IN
Definition
DuetBdsLib.h:23
gPlatformRootBridge0
PLATFORM_ROOT_BRIDGE_DEVICE_PATH gPlatformRootBridge0
Definition
PlatformData.c:30
gUsbClassKeyboardDevicePath
USB_CLASS_FORMAT_DEVICE_PATH gUsbClassKeyboardDevicePath
Definition
PlatformData.c:40
gPlatformRootBridges
EFI_DEVICE_PATH_PROTOCOL * gPlatformRootBridges[]
Definition
PlatformData.c:35
gPlatformDriverOption
EFI_DEVICE_PATH_PROTOCOL * gPlatformDriverOption[]
Definition
PlatformData.c:102
gPnpPs2KeyboardDeviceNode
ACPI_HID_DEVICE_PATH gPnpPs2KeyboardDeviceNode
Definition
PlatformData.c:25
gPlatformConsole
BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[]
Definition
PlatformData.c:81
gDummyIsaKeyboardDevicePath
PLATFORM_DUMMY_ISA_KEYBOARD_DEVICE_PATH gDummyIsaKeyboardDevicePath
Definition
PlatformData.c:71
BDS_CONSOLE_CONNECT_ENTRY
Definition
DuetBdsLib.h:26
PLATFORM_DUMMY_ISA_KEYBOARD_DEVICE_PATH
Definition
BdsPlatform.h:108
PLATFORM_ROOT_BRIDGE_DEVICE_PATH
Definition
BdsPlatform.h:103
USB_CLASS_FORMAT_DEVICE_PATH
Definition
BdsPlatform.h:115
Library
DuetBdsLib
PlatformData.c
Generated by
1.12.0