libqos/ahci: add ahci command helpers
commitf9f963e0fbba98d7ece75287c40d0c1b249dc9b4
authorJohn Snow <jsnow@redhat.com>
Wed, 25 Feb 2015 23:06:37 +0000 (25 18:06 -0500)
committerKevin Wolf <kwolf@redhat.com>
Tue, 10 Mar 2015 13:02:23 +0000 (10 14:02 +0100)
treeaf2c70792a5d37d38bc03b513022ee8922dcd2b3
parentd63b4017c2dff9cf0f15d06d5f604a97a30ef4c5
libqos/ahci: add ahci command helpers

ahci_command_set_flags:  Set additional flags in the command header.
ahci_command_clr_flags:  Clear flags from the command header.
ahci_command_set_offset: Change the IO sector from 0.
ahci_command_adjust:     Adjust many values simultaneously.

To be used to adjust the command header if the default values/guesses
were incorrect or undesirable.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1424905602-24715-4-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
[ kwolf: Fixed conflicting prototype for ahci_command_adjust() ]

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/libqos/ahci.c
tests/libqos/ahci.h