Mitchel Humpherys | 86a560e | 2015-09-30 14:23:58 -0700 | [diff] [blame^] | 1 | /* Copyright (c) 2016, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | #ifndef __LINUX_IO_PGTABLE_FAST_H |
| 14 | #define __LINUX_IO_PGTABLE_FAST_H |
| 15 | |
| 16 | typedef u64 av8l_fast_iopte; |
| 17 | |
| 18 | #define iopte_pmd_offset(pmds, iova) (pmds + (iova >> 12)) |
| 19 | |
| 20 | int av8l_fast_map_public(av8l_fast_iopte *ptep, phys_addr_t paddr, size_t size, |
| 21 | int prot); |
| 22 | void av8l_fast_unmap_public(av8l_fast_iopte *ptep, size_t size); |
| 23 | |
| 24 | #endif /* __LINUX_IO_PGTABLE_FAST_H */ |