qcacmn: Add support for HW cookie conversion
Support HW cookie conversion for BE platform. Change-Id: I39058fbf256266557f5e734ba376db4db0731b24 CRs-Fixed: 2929533
This commit is contained in:

committed by
Madan Koyyalamudi

parent
1bb3155d2c
commit
4083155141
@@ -2833,4 +2833,21 @@ uint32_t hal_get_ring_usage(
|
||||
ring_usage = (100 * num_valid) / srng->num_entries;
|
||||
return ring_usage;
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_cmem_write() - function for CMEM buffer writing
|
||||
* @hal_soc_hdl: HAL SOC handle
|
||||
* @offset: CMEM address
|
||||
* @value: value to write
|
||||
*
|
||||
* Return: None.
|
||||
*/
|
||||
static inline void hal_cmem_write(hal_soc_handle_t hal_soc_hdl,
|
||||
uint32_t offset,
|
||||
uint32_t value)
|
||||
{
|
||||
struct hal_soc *hal = (struct hal_soc *)hal_soc_hdl;
|
||||
|
||||
hal_write32_mb(hal, offset, value);
|
||||
}
|
||||
#endif /* _HAL_APIH_ */
|
||||
|
Reference in New Issue
Block a user