/* Always try to find and enable PCI display devices. */
VOID PlatformInitializeConsole(IN PLATFORM_CONSOLE_CONNECT_ENTRY *PlatformConsole)
/* Always try to find and enable PCI display devices. */
VOID PlatformInitializeConsole(IN PLATFORM_CONSOLE_CONNECT_ENTRY *PlatformConsole)
{
  UINTN  Index;
  VisitAllPciInstances (DetectAndPreparePlatformPciDevicePath);
  for (Index = 0; PlatformConsole[Index].DevicePath != NULL; ++Index) {
    if ((PlatformConsole[Index].ConnectType & CONSOLE_IN) == CONSOLE_IN) {
      EfiBootManagerUpdateConsoleVariable (
        ConIn,
        PlatformConsole[Index].DevicePath,
        NULL
        );
    }
    if ((PlatformConsole[Index].ConnectType & CONSOLE_OUT) == CONSOLE_OUT) {
      EfiBootManagerUpdateConsoleVariable (
        ConOut,
        PlatformConsole[Index].DevicePath,
        NULL
        );
    }
    if ((PlatformConsole[Index].ConnectType & STD_ERROR) == STD_ERROR) {
      EfiBootManagerUpdateConsoleVariable (
        ErrOut,
        PlatformConsole[Index].DevicePath,
        NULL
        );
    }
  }
}