svn commit: r286838 - head/usr.sbin/bhyve
Peter Grehan
grehan at FreeBSD.org
Mon Aug 17 05:59:37 UTC 2015
Author: grehan
Date: Mon Aug 17 05:59:36 2015
New Revision: 286838
URL: https://svnweb.freebsd.org/changeset/base/286838
Log:
Add simple (no-op) emulations for the CHECK_POWER_MODE,
READ_VERIFY and READ_VERIFY_EXT commands.
Reviewed by: mav
Modified:
head/usr.sbin/bhyve/pci_ahci.c
Modified: head/usr.sbin/bhyve/pci_ahci.c
==============================================================================
--- head/usr.sbin/bhyve/pci_ahci.c Mon Aug 17 05:56:41 2015 (r286837)
+++ head/usr.sbin/bhyve/pci_ahci.c Mon Aug 17 05:59:36 2015 (r286838)
@@ -1687,11 +1687,17 @@ ahci_handle_cmd(struct ahci_port *p, int
ahci_write_fis_d2h(p, slot, cfis,
(ATA_E_ABORT << 8) | ATA_S_READY | ATA_S_ERROR);
break;
+ case ATA_CHECK_POWER_MODE:
+ cfis[12] = 0xff; /* always on */
+ ahci_write_fis_d2h(p, slot, cfis, ATA_S_READY | ATA_S_DSC);
+ break;
case ATA_STANDBY_CMD:
case ATA_STANDBY_IMMEDIATE:
case ATA_IDLE_CMD:
case ATA_IDLE_IMMEDIATE:
case ATA_SLEEP:
+ case ATA_READ_VERIFY:
+ case ATA_READ_VERIFY48:
ahci_write_fis_d2h(p, slot, cfis, ATA_S_READY | ATA_S_DSC);
break;
case ATA_ATAPI_IDENTIFY:
More information about the svn-src-all
mailing list