summaryrefslogtreecommitdiff
path: root/include/linux/swiotlb.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-02-05 13:18:40 +0300
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2021-02-20 18:13:32 +0300
commitb5d7ccb7aac3895c2138fe0980a109116ce15eff (patch)
treefe02df46932b2008002b736da60bef8ef8b08295 /include/linux/swiotlb.h
parent36950f2da1ea4cb683be174f6f581e25b2d33e71 (diff)
downloadlinux-b5d7ccb7aac3895c2138fe0980a109116ce15eff.tar.xz
swiotlb: add a IO_TLB_SIZE define
Add a new IO_TLB_SIZE define instead open coding it using IO_TLB_SHIFT all over. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Jianxiong Gao <jxgao@google.com> Tested-by: Jianxiong Gao <jxgao@google.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'include/linux/swiotlb.h')
-rw-r--r--include/linux/swiotlb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h
index d9c9fc9ca5d2..5857a937c637 100644
--- a/include/linux/swiotlb.h
+++ b/include/linux/swiotlb.h
@@ -29,6 +29,7 @@ enum swiotlb_force {
* controllable.
*/
#define IO_TLB_SHIFT 11
+#define IO_TLB_SIZE (1 << IO_TLB_SHIFT)
/* default to 64MB */
#define IO_TLB_DEFAULT_SIZE (64UL<<20)