Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Kumar Gala | 63240ba | 2008-12-13 17:20:28 -0600 | [diff] [blame] | 2 | #ifndef __ADDR_MAP_H |
| 3 | #define __ADDR_MAP_H |
| 4 | |
| 5 | /* |
| 6 | * Copyright 2008 Freescale Semiconductor, Inc. |
Kumar Gala | 63240ba | 2008-12-13 17:20:28 -0600 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #include <asm/types.h> |
| 10 | |
| 11 | extern phys_addr_t addrmap_virt_to_phys(void *vaddr); |
Timur Tabi | 7b6e805 | 2012-05-04 12:21:30 +0000 | [diff] [blame] | 12 | extern void *addrmap_phys_to_virt(phys_addr_t paddr); |
Kumar Gala | 63240ba | 2008-12-13 17:20:28 -0600 | [diff] [blame] | 13 | extern void addrmap_set_entry(unsigned long vaddr, phys_addr_t paddr, |
| 14 | phys_size_t size, int idx); |
| 15 | |
| 16 | #endif |