/* This function allocates an aligned buffer for the SCSI device to perform SCSI pass through operations. The alignment requirement is from SCSI pass through interface. */
VOID* AllocateAlignedBuffer(IN SCSI_IO_DEV *ScsiIoDevice, IN UINTN BufferSize)
/* This function allocates an aligned buffer for the SCSI device to perform SCSI pass through operations. The alignment requirement is from SCSI pass through interface. */
VOID* AllocateAlignedBuffer(IN SCSI_IO_DEV *ScsiIoDevice, IN UINTN BufferSize)
{
  return AllocateAlignedPages (EFI_SIZE_TO_PAGES (BufferSize), ScsiIoDevice->ScsiIo.IoAlign);
}