blob: dda4d6e710dfa864c4df04745c9753a826ca8b7c [file] [log] [blame]
Kumar Gala63240ba2008-12-13 17:20:28 -06001#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
24extern phys_addr_t addrmap_virt_to_phys(void *vaddr);
Timur Tabi7b6e8052012-05-04 12:21:30 +000025extern void *addrmap_phys_to_virt(phys_addr_t paddr);
Kumar Gala63240ba2008-12-13 17:20:28 -060026extern void addrmap_set_entry(unsigned long vaddr, phys_addr_t paddr,
27 phys_size_t size, int idx);
28
29#endif