/* For every Serial Io instance, add it to ConOut, ConIn, ErrOut. */
EFI_STATUS EFIAPI AddDevicePathForOneSerialIoInstance(IN EFI_HANDLE Handle, IN VOID *Instance)
/* For every Serial Io instance, add it to ConOut, ConIn, ErrOut. */
EFI_STATUS EFIAPI AddDevicePathForOneSerialIoInstance(IN EFI_HANDLE Handle, IN VOID *Instance)
{
  EFI_STATUS                Status;
  EFI_DEVICE_PATH_PROTOCOL  *DevicePath;
  DevicePath = NULL;
  Status     = gBS->HandleProtocol (
                      Handle,
                      &gEfiDevicePathProtocolGuid,
                      (VOID *)&DevicePath
                      );
  DevicePath = AppendDevicePathNode (DevicePath, (EFI_DEVICE_PATH_PROTOCOL *)&gTerminalTypeDeviceNode);
  EfiBootManagerUpdateConsoleVariable (ConOut, DevicePath, NULL);
  EfiBootManagerUpdateConsoleVariable (ConIn, DevicePath, NULL);
  EfiBootManagerUpdateConsoleVariable (ErrOut, DevicePath, NULL);
  return Status;
}