xref: /rk3399_rockchip-uboot/include/addr_map.h (revision 63240ba88cd6a220057a0f28e5bf97f5b17ac84b)
1*63240ba8SKumar Gala #ifndef __ADDR_MAP_H
2*63240ba8SKumar Gala #define __ADDR_MAP_H
3*63240ba8SKumar Gala 
4*63240ba8SKumar Gala /*
5*63240ba8SKumar Gala  * Copyright 2008 Freescale Semiconductor, Inc.
6*63240ba8SKumar Gala  *
7*63240ba8SKumar Gala  * This program is free software; you can redistribute it and/or
8*63240ba8SKumar Gala  * modify it under the terms of the GNU General Public License
9*63240ba8SKumar Gala  * Version 2 as published by the Free Software Foundation.
10*63240ba8SKumar Gala  *
11*63240ba8SKumar Gala  * This program is distributed in the hope that it will be useful,
12*63240ba8SKumar Gala  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13*63240ba8SKumar Gala  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*63240ba8SKumar Gala  * GNU General Public License for more details.
15*63240ba8SKumar Gala  *
16*63240ba8SKumar Gala  * You should have received a copy of the GNU General Public License
17*63240ba8SKumar Gala  * along with this program; if not, write to the Free Software
18*63240ba8SKumar Gala  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
19*63240ba8SKumar Gala  * MA 02111-1307 USA
20*63240ba8SKumar Gala  */
21*63240ba8SKumar Gala 
22*63240ba8SKumar Gala #include <asm/types.h>
23*63240ba8SKumar Gala 
24*63240ba8SKumar Gala extern phys_addr_t addrmap_virt_to_phys(void *vaddr);
25*63240ba8SKumar Gala extern unsigned long addrmap_phys_to_virt(phys_addr_t paddr);
26*63240ba8SKumar Gala extern void addrmap_set_entry(unsigned long vaddr, phys_addr_t paddr,
27*63240ba8SKumar Gala 				phys_size_t size, int idx);
28*63240ba8SKumar Gala 
29*63240ba8SKumar Gala #endif
30