Add the missing HiiVendor DevicePath for new added DriverHealth Form.
authorlgao4 <lgao4@de2fecce-e211-0410-80a6-f3fac2684e05>
Wed, 9 Dec 2009 08:19:47 +0000 (08:19 +0000)
committerlgao4 <lgao4@de2fecce-e211-0410-80a6-f3fac2684e05>
Wed, 9 Dec 2009 08:19:47 +0000 (08:19 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@9546 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/IntelFrameworkModulePkg/Universal/BdsDxe/DeviceMngr/DeviceManager.c

index 3fa24ad..1543505 100644 (file)
@@ -69,6 +69,31 @@ HII_VENDOR_DEVICE_PATH  mDeviceManagerHiiVendorDevicePath = {
   }\r
 };\r
 \r
+HII_VENDOR_DEVICE_PATH  mDriverHealthHiiVendorDevicePath = {\r
+  {\r
+    {\r
+      HARDWARE_DEVICE_PATH,\r
+        HW_VENDOR_DP,\r
+      {\r
+        (UINT8) (sizeof (VENDOR_DEVICE_PATH)),\r
+          (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8)\r
+      }\r
+    },\r
+    //\r
+    // {D8F76651-1675-4986-BED4-3824B2F1F4C8}\r
+    //\r
+    { 0xd8f76651, 0x1675, 0x4986, { 0xbe, 0xd4, 0x38, 0x24, 0xb2, 0xf1, 0xf4, 0xc8 } }\r
+  },\r
+  {\r
+    END_DEVICE_PATH_TYPE,\r
+      END_ENTIRE_DEVICE_PATH_SUBTYPE,\r
+    { \r
+      (UINT8) (END_DEVICE_PATH_LENGTH),\r
+        (UINT8) ((END_DEVICE_PATH_LENGTH) >> 8)\r
+    }\r
+  }\r
+};\r
+\r
 /**\r
   This function is invoked if user selected a interactive opcode from Device Manager's\r
   Formset. The decision by user is saved to gCallbackKey for later processing. If\r
@@ -141,6 +166,8 @@ InitializeDeviceManager (
 \r
   Status = gBS->InstallMultipleProtocolInterfaces (\r
                   &gDeviceManagerPrivate.DriverHealthHandle,\r
+                  &gEfiDevicePathProtocolGuid,\r
+                  &mDriverHealthHiiVendorDevicePath,\r
                   &gEfiHiiConfigAccessProtocolGuid,\r
                   &gDeviceManagerPrivate.DriverHealthConfigAccess,\r
                   NULL\r