msm: camera: memmgr: Add support to allocate from ubwcp heap
Add memmgr interface and support to allocate buffers from ubwcp heap. CRs-Fixed: 3197463 Change-Id: Ic3368e5ff81710dba795c9625f9a461833f915e3 Signed-off-by: Pavan Kumar Chilamkurthi <quic_pchilamk@quicinc.com>
This commit is contained in:

committed by
Camera Software Integration

orang tua
5af17aad2a
melakukan
dce48d5ae2
@@ -94,6 +94,7 @@ struct cam_mem_buf_queue {
|
||||
* @camera_heap: Handle to camera heap
|
||||
* @camera_uncached_heap: Handle to camera uncached heap
|
||||
* @secure_display_heap: Handle to secure display heap
|
||||
* @ubwc_p_heap: Handle to ubwc-p heap
|
||||
*/
|
||||
struct cam_mem_table {
|
||||
struct mutex m_lock;
|
||||
@@ -109,6 +110,7 @@ struct cam_mem_table {
|
||||
struct dma_heap *camera_heap;
|
||||
struct dma_heap *camera_uncached_heap;
|
||||
struct dma_heap *secure_display_heap;
|
||||
struct dma_heap *ubwc_p_heap;
|
||||
#endif
|
||||
|
||||
};
|
||||
@@ -177,6 +179,13 @@ int cam_mem_mgr_cache_ops(struct cam_mem_cache_ops_cmd *cmd);
|
||||
*/
|
||||
int cam_mem_mgr_cpu_access_op(struct cam_mem_cpu_access_op *cmd);
|
||||
|
||||
/**
|
||||
* @brief: Check whether ubwc-p heap is supported
|
||||
*
|
||||
* @return true if supported, false otherwise
|
||||
*/
|
||||
bool cam_mem_mgr_ubwc_p_heap_supported(void);
|
||||
|
||||
/**
|
||||
* @brief: Initializes the memory manager
|
||||
*
|
||||
|
Reference in New Issue
Block a user