diff options
author | John Snow <jsnow@redhat.com> | 2015-02-05 12:41:25 -0500 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2015-02-16 15:07:17 +0000 |
commit | cbc97569dcce317f7bb32d766d4dfcbeb7fd3013 (patch) | |
tree | ef1c50234dd457ac891c643f5401ff8df13767f7 /tests/libqos/ahci.h | |
parent | ea41deb6022c1468de094dac12610de74220e4b0 (diff) |
libqos/ahci: add ahci command size setters
Adds setters for size, prd_size and both via set_sizes.
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1423158090-25580-15-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/libqos/ahci.h')
-rw-r--r-- | tests/libqos/ahci.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/libqos/ahci.h b/tests/libqos/ahci.h index 26ccdd6d9b..57ff3445c4 100644 --- a/tests/libqos/ahci.h +++ b/tests/libqos/ahci.h @@ -533,6 +533,10 @@ void ahci_command_free(AHCICommand *cmd); /* Command adjustments */ void ahci_command_set_buffer(AHCICommand *cmd, uint64_t buffer); +void ahci_command_set_size(AHCICommand *cmd, uint64_t xbytes); +void ahci_command_set_prd_size(AHCICommand *cmd, unsigned prd_size); +void ahci_command_set_sizes(AHCICommand *cmd, uint64_t xbytes, + unsigned prd_size); /* Command Misc */ uint8_t ahci_command_slot(AHCICommand *cmd); |