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