qcacmn: Add APIs to get lower 32 and upper 32 bits

Add APIs to get lower 32 and upper 32 bits from an
address.

Change-Id: I283792333075c11219a491d305b2822849c025f3
CRs-Fixed: 1062916
This commit is contained in:
Himanshu Agarwal
2016-09-02 19:54:18 +05:30
parent a3232a58ed
commit ccd38dc2b4
2 changed files with 57 additions and 0 deletions

View File

@@ -439,4 +439,32 @@ uint64_t qdf_get_totalramsize(void)
return __qdf_get_totalramsize();
}
/**
* qdf_get_lower_32_bits() - get lower 32 bits from an address.
* @addr: address
*
* This api returns the lower 32 bits of an address.
*
* Return: lower 32 bits.
*/
static inline
uint32_t qdf_get_lower_32_bits(qdf_dma_addr_t addr)
{
return __qdf_get_lower_32_bits(addr);
}
/**
* qdf_get_upper_32_bits() - get upper 32 bits from an address.
* @addr: address
*
* This api returns the upper 32 bits of an address.
*
* Return: upper 32 bits.
*/
static inline
uint32_t qdf_get_upper_32_bits(qdf_dma_addr_t addr)
{
return __qdf_get_upper_32_bits(addr);
}
#endif /*_QDF_UTIL_H*/