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