From: lgao4 Date: Wed, 9 Dec 2009 08:19:47 +0000 (+0000) Subject: Add the missing HiiVendor DevicePath for new added DriverHealth Form. X-Git-Tag: edk2-stable201903~16775 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=6191043539345a1a98d0831ad98feb68dbab6d23;hp=afbb91aa09219bcfe7a525ba48d8d80b34ac4494 Add the missing HiiVendor DevicePath for new added DriverHealth Form. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9546 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/DeviceMngr/DeviceManager.c b/IntelFrameworkModulePkg/Universal/BdsDxe/DeviceMngr/DeviceManager.c index 3fa24ad6d5..15435056f8 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/DeviceMngr/DeviceManager.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/DeviceMngr/DeviceManager.c @@ -69,6 +69,31 @@ HII_VENDOR_DEVICE_PATH mDeviceManagerHiiVendorDevicePath = { } }; +HII_VENDOR_DEVICE_PATH mDriverHealthHiiVendorDevicePath = { + { + { + HARDWARE_DEVICE_PATH, + HW_VENDOR_DP, + { + (UINT8) (sizeof (VENDOR_DEVICE_PATH)), + (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8) + } + }, + // + // {D8F76651-1675-4986-BED4-3824B2F1F4C8} + // + { 0xd8f76651, 0x1675, 0x4986, { 0xbe, 0xd4, 0x38, 0x24, 0xb2, 0xf1, 0xf4, 0xc8 } } + }, + { + END_DEVICE_PATH_TYPE, + END_ENTIRE_DEVICE_PATH_SUBTYPE, + { + (UINT8) (END_DEVICE_PATH_LENGTH), + (UINT8) ((END_DEVICE_PATH_LENGTH) >> 8) + } + } +}; + /** This function is invoked if user selected a interactive opcode from Device Manager's Formset. The decision by user is saved to gCallbackKey for later processing. If @@ -141,6 +166,8 @@ InitializeDeviceManager ( Status = gBS->InstallMultipleProtocolInterfaces ( &gDeviceManagerPrivate.DriverHealthHandle, + &gEfiDevicePathProtocolGuid, + &mDriverHealthHiiVendorDevicePath, &gEfiHiiConfigAccessProtocolGuid, &gDeviceManagerPrivate.DriverHealthConfigAccess, NULL