diff options
author | Mary Ruthven <mruthven@chromium.org> | 2021-11-12 16:05:59 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-23 01:14:09 +0000 |
commit | dcd53cd4c879e89b68d35a982a237dbffd071d0b (patch) | |
tree | 7cc1f03c65e15a2baf5c9e0a43d2e1991c65ce2c /include | |
parent | 8c36430999b25231f3fcad81f4eab2f32a06142b (diff) | |
download | chrome-ec-dcd53cd4c879e89b68d35a982a237dbffd071d0b.tar.gz |
Revert "dma: separate out DMA enable status from wait_for_bytes"
This reverts commit 4609b59404bd6e32c4cdb267658511a46557dab2.
BUG=b:200823466
TEST=make buildall -j
Change-Id: Ia1765a8ec8d37a2dc88ea4b497698845a52dbfce
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3285826
Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
(cherry picked from commit 0f7b19b82f8961ac67f45123dcfa9036daf8e935)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3297012
Diffstat (limited to 'include')
-rw-r--r-- | include/dma.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/include/dma.h b/include/dma.h index 9da83508ad..448e43e7a7 100644 --- a/include/dma.h +++ b/include/dma.h @@ -77,19 +77,12 @@ void dma_disable_all(void); * * @param chan DMA channel to check, from dma_get_channel() * @param orig_count Original number of bytes requested on channel - * @return number of bytes completed on a channel + * @return number of bytes completed on a channel, or 0 if this channel is + * not enabled */ int dma_bytes_done(dma_chan_t *chan, int orig_count); /** - * Check if DMA for a given channel is enabled. - * - * @param chan DMA channel to check, from dma_get_channel() - * @return true if DMA is enabled on the channel, false otherwise - */ -bool dma_is_enabled(dma_chan_t *chan); - -/** * Start a previously-prepared dma channel * * @param chan Channel to start, from dma_get_channel() |