Kumar Gala | 0949bd1 | 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 | e237880 | 2016-01-14 22:05:13 -0500 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0 |
Kumar Gala | 0949bd1 | 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 | f11b08a | 2012-05-04 12:21:30 +0000 | [diff] [blame] | 13 | extern void *addrmap_phys_to_virt(phys_addr_t paddr); |
Kumar Gala | 0949bd1 | 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 |