mirror of https://github.com/acidanthera/audk.git
Add virtual CpuModel, CpuSpeed and Memory driver into default connect device list.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3430 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
7720f6aea2
commit
c8c8116cfb
|
@ -69,6 +69,24 @@ typedef struct {
|
||||||
EFI_DEVICE_PATH_PROTOCOL End;
|
EFI_DEVICE_PATH_PROTOCOL End;
|
||||||
} NT_PLATFORM_GOP_DEVICE_PATH;
|
} NT_PLATFORM_GOP_DEVICE_PATH;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
VENDOR_DEVICE_PATH NtBus;
|
||||||
|
WIN_NT_VENDOR_DEVICE_PATH_NODE NtCpuModelDevice;
|
||||||
|
EFI_DEVICE_PATH_PROTOCOL End;
|
||||||
|
} NT_PLATFORM_CPU_MODEL_VIRTUAL_DEVICE_PATH;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
VENDOR_DEVICE_PATH NtBus;
|
||||||
|
WIN_NT_VENDOR_DEVICE_PATH_NODE NtCpuSpeedDevice;
|
||||||
|
EFI_DEVICE_PATH_PROTOCOL End;
|
||||||
|
} NT_PLATFORM_CPU_SPEED_VIRTUAL_DEVICE_PATH;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
VENDOR_DEVICE_PATH NtBus;
|
||||||
|
WIN_NT_VENDOR_DEVICE_PATH_NODE NtMemoryDeivce;
|
||||||
|
EFI_DEVICE_PATH_PROTOCOL End;
|
||||||
|
} NT_PLATFORM_MEMORY_VIRTUAL_DEVICE_PATH;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Platform BDS Functions
|
// Platform BDS Functions
|
||||||
//
|
//
|
||||||
|
|
|
@ -186,6 +186,63 @@ NT_ISA_SERIAL_DEVICE_PATH gNtSerialDevicePath1 = {
|
||||||
gEndEntire
|
gEndEntire
|
||||||
};
|
};
|
||||||
|
|
||||||
|
NT_PLATFORM_CPU_MODEL_VIRTUAL_DEVICE_PATH gCpuModelDevicePath = {
|
||||||
|
{
|
||||||
|
HARDWARE_DEVICE_PATH,
|
||||||
|
HW_VENDOR_DP,
|
||||||
|
(UINT8) (sizeof (VENDOR_DEVICE_PATH)),
|
||||||
|
(UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
|
||||||
|
EFI_WIN_NT_THUNK_PROTOCOL_GUID
|
||||||
|
},
|
||||||
|
{
|
||||||
|
HARDWARE_DEVICE_PATH,
|
||||||
|
HW_VENDOR_DP,
|
||||||
|
(UINT8) (sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)),
|
||||||
|
(UINT8) ((sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)) >> 8),
|
||||||
|
EFI_WIN_NT_CPU_MODEL_GUID,
|
||||||
|
0
|
||||||
|
},
|
||||||
|
gEndEntire
|
||||||
|
};
|
||||||
|
|
||||||
|
NT_PLATFORM_CPU_SPEED_VIRTUAL_DEVICE_PATH gCpuSpeedDevicePath = {
|
||||||
|
{
|
||||||
|
HARDWARE_DEVICE_PATH,
|
||||||
|
HW_VENDOR_DP,
|
||||||
|
(UINT8) (sizeof (VENDOR_DEVICE_PATH)),
|
||||||
|
(UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
|
||||||
|
EFI_WIN_NT_THUNK_PROTOCOL_GUID
|
||||||
|
},
|
||||||
|
{
|
||||||
|
HARDWARE_DEVICE_PATH,
|
||||||
|
HW_VENDOR_DP,
|
||||||
|
(UINT8) (sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)),
|
||||||
|
(UINT8) ((sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)) >> 8),
|
||||||
|
EFI_WIN_NT_CPU_SPEED_GUID,
|
||||||
|
0
|
||||||
|
},
|
||||||
|
gEndEntire
|
||||||
|
};
|
||||||
|
|
||||||
|
NT_PLATFORM_MEMORY_VIRTUAL_DEVICE_PATH gMemoryDevicePath = {
|
||||||
|
{
|
||||||
|
HARDWARE_DEVICE_PATH,
|
||||||
|
HW_VENDOR_DP,
|
||||||
|
(UINT8) (sizeof (VENDOR_DEVICE_PATH)),
|
||||||
|
(UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
|
||||||
|
EFI_WIN_NT_THUNK_PROTOCOL_GUID
|
||||||
|
},
|
||||||
|
{
|
||||||
|
HARDWARE_DEVICE_PATH,
|
||||||
|
HW_VENDOR_DP,
|
||||||
|
(UINT8) (sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)),
|
||||||
|
(UINT8) ((sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)) >> 8),
|
||||||
|
EFI_WIN_NT_MEMORY_GUID,
|
||||||
|
0
|
||||||
|
},
|
||||||
|
gEndEntire
|
||||||
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
// Predefined platform default console device path
|
// Predefined platform default console device path
|
||||||
//
|
//
|
||||||
|
@ -214,6 +271,18 @@ BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[] = {
|
||||||
(EFI_DEVICE_PATH_PROTOCOL *) &gGopDevicePath1,
|
(EFI_DEVICE_PATH_PROTOCOL *) &gGopDevicePath1,
|
||||||
(CONSOLE_OUT | CONSOLE_IN)
|
(CONSOLE_OUT | CONSOLE_IN)
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
(EFI_DEVICE_PATH_PROTOCOL *) &gCpuModelDevicePath,
|
||||||
|
(CONSOLE_OUT | CONSOLE_IN)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
(EFI_DEVICE_PATH_PROTOCOL *) &gCpuSpeedDevicePath,
|
||||||
|
(CONSOLE_OUT | CONSOLE_IN)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
(EFI_DEVICE_PATH_PROTOCOL *) &gMemoryDevicePath,
|
||||||
|
(CONSOLE_OUT | CONSOLE_IN)
|
||||||
|
},
|
||||||
{
|
{
|
||||||
NULL,
|
NULL,
|
||||||
0
|
0
|
||||||
|
|
Loading…
Reference in New Issue