OSDN Git Service

ahci: Add test_hba_enable to ahci-test.
authorJohn Snow <jsnow@redhat.com>
Thu, 21 Aug 2014 17:44:38 +0000 (13:44 -0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 22 Sep 2014 10:39:42 +0000 (11:39 +0100)
commitdbc180e5725e4eb4fd1632d0af41189c7410e459
treefae6d80adeee3cb7ba4df9b718062c591bb1fd6d
parentc2f3029fbc5e7beb4cfb7ac264e10838fada524e
ahci: Add test_hba_enable to ahci-test.

This test engages the HBA functionality and initializes
values to sane defaults to allow for minimal HBA functionality.

Buffers are allocated and pointers are updated to allow minimal
I/O commands to complete as expected. Error registers and responses
are sanity checked for specification adherence.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1408643079-30675-8-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/ahci-test.c