qcacmn: Add macros for aligning addresses

Define macros which take in a value and align them on the given boundary.

Change-Id: Icea681b8dd9b678900507c555ee749287fd372ce
CRs-Fixed: 2026493
此提交包含在:
Pramod Simha
2017-03-30 12:05:14 -07:00
提交者 Sandeep Puligilla
父節點 efd4d82391
當前提交 bd46f6f929
共有 2 個檔案被更改,包括 11 行新增0 行删除

查看文件

@@ -37,6 +37,15 @@
#include <qdf_types.h>
#include <i_qdf_mem.h>
/**
* qdf_align() - align to the given size.
* @a: input that needs to be aligned.
* @align_size: boundary on which 'a' has to be alinged.
*
* Return: aligned value.
*/
#define qdf_align(a, align_size) __qdf_align(a, align_size)
/**
* struct qdf_mem_dma_page_t - Allocated dmaable page
* @page_v_addr_start: Page start virtual address