163240ba8SKumar Gala #ifndef __ADDR_MAP_H 263240ba8SKumar Gala #define __ADDR_MAP_H 363240ba8SKumar Gala 463240ba8SKumar Gala /* 563240ba8SKumar Gala * Copyright 2008 Freescale Semiconductor, Inc. 663240ba8SKumar Gala * 763240ba8SKumar Gala * This program is free software; you can redistribute it and/or 863240ba8SKumar Gala * modify it under the terms of the GNU General Public License 963240ba8SKumar Gala * Version 2 as published by the Free Software Foundation. 1063240ba8SKumar Gala * 1163240ba8SKumar Gala * This program is distributed in the hope that it will be useful, 1263240ba8SKumar Gala * but WITHOUT ANY WARRANTY; without even the implied warranty of 1363240ba8SKumar Gala * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1463240ba8SKumar Gala * GNU General Public License for more details. 1563240ba8SKumar Gala * 1663240ba8SKumar Gala * You should have received a copy of the GNU General Public License 1763240ba8SKumar Gala * along with this program; if not, write to the Free Software 1863240ba8SKumar Gala * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 1963240ba8SKumar Gala * MA 02111-1307 USA 2063240ba8SKumar Gala */ 2163240ba8SKumar Gala 2263240ba8SKumar Gala #include <asm/types.h> 2363240ba8SKumar Gala 2463240ba8SKumar Gala extern phys_addr_t addrmap_virt_to_phys(void *vaddr); 25*7b6e8053STimur Tabi extern void *addrmap_phys_to_virt(phys_addr_t paddr); 2663240ba8SKumar Gala extern void addrmap_set_entry(unsigned long vaddr, phys_addr_t paddr, 2763240ba8SKumar Gala phys_size_t size, int idx); 2863240ba8SKumar Gala 2963240ba8SKumar Gala #endif 30