diff options
author | Russell King <rmk@arm.linux.org.uk> | 2013-06-23 09:19:22 +0100 |
---|---|---|
committer | Russell King <rmk@arm.linux.org.uk> | 2013-06-23 12:01:51 +0100 |
commit | 2f9be2b33130e780a72826598c5bb0a927bc867f (patch) | |
tree | 6bf8349f560c846f634ddc16a3868d5784db4903 /bmm_lib.h | |
parent | 955fec6d52229bfd78514739300b6f754dcc40a3 (diff) |
Add bmm_malloc_aligned_phys() API
Vmeta really wants the physical and virtual address of the buffer.
Adjust the BMM API to give that to it.
Diffstat (limited to 'bmm_lib.h')
-rw-r--r-- | bmm_lib.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -42,6 +42,8 @@ int bmm_init(); void bmm_exit(); void *bmm_malloc(unsigned long size, int attr); void *bmm_malloc_aligned(unsigned long size, int attr, unsigned align); +void *bmm_malloc_aligned_phys(unsigned long size, int attr, unsigned align, + unsigned long *paddr); void bmm_free(void *vaddr); void *bmm_attach(unsigned long paddr, unsigned long len); void bmm_detach(void *vaddr, unsigned long len); |