qcacmn: fix HW CC compilation issue on 32bits system
fix compilation issue on 32bits system for HW cookie conversion change. Change-Id: I24ef02f61d55fb0402a1312a76e39303ab761f41 CRs-Fixed: 2980021
This commit is contained in:

committed by
Madan Koyyalamudi

parent
fea75dc9eb
commit
a566938d33
@@ -309,14 +309,19 @@ static inline uint8_t hal_tx_comp_get_cookie_convert_done(void *hal_desc)
|
||||
*
|
||||
* Return: TX desc virtual address
|
||||
*/
|
||||
static inline uint64_t hal_tx_comp_get_desc_va(void *hal_desc)
|
||||
static inline uintptr_t hal_tx_comp_get_desc_va(void *hal_desc)
|
||||
{
|
||||
return HAL_TX_DESC_GET(hal_desc, WBM2SW_COMPLETION_RING_TX,
|
||||
BUFFER_VIRT_ADDR_31_0) |
|
||||
(((uint64_t)HAL_TX_DESC_GET(
|
||||
hal_desc,
|
||||
WBM2SW_COMPLETION_RING_TX,
|
||||
BUFFER_VIRT_ADDR_63_32)) << 32);
|
||||
uint64_t va_from_desc;
|
||||
|
||||
va_from_desc = HAL_TX_DESC_GET(hal_desc,
|
||||
WBM2SW_COMPLETION_RING_TX,
|
||||
BUFFER_VIRT_ADDR_31_0) |
|
||||
(((uint64_t)HAL_TX_DESC_GET(
|
||||
hal_desc,
|
||||
WBM2SW_COMPLETION_RING_TX,
|
||||
BUFFER_VIRT_ADDR_63_32)) << 32);
|
||||
|
||||
return (uintptr_t)va_from_desc;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user