Add virtual CpuModel, CpuSpeed and Memory driver into default connect device list.
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 25 Jul 2007 05:04:55 +0000 (05:04 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 25 Jul 2007 05:04:55 +0000 (05:04 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3430 6f19259b-4bc3-4df7-8a09-765794883524

Nt32Pkg/PlatformBdsDxe/BdsPlatform.h
Nt32Pkg/PlatformBdsDxe/PlatformData.c

index d045cfcd8d475f374b109f24cfa408c582315040..b5ab5418d3706642d664da6e222c44bfbccdef78 100644 (file)
@@ -69,6 +69,24 @@ typedef struct {
   EFI_DEVICE_PATH_PROTOCOL        End;\r
 } NT_PLATFORM_GOP_DEVICE_PATH;\r
 \r
+typedef struct {\r
+  VENDOR_DEVICE_PATH              NtBus;\r
+  WIN_NT_VENDOR_DEVICE_PATH_NODE  NtCpuModelDevice;\r
+  EFI_DEVICE_PATH_PROTOCOL        End;\r
+} NT_PLATFORM_CPU_MODEL_VIRTUAL_DEVICE_PATH;\r
+\r
+typedef struct {\r
+  VENDOR_DEVICE_PATH              NtBus;\r
+  WIN_NT_VENDOR_DEVICE_PATH_NODE  NtCpuSpeedDevice;\r
+  EFI_DEVICE_PATH_PROTOCOL        End;\r
+} NT_PLATFORM_CPU_SPEED_VIRTUAL_DEVICE_PATH;\r
+\r
+typedef struct {\r
+  VENDOR_DEVICE_PATH              NtBus;\r
+  WIN_NT_VENDOR_DEVICE_PATH_NODE  NtMemoryDeivce;\r
+  EFI_DEVICE_PATH_PROTOCOL        End;\r
+} NT_PLATFORM_MEMORY_VIRTUAL_DEVICE_PATH;\r
+\r
 //\r
 // Platform BDS Functions\r
 //\r
index 5b1d7c55c54b23c46d899e64a5af2ddf7dcb0858..c2beec9bcec2d60f03bd11837397ad234e20fe14 100644 (file)
@@ -186,6 +186,63 @@ NT_ISA_SERIAL_DEVICE_PATH   gNtSerialDevicePath1 = {
   gEndEntire\r
 };\r
 \r
+NT_PLATFORM_CPU_MODEL_VIRTUAL_DEVICE_PATH gCpuModelDevicePath = {\r
+  {\r
+    HARDWARE_DEVICE_PATH,\r
+    HW_VENDOR_DP,\r
+    (UINT8) (sizeof (VENDOR_DEVICE_PATH)),\r
+    (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),\r
+    EFI_WIN_NT_THUNK_PROTOCOL_GUID\r
+  },\r
+  {\r
+    HARDWARE_DEVICE_PATH,\r
+    HW_VENDOR_DP,\r
+    (UINT8) (sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)),\r
+    (UINT8) ((sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)) >> 8),\r
+    EFI_WIN_NT_CPU_MODEL_GUID,\r
+    0\r
+  },\r
+  gEndEntire\r
+};\r
+\r
+NT_PLATFORM_CPU_SPEED_VIRTUAL_DEVICE_PATH gCpuSpeedDevicePath = {\r
+  {\r
+    HARDWARE_DEVICE_PATH,\r
+    HW_VENDOR_DP,\r
+    (UINT8) (sizeof (VENDOR_DEVICE_PATH)),\r
+    (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),\r
+    EFI_WIN_NT_THUNK_PROTOCOL_GUID\r
+  },\r
+  {\r
+    HARDWARE_DEVICE_PATH,\r
+    HW_VENDOR_DP,\r
+    (UINT8) (sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)),\r
+    (UINT8) ((sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)) >> 8),\r
+    EFI_WIN_NT_CPU_SPEED_GUID,\r
+    0\r
+  },\r
+  gEndEntire\r
+};\r
+\r
+NT_PLATFORM_MEMORY_VIRTUAL_DEVICE_PATH gMemoryDevicePath = {\r
+  {\r
+    HARDWARE_DEVICE_PATH,\r
+    HW_VENDOR_DP,\r
+    (UINT8) (sizeof (VENDOR_DEVICE_PATH)),\r
+    (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),\r
+    EFI_WIN_NT_THUNK_PROTOCOL_GUID\r
+  },\r
+  {\r
+    HARDWARE_DEVICE_PATH,\r
+    HW_VENDOR_DP,\r
+    (UINT8) (sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)),\r
+    (UINT8) ((sizeof (WIN_NT_VENDOR_DEVICE_PATH_NODE)) >> 8),\r
+    EFI_WIN_NT_MEMORY_GUID,\r
+    0\r
+  },\r
+  gEndEntire\r
+};\r
+\r
 //\r
 // Predefined platform default console device path\r
 //\r
@@ -214,6 +271,18 @@ BDS_CONSOLE_CONNECT_ENTRY   gPlatformConsole[] = {
     (EFI_DEVICE_PATH_PROTOCOL *) &gGopDevicePath1,\r
     (CONSOLE_OUT | CONSOLE_IN)\r
   },\r
+  {\r
+    (EFI_DEVICE_PATH_PROTOCOL *) &gCpuModelDevicePath,\r
+    (CONSOLE_OUT | CONSOLE_IN)\r
+  },  \r
+  {\r
+    (EFI_DEVICE_PATH_PROTOCOL *) &gCpuSpeedDevicePath,\r
+    (CONSOLE_OUT | CONSOLE_IN)\r
+  },    \r
+  {\r
+    (EFI_DEVICE_PATH_PROTOCOL *) &gMemoryDevicePath,\r
+    (CONSOLE_OUT | CONSOLE_IN)\r
+  },      \r
   {\r
     NULL,\r
     0\r