]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
qtest/ahci: Demagic ahci tests.
authorJohn Snow <jsnow@redhat.com>
Thu, 5 Feb 2015 17:41:20 +0000 (12:41 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 16 Feb 2015 15:07:17 +0000 (15:07 +0000)
commit36e367261c15f0fa9acfbe9f4301c96e19be7f52
tree8d193bd1a7c701529a9f578991420ac5faf42e83
parentd1ef883894f0661f9994bc937ba09077a32a8bee
qtest/ahci: Demagic ahci tests.

Add human-readable command names and other miscellaneous #defines
to help make the code more readable.

Some of these definitions are not yet used in this current series,
but for convenience and sanity they have been lumped together here,
as it's more trouble than it is worth in a test suite to hand-pick,
one-by-one, which preprocessor definitions are useful per-each test.

These definitions include:

ATA Command Mnemonics
Current expected AHCI sector size
FIS magic bytes
REG_H2D_FIS flags
Command Header flags

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1423158090-25580-10-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/ahci-test.c
tests/libqos/ahci.h