/* Retrieves the device location in the SCSI channel. */
EFI_STATUS EFIAPI ScsiGetDeviceLocation(IN EFI_SCSI_IO_PROTOCOL *This, IN OUT UINT8 **Target, OUT UINT64 *Lun)
/* Retrieves the device location in the SCSI channel. */
EFI_STATUS EFIAPI ScsiGetDeviceLocation(IN EFI_SCSI_IO_PROTOCOL *This, IN OUT UINT8 **Target, OUT UINT64 *Lun)
{
  SCSI_IO_DEV  *ScsiIoDevice;
  if ((Target == NULL) || (Lun == NULL)) {
    return EFI_INVALID_PARAMETER;
  }
  ScsiIoDevice = SCSI_IO_DEV_FROM_THIS (This);
  CopyMem (*Target, &ScsiIoDevice->Pun, TARGET_MAX_BYTES);
  *Lun = ScsiIoDevice->Lun;
  return EFI_SUCCESS;
}