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