From ccd38dc2b463634af9e08a27fe8fedb96553ef4c Mon Sep 17 00:00:00 2001 From: Himanshu Agarwal Date: Fri, 2 Sep 2016 19:54:18 +0530 Subject: [PATCH 1/2] 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 --- qdf/inc/qdf_util.h | 28 ++++++++++++++++++++++++++++ qdf/linux/src/i_qdf_util.h | 29 +++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/qdf/inc/qdf_util.h b/qdf/inc/qdf_util.h index a80df5bb44dc..cc7ae313481b 100644 --- a/qdf/inc/qdf_util.h +++ b/qdf/inc/qdf_util.h @@ -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*/ diff --git a/qdf/linux/src/i_qdf_util.h b/qdf/linux/src/i_qdf_util.h index a496573e46f9..228f91f4ffa8 100644 --- a/qdf/linux/src/i_qdf_util.h +++ b/qdf/linux/src/i_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*/ From a076ab1f232c69afa3834c7138e2a236ca1d1b1f Mon Sep 17 00:00:00 2001 From: qcabuildsw Date: Tue, 6 Sep 2016 13:29:23 -0700 Subject: [PATCH 2/2] Release 5.1.0.23K Release 5.1.0.23K Change-Id: Ifa659ac44a40d985d478b3fb505c25f2e70bf050 CRs-Fixed: 688141 --- VERSION.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION.txt b/VERSION.txt index 0a7804048125..6b25f8b6d358 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1,2 +1,2 @@ -Current Component wlan-cmn.driver.lnx.1.0 version 5.1.0.23J +Current Component wlan-cmn.driver.lnx.1.0 version 5.1.0.23K Matches Component wlan-cld3.driver.lnx.1.1 version 5.1.0.22C