• Harry Zhang's avatar
    ahci: add "em_buffer" attribute for AHCI hosts · c0623166
    Harry Zhang authored
    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: default avatarHarry Zhang <harry.zhang@amd.com>
    Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
    c0623166
libahci.c 56.4 KB