From fa6102941fe0e7a6fe692e2a950390571ac6a7f9 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Tue, 22 Feb 2011 14:46:55 +0530 Subject: arm: tegra: dma: Api for getting transfer count Adding api for getting the amount of data trsnaferred by dma. Original-Change-Id: I348b8a2f0f855165fb1bf74f0d9013faa97056e7 Reviewed-on: http://git-master/r/20377 Tested-by: Sumit Bhattacharya Reviewed-by: Bharat Nihalani Rebase-Id: Raf91b00545ff2e61f14c7136972d807c6afb96ea --- arch/arm/mach-tegra/include/mach/dma.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/arm/mach-tegra/include') diff --git a/arch/arm/mach-tegra/include/mach/dma.h b/arch/arm/mach-tegra/include/mach/dma.h index d385b7a251be..cb0248cca615 100644 --- a/arch/arm/mach-tegra/include/mach/dma.h +++ b/arch/arm/mach-tegra/include/mach/dma.h @@ -147,6 +147,8 @@ void tegra_dma_flush(struct tegra_dma_channel *ch); bool tegra_dma_is_req_inflight(struct tegra_dma_channel *ch, struct tegra_dma_req *req); +int tegra_dma_get_transfer_count(struct tegra_dma_channel *ch, + struct tegra_dma_req *req, bool is_stop_dma); bool tegra_dma_is_empty(struct tegra_dma_channel *ch); bool tegra_dma_is_stopped(struct tegra_dma_channel *ch); -- cgit v1.2.3