libata: implement PMP helpers
authorTejun Heo <htejun@gmail.com>
Mon, 7 Apr 2008 13:47:22 +0000 (22:47 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Apr 2008 19:44:25 +0000 (15:44 -0400)
commit071f44b1d2c051641b62a3571223314737ccbe59
treea07794c8109e5d82a78223ae0159eadbf862c463
parent48515f6c006c2a9d7b624ee8ad068018c2d3fe0e
libata: implement PMP helpers

Implement helpers to test whether PMP is supported, attached and
determine pmp number to use when issuing SRST to a link.  While at it,
move ata_is_host_link() so that it's together with the two new PMP
helpers.

This change simplifies LLDs and helps making PMP support optional.

Signed-off-by: Tejun Heo <htejun@gmail.com>
drivers/ata/ahci.c
drivers/ata/libata-acpi.c
drivers/ata/libata-core.c
drivers/ata/libata-eh.c
drivers/ata/libata-pmp.c
drivers/ata/libata-scsi.c
drivers/ata/sata_sil24.c
include/linux/libata.h