libata: Export AHCI capabilities
authorMatthew Garrett <mjg@redhat.com>
Fri, 17 Jul 2009 18:13:47 +0000 (19:13 +0100)
committerMatt Sealey <neko@excel.(none)>
Tue, 10 Aug 2010 16:50:51 +0000 (11:50 -0500)
commitba80c5ba5281c288617b13d118662a9cbfc1bc10
tree6354413f699a0cb0f3c8fc3498633b51381040e9
parent1a42e346d609d6b5566f165f83fe35bbe50dfb36
libata: Export AHCI capabilities

AHCI exports various capability bits that may be of interest to userspace
such as whether the BIOS claims a port is hotpluggable or eSATA. Providing
these via sysfs along with the version of the AHCI spec implemented by
the host allows userspace to make policy decisions for things like ALPM.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/ahci.c