qcacld-3.0: Modify Pre_alloc memory support for Dp component
Modify Pre_alloc memory support for DP componentization. Change-Id: I274e3163bc6623a7a4e08f8ce30d3bc17a0b444b CRs-Fixed: 3285947
This commit is contained in:

committed by
Madan Koyyalamudi

parent
62f33df4f6
commit
6d4df6c2da
@@ -1286,4 +1286,43 @@ ucfg_dp_traffic_end_indication_update_dscp(struct wlan_objmgr_psoc *psoc,
|
||||
unsigned char *dscp)
|
||||
{}
|
||||
#endif
|
||||
#endif /* _WLAN_DP_UCFG_API_H_ */
|
||||
|
||||
/*
|
||||
* ucfg_dp_prealloc_init() - Pre-allocate DP memory
|
||||
* @ctrl_psoc: objmgr psoc
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success, error qdf status on failure
|
||||
*/
|
||||
QDF_STATUS ucfg_dp_prealloc_init(struct cdp_ctrl_objmgr_psoc *ctrl_psoc);
|
||||
|
||||
/*
|
||||
* ucfg_dp_prealloc_deinit() - Free pre-alloced DP memory
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void ucfg_dp_prealloc_deinit(void);
|
||||
|
||||
#ifdef DP_MEM_PRE_ALLOC
|
||||
/**
|
||||
* ucfg_dp_prealloc_get_consistent_mem_unaligned() - gets pre-alloc unaligned
|
||||
* consistent memory
|
||||
* @size: total memory size
|
||||
* @base_addr: pointer to dma address
|
||||
* @ring_type: HAL ring type that requires memory
|
||||
*
|
||||
* Return: memory virtual address pointer on success, NULL on failure
|
||||
*/
|
||||
void *ucfg_dp_prealloc_get_consistent_mem_unaligned(qdf_size_t size,
|
||||
qdf_dma_addr_t *base_addr,
|
||||
uint32_t ring_type);
|
||||
|
||||
/**
|
||||
* ucfg_dp_prealloc_put_consistent_mem_unaligned() - puts back pre-alloc
|
||||
* unaligned consistent memory
|
||||
* @va_unaligned: memory virtual address pointer
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void ucfg_dp_prealloc_put_consistent_mem_unaligned(void *va_unaligned);
|
||||
#endif
|
||||
#endif /* _WLAN_DP_UCFGi_API_H_ */
|
||||
|
Reference in New Issue
Block a user