.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * omap iommu: pagetable definitions |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2008-2010 Nokia Corporation |
---|
5 | 6 | * |
---|
6 | 7 | * 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. |
---|
11 | 8 | */ |
---|
12 | 9 | |
---|
13 | 10 | #ifndef _OMAP_IOPGTABLE_H |
---|
.. | .. |
---|
66 | 63 | * |
---|
67 | 64 | * va to pa translation |
---|
68 | 65 | */ |
---|
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) |
---|
70 | 68 | { |
---|
71 | 69 | return (d & mask) | (va & (~mask)); |
---|
72 | 70 | } |
---|