Commit graph

4 commits

Author SHA1 Message Date
Sandeep Patil
d872160f11 staging: ion: make system and contig heaps modular
Add symmetric heap add/remove APIs and export symbols from
ion core that are needed to make both heaps modular.

Bug: 133508579
Test: ion-unit-test, rmmod, modprobe

Change-Id: Ic5f40936531936c9bfab48ea147108c019d28e2c
Signed-off-by: Sandeep Patil <sspatil@google.com>
2019-08-19 11:20:00 -07:00
Sandeep Patil
91d0bbda91 staging: ion: refactor ion's heap API into linux/ion.h
Now that we know the APIs needed by system and cma heaps,
refactor and move all those into linux/ion.h.

Unfortunately, the UAPI of ion is now split into linux/ion.h
and drivers/staging/android/uapi/ion.h since some of the UAPI
leaks into heap implementation (ion flags). It can all be moved
into linux/ion.h eventually for all android kernels.

Bug: 133508579
Test: ion-unit-tests

Change-Id: I73ea59b410c46a02e23f2da5c6bdc15182a50b32
Co-developed-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Signed-off-by: Sandeep Patil <sspatil@google.com>
2019-08-19 11:19:49 -07:00
Sandeep Patil
144555039f staging: ion: refactor ion's dmabuf manipulators into a separate file.
This patch is preparatory work for making ion heaps modular. The patch
itself doesn't make any significant changes except for re-organizing the
buffer manipulator functions in a single file. This will be helpful
later when we specifically export some of these functions to be used by
a heap module.

Bug: 133508579
Test: ion-unit-tests

Change-Id: I52ecea78a179c936006a21beb7630009984cb22f
Co-developed-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Signed-off-by: Sandeep Patil <sspatil@google.com>
2019-08-19 11:19:49 -07:00
Isaac J. Manjarres
389e2406d3 ANDROID: staging: android: ion: Expose ion_alloc() to kernel space
Expose ion_alloc() to kernel space clients. Users of this
function will receive a dma-buf structure for sharing
the ION buffer that was allocated.

Bug: 133508579
Test: ion-unit-tests
Change-Id: I410044127ba92a759a79c65e422b0b75b74e2159
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Signed-off-by: Sandeep Patil <sspatil@google.com>
2019-08-01 07:18:48 -07:00