]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ahci: add "em_buffer" attribute for AHCI hosts
authorHarry Zhang <harry.zhang@amd.com>
Fri, 23 Apr 2010 09:28:38 +0000 (17:28 +0800)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 14 May 2010 21:35:51 +0000 (17:35 -0400)
commitc06231661e4fb5f2f50c73ff33702937a11764cf
treee82300639ad09429fb3a6881bb6985363dd9ddbe
parent008dbd61ebee3e647f63bbe8315192e1331cd75f
ahci: add "em_buffer" attribute for AHCI hosts

Add "em_buffer" attribute for SATA AHCI hosts to provide a way for
userland to access AHCI EM (enclosure management) buffer directly if the
host supports EM.

AHCI driver should support SGPIO EM messages. However the SATA/AHCI
specs did not define the SGPIO message format filled in EM buffer.
Different HW vendors may have different definitions. The mainly purpose
of this attribute is to solve this issue by allowing HW vendors to
provide userland drivers and tools for their SGPIO initiators.

Signed-off-by: Harry Zhang <harry.zhang@amd.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/ahci.h
drivers/ata/libahci.c