/* It installs DriverBinding, ComponentName and ComponentName2 protocol if there is GraphicsInfo HOB passed from Graphics PEIM. */
EFI_STATUS EFIAPI InitializeGraphicsOutput(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
/* It installs DriverBinding, ComponentName and ComponentName2 protocol if there is GraphicsInfo HOB passed from Graphics PEIM. */
EFI_STATUS EFIAPI InitializeGraphicsOutput(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
{
  EFI_STATUS  Status;
  VOID        *HobStart;
  HobStart = GetFirstGuidHob (&gEfiGraphicsInfoHobGuid);
  if ((HobStart == NULL) || (GET_GUID_HOB_DATA_SIZE (HobStart) < sizeof (EFI_PEI_GRAPHICS_INFO_HOB))) {
    return EFI_NOT_FOUND;
  }
  Status = EfiLibInstallDriverBindingComponentName2 (
             ImageHandle,
             SystemTable,
             &mGraphicsOutputDriverBinding,
             ImageHandle,
             &mGraphicsOutputComponentName,
             &mGraphicsOutputComponentName2
             );
  ASSERT_EFI_ERROR (Status);
  return Status;
}