libqos/ahci: ATAPI support
authorJohn Snow <jsnow@redhat.com>
Mon, 11 Jan 2016 19:10:42 +0000 (14:10 -0500)
committerJohn Snow <jsnow@redhat.com>
Mon, 11 Jan 2016 19:10:42 +0000 (14:10 -0500)
commit54d268b26ace741f2acab2b8fee0eb325da66b2c
tree994be653151ce67e30837c02f97bc896a16e2126
parent248de4a89915001e64176580d620d22b612e06f2
libqos/ahci: ATAPI support

Add pathways to tolerate ATAPI commands.

Notably, unlike ATA, each SCSI command's layout is a little different,
so support will have to be patched in for each command as we want to
test them in e.g. ahci_command_set_sizes and ahci_command_set_offset.

For now, I'm adding support for 0x28, READ (10).

[Maintainer edit: replaced type-punning with stl_be_p(). --js]

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1452282920-21550-3-git-send-email-jsnow@redhat.com
tests/libqos/ahci.c
tests/libqos/ahci.h