Skip to content
  • John Snow's avatar
    ahci: factor out FIS decomposition from handle_cmd · 107f0d46
    John Snow authored
    
    
    In order to make handle_cmd more readable at the macro level,
    the details of how to decompose particular types of FIS packets
    are left to helper functions.
    
    In our case, the only type of FIS packet we currently expect to
    see is a Register H2D FIS packet, but the gory details of its
    decomposition are of no particular interest in handle_cmd.
    
    This patch keeps the receipt of FIS packets and the decomposition
    thereof separated to two different functions.
    
    Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
    Reviewed-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    Message-id: 1415058979-16604-6-git-send-email-jsnow@redhat.com
    Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
    107f0d46