atapi: Switch to byte-based block access
commit26a122d3d47205969ca9e4cdba13adc2b2929d8c
authorEric Blake <eblake@redhat.com>
Fri, 6 May 2016 16:26:41 +0000 (6 10:26 -0600)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 May 2016 13:22:09 +0000 (12 15:22 +0200)
tree7ca7faa1ea0a27a5e5804f6abb212dce4aa66dab
parent243e6f69c129303cb7f161466e989722e9d7e02f
atapi: Switch to byte-based block access

Sector-based blk_read() should die; switch to byte-based
blk_pread() instead.

Add new defines ATAPI_SECTOR_BITS and ATAPI_SECTOR_SIZE to
use anywhere we were previously scaling BDRV_SECTOR_* by 4,
for better legibility.

Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/atapi.c