/* Update ConOutDev and ErrOutDev variables to add the device path of GOP controller itself and the sibling controllers. */
BOOLEAN ConPlatformUpdateGopCandidate(IN EFI_DEVICE_PATH_PROTOCOL *DevicePath)
/* Update ConOutDev and ErrOutDev variables to add the device path of GOP controller itself and the sibling controllers. */
BOOLEAN ConPlatformUpdateGopCandidate(IN EFI_DEVICE_PATH_PROTOCOL *DevicePath)
{
  EFI_STATUS                Status;
  EFI_HANDLE                PciHandle;
  EFI_HANDLE                GopHandle;
  EFI_DEVICE_PATH_PROTOCOL  *TempDevicePath;
  TempDevicePath = DevicePath;
  Status         = gBS->LocateDevicePath (&gEfiGraphicsOutputProtocolGuid, &TempDevicePath, &GopHandle);
  if (EFI_ERROR (Status)) {
    return FALSE;
  }
  Status = gBS->LocateDevicePath (&gEfiPciIoProtocolGuid, &DevicePath, &PciHandle);
  if (EFI_ERROR (Status)) {
    return FALSE;
  }
  TempDevicePath = EfiBootManagerGetGopDevicePath (PciHandle);
  if (TempDevicePath != NULL) {
    ConPlatformUpdateDeviceVariable (L"ConOutDev", TempDevicePath, Append);
    ConPlatformUpdateDeviceVariable (L"ErrOutDev", TempDevicePath, Append);
  }
  return TRUE;
}