MFC 261000,261785,263238,263322,264302:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 10 Jun 2014 19:00:14 +0000 (19:00 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 10 Jun 2014 19:00:14 +0000 (19:00 +0000)
commitc4ce15f0b023ea30773a23aca0294e59da10ac23
tree950708dfa975f1d853259f54113599b2fa838ce9
parent63a6fb241ee2875aacf87305ddcbbcc825af549e
MFC 261000,261785,263238,263322,264302:
Various AHCI fixes:
- Fix issue with stale fields from a recycled request pulled off the
  freelist.
- Provide an indication a "PIO Setup Device to Host FIS" occurred while
  executing the IDENTIFY DEVICE and IDENTIFY PACKET DEVICE commands.
- Provide an indication a "D2H Register FIS" occurred during a SET FEATURES
  command.
- Though there currently isn't a way to insert new media into an ATAPI
  drive, at least pretend to support Asynchronous Notification (AN) to
  avoid a guest needlessly polling for it.
- Don't reissue in-flight commands.
- Constrain the amount of data returned to what is actually available
  not the size of the buffer.

git-svn-id: svn://svn.freebsd.org/base/stable/10@267339 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/bhyve/pci_ahci.c