blob: d322dd222a2cd10794b58e86237703c9073611c0 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0 */
Kumar Gala0949bd12008-12-13 17:20:28 -06002#ifndef __ADDR_MAP_H
3#define __ADDR_MAP_H
4
5/*
6 * Copyright 2008 Freescale Semiconductor, Inc.
Kumar Gala0949bd12008-12-13 17:20:28 -06007 */
8
9#include <asm/types.h>
10
11extern phys_addr_t addrmap_virt_to_phys(void *vaddr);
Timur Tabif11b08a2012-05-04 12:21:30 +000012extern void *addrmap_phys_to_virt(phys_addr_t paddr);
Kumar Gala0949bd12008-12-13 17:20:28 -060013extern void addrmap_set_entry(unsigned long vaddr, phys_addr_t paddr,
14 phys_size_t size, int idx);
15
16#endif