summaryrefslogtreecommitdiff
path: root/bmm_lib.c
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2012-10-22 13:05:22 +0100
committerroot <root@cubox.(none)>2012-10-22 14:57:04 +0100
commitbf64f87bbae91c7a4b77ecb0b892906335e054ea (patch)
treed406fe0cc5d975850a7d941ea0167a72de1c0027 /bmm_lib.c
parent75843921f1aff8f5221f7ac7df19a897db94eb6f (diff)
Remove bmm_dma_memcpy() and bmm_dma_sync()
Diffstat (limited to 'bmm_lib.c')
-rw-r--r--bmm_lib.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/bmm_lib.c b/bmm_lib.c
index 433dbef..073b213 100644
--- a/bmm_lib.c
+++ b/bmm_lib.c
@@ -303,38 +303,6 @@ void bmm_flush_cache(void *vaddr, int dir)
ioctl(bmm_fd, BMM_FLUSH_CACHE, &io);
}
-void *bmm_dma_memcpy(void *dest, const void *src, size_t n)
-{
- int ret;
- ioctl_arg_t io;
-
- if(bmm_init() < 0)
- return 0;
-
- io.input = (unsigned long)src;
- io.output = (unsigned long)dest;
- io.length = (unsigned long)n;
- io.arg = 0;
- ret = ioctl(bmm_fd, BMM_DMA_MEMCPY, &io);
- if(ret < 0)
- return 0;
-
- return dest;
-}
-
-void bmm_dma_sync()
-{
- ioctl_arg_t io;
-
- if(bmm_init() < 0)
- return;
-
- io.input = 0;
- io.output = 0;
- io.arg = 0;
- ioctl(bmm_fd, BMM_DMA_SYNC, &io);
-}
-
void bmm_flush_cache_range(void *start, size_t size, int direction)
{
ioctl_arg_t io;