diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-07-25 05:04:55 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-07-25 05:04:55 +0000 |
commit | c8c8116cfb645195b3484757a9f81a53f6989bdf (patch) | |
tree | 6c2ed1f989cbf87d37718b882e49c01dafa99b49 /Nt32Pkg/PlatformBdsDxe | |
parent | 7720f6aea29375477abf35f231fadfbe1015982a (diff) | |
download | edk2-platforms-c8c8116cfb645195b3484757a9f81a53f6989bdf.tar.xz |
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
Diffstat (limited to 'Nt32Pkg/PlatformBdsDxe')
-rw-r--r-- | Nt32Pkg/PlatformBdsDxe/BdsPlatform.h | 18 | ||||
-rw-r--r-- | Nt32Pkg/PlatformBdsDxe/PlatformData.c | 69 |
2 files changed, 87 insertions, 0 deletions
diff --git a/Nt32Pkg/PlatformBdsDxe/BdsPlatform.h b/Nt32Pkg/PlatformBdsDxe/BdsPlatform.h index d045cfcd8d..b5ab5418d3 100644 --- a/Nt32Pkg/PlatformBdsDxe/BdsPlatform.h +++ b/Nt32Pkg/PlatformBdsDxe/BdsPlatform.h @@ -69,6 +69,24 @@ typedef struct { EFI_DEVICE_PATH_PROTOCOL End;
} 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
//
diff --git a/Nt32Pkg/PlatformBdsDxe/PlatformData.c b/Nt32Pkg/PlatformBdsDxe/PlatformData.c index 5b1d7c55c5..c2beec9bce 100644 --- a/Nt32Pkg/PlatformBdsDxe/PlatformData.c +++ b/Nt32Pkg/PlatformBdsDxe/PlatformData.c @@ -186,6 +186,63 @@ NT_ISA_SERIAL_DEVICE_PATH gNtSerialDevicePath1 = { 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
//
@@ -215,6 +272,18 @@ BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[] = { (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,
0
}
|