mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-07 23:31:46 +00:00
52f4d847dd
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). |
||
---|---|---|
.. | ||
adb | ||
ata | ||
i2c | ||
pci | ||
scsi | ||
dbdma.cpp | ||
dbdma.h | ||
dmacore.h | ||
hwcomponent.h | ||
hwinterrupt.h | ||
machineid.h | ||
mmiodevice.h | ||
nvram.cpp | ||
nvram.h | ||
ofnvram.cpp | ||
ofnvram.h | ||
viacuda.cpp | ||
viacuda.h |