Prepare v2025.01
[u-boot.git] / include / addr_map.h
blobdb3712b5d3022a8b310884fe1c5acacbb034d9d0
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ADDR_MAP_H
3 #define __ADDR_MAP_H
5 /*
6 * Copyright 2008 Freescale Semiconductor, Inc.
7 */
9 #include <asm/types.h>
11 struct addrmap {
12 phys_addr_t paddr;
13 phys_size_t size;
14 unsigned long vaddr;
17 #ifdef CONFIG_ADDR_MAP
18 extern struct addrmap address_map[CONFIG_SYS_NUM_ADDR_MAP];
19 #endif
21 phys_addr_t addrmap_virt_to_phys(void *vaddr);
22 void *addrmap_phys_to_virt(phys_addr_t paddr);
23 void addrmap_set_entry(unsigned long vaddr, phys_addr_t paddr,
24 phys_size_t size, int idx);
26 #endif