1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __ADDR_MAP_H 3 #define __ADDR_MAP_H 4 5 /* 6 * Copyright 2008 Freescale Semiconductor, Inc. 7 */ 8 9 #include <asm/types.h> 10 11 struct addrmap { 12 phys_addr_t paddr; 13 phys_size_t size; 14 unsigned long vaddr; 15 }; 16 17 extern struct addrmap address_map[CONFIG_SYS_NUM_ADDR_MAP]; 18 19 phys_addr_t addrmap_virt_to_phys(void *vaddr); 20 void *addrmap_phys_to_virt(phys_addr_t paddr); 21 void addrmap_set_entry(unsigned long vaddr, phys_addr_t paddr, 22 phys_size_t size, int idx); 23 24 #endif 25