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
Этот коммит содержится в:
Himanshu Agarwal
2016-09-02 19:54:18 +05:30
родитель a3232a58ed
Коммит ccd38dc2b4
2 изменённых файлов: 57 добавлений и 0 удалений

Просмотреть файл

@@ -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*/

Просмотреть файл

@@ -292,4 +292,33 @@ __qdf_get_totalramsize(void)
return MEMINFO_KB(meminfo.totalram);
}
/**
* __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 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 upper_32_bits(addr);
}
#endif /*_I_QDF_UTIL_H*/