AHCI/SILI - Send dummy SETXFER mode even though it is SATA
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 3 Nov 2009 18:00:14 +0000 (10:00 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 3 Nov 2009 18:00:14 +0000 (10:00 -0800)
commit69b3741eda7a43961baaf659f4c99e8ad054a899
treec61e2c7fbae49953acd4239eae25232899a8f849
parentf4d6ca16ded7022f8e2bf771a3f3e08bc89fed8c
AHCI/SILI - Send dummy SETXFER mode even though it is SATA

* If the identify structure contains a non-zero/non-FFFF dmamode field
  we send a dummy SETXFER mode command to the device.

* Most SATA DISK devices set this field to 0 or FFFF and in this case no
  SETXFER mode command is sent.  SETXFER is non-applicable to SATA in
  general.

  Most ATAPI devices still initialize the dmamode field and some ATAPI
  devices still require SETXFER to be sent even though they are native SATA.

  SATA->PATA converters may require a SETXFER to be passed through before
  the PATA devices will operate properly.  In this case the dmamode field
  will likely be initialized.
sys/dev/disk/ahci/ahci_cam.c
sys/dev/disk/ahci/atascsi.h
sys/dev/disk/sili/atascsi.h
sys/dev/disk/sili/sili_cam.c