summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2021-11-12 16:05:59 -0600
committerCommit Bot <commit-bot@chromium.org>2021-11-18 04:56:06 +0000
commit0f7b19b82f8961ac67f45123dcfa9036daf8e935 (patch)
tree42be5c424288d8ca8ed83a379133311fec25874c
parent35c080429eaae8ac6f7f50331f8929c2d24ead7c (diff)
downloadchrome-ec-0f7b19b82f8961ac67f45123dcfa9036daf8e935.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>
-rw-r--r--include/dma.h11
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()