ahci: Set the command bits as required.

* The trim command should be functional now, but it's completely untested
  at this point.
This commit is contained in:
Axel Dörfler 2013-10-28 23:36:27 +01:00
parent 10deaef118
commit fd88486a31

View File

@ -839,7 +839,8 @@ AHCIPort::ScsiUnmap(scsi_ccb* request, scsi_unmap_parameter_list* unmapBlocks)
}
sata_request sreq;
sreq.set_ata_cmd(ATA_COMMAND_DATA_SET_MANAGEMENT);
sreq.set_ata48_cmd(ATA_COMMAND_DATA_SET_MANAGEMENT, 0,
(lbaRangesSize + 511) / 512);
sreq.set_data(lbaRanges, lbaRangesSize);
ExecuteSataRequest(&sreq);