diff options
author | Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> | 2013-07-24 14:27:33 +0530 |
---|---|---|
committer | Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> | 2013-07-24 14:46:23 +0530 |
commit | d7354e2724391e2424f632fb1636f2ec1148a717 (patch) | |
tree | 9d5fa24ccda8f0b51161b8ffedc640654ed1b75f /include/helpers.h | |
parent | ac2fc97106aab80f842144968884e1dbe09c47eb (diff) | |
download | SLOF-d7354e2724391e2424f632fb1636f2ec1148a717.zip SLOF-d7354e2724391e2424f632fb1636f2ec1148a717.tar.gz SLOF-d7354e2724391e2424f632fb1636f2ec1148a717.tar.bz2 |
usb: unmap buffers
Clean up all the dma allocated buffers and remove their mappings.
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Acked-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Diffstat (limited to 'include/helpers.h')
-rw-r--r-- | include/helpers.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/helpers.h b/include/helpers.h index 60dbda2..e41d6a0 100644 --- a/include/helpers.h +++ b/include/helpers.h @@ -22,6 +22,9 @@ extern uint32_t SLOF_GetTimer(void); extern void SLOF_msleep(uint32_t time); extern void *SLOF_dma_alloc(long size); extern void SLOF_dma_free(void *virt, long size); +extern void *SLOF_alloc_mem(long size); +extern void *SLOF_alloc_mem_aligned(long align, long size); +extern void SLOF_free_mem(void *addr, long size); extern long SLOF_dma_map_in(void *virt, long size, int cacheable); extern void SLOF_dma_map_out(long phys, void *virt, long size); |