OSDN Git Service

libqos/ahci: track sector size
authorJohn Snow <jsnow@redhat.com>
Wed, 6 Jun 2018 19:09:49 +0000 (15:09 -0400)
committerJohn Snow <jsnow@redhat.com>
Fri, 8 Jun 2018 17:17:59 +0000 (13:17 -0400)
commit27e4648ce98f8172c2c2449896430e87652818d1
treeead0d39618c863ce029795f4f17290c795d13051
parentedc35b3dc25a71f226ce9a0e6517a9ee26a023ff
libqos/ahci: track sector size

It's not always 512, and it does wind up mattering for PIO tranfers,
because this means DRQ blocks are four times as big for ATAPI.
Replace an instance of 2048 with the correct define, too.

This patch by itself winds changing no behavior. fis->count is ignored
for CMD_PACKET, and sect_count only gets used in non-ATAPI cases.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20180606190955.20845-2-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
tests/libqos/ahci.c