dingusppc/devices/common/ata
Mihai Parparita 52f4d847dd Fixes for READ_MULTIPLE and WRITE_MULTIPLE commands
We may be transferring less data than can fit in a chunk, so we need
to ensure that xfer_cnt is clamped to 0 when transferring the last
chunk (otherwise it remains negative, and has_data() will return true).

It's also possible that the transfer size is bigger than a chunk but not
an even multiple of the chunk size, so we need to ensure that we don't
try to transfer a whole chunk in the last iteration.

More correctly initialize the device identification struct, to report
the maximum (word 47) and current (word 59) number of blocks that can be
transferred with READ_MULTIPLE and WRITE_MULTIPLE commands.

Fix post_xfer_action to write the actual data size that was written,
as opposed to an entire chunk (which may be larger).
2024-08-24 22:51:07 -07:00
..
atabasedevice.cpp Fixes for READ_MULTIPLE and WRITE_MULTIPLE commands 2024-08-24 22:51:07 -07:00
atabasedevice.h
atadefs.h atahd: implement mandatory SET_MULTIPLE_MODE command. 2024-08-21 21:21:44 +02:00
atahd.cpp Fixes for READ_MULTIPLE and WRITE_MULTIPLE commands 2024-08-24 22:51:07 -07:00
atahd.h Fixes for READ_MULTIPLE and WRITE_MULTIPLE commands 2024-08-24 22:51:07 -07:00
atapibasedevice.cpp minor ATA tweaks 2024-08-24 12:58:19 -07:00
atapibasedevice.h
atapicdrom.cpp
atapicdrom.h
idechannel.cpp
idechannel.h