summaryrefslogtreecommitdiff
path: root/bmm_lib.c
diff options
context:
space:
mode:
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;