hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/iommu/omap-iopgtable.h
....@@ -1,13 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * omap iommu: pagetable definitions
34 *
45 * Copyright (C) 2008-2010 Nokia Corporation
56 *
67 * Written by Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
118 */
129
1310 #ifndef _OMAP_IOPGTABLE_H
....@@ -66,7 +63,8 @@
6663 *
6764 * va to pa translation
6865 */
69
-static inline phys_addr_t omap_iommu_translate(u32 d, u32 va, u32 mask)
66
+static inline phys_addr_t omap_iommu_translate(unsigned long d, dma_addr_t va,
67
+ dma_addr_t mask)
7068 {
7169 return (d & mask) | (va & (~mask));
7270 }