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:
parent
10deaef118
commit
fd88486a31
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user