1.1 --- a/pkg/devices/lib/dma/src/x1600.cc Sun Feb 11 00:35:07 2024 +0100
1.2 +++ b/pkg/devices/lib/dma/src/x1600.cc Sun Feb 11 00:35:46 2024 +0100
1.3 @@ -234,7 +234,8 @@
1.4 }
1.5 }
1.6
1.7 -// Transfer data between memory locations.
1.8 +// Transfer data between memory locations, returning the number of units that
1.9 +// should have been transferred.
1.10
1.11 unsigned int
1.12 Dma_x1600_channel::transfer(uint32_t source, uint32_t destination,
1.13 @@ -307,6 +308,9 @@
1.14 return units;
1.15 }
1.16
1.17 +// Wait for a transfer to end, returning the number of units remaining to be
1.18 +// transferred.
1.19 +
1.20 unsigned int
1.21 Dma_x1600_channel::wait()
1.22 {
1.23 @@ -336,8 +340,6 @@
1.24 Dma_trans_halted);
1.25 _regs[Dma_transfer_count] = 0;
1.26
1.27 - // Return the number of remaining units.
1.28 -
1.29 return remaining;
1.30 }
1.31