diff options
Diffstat (limited to 'include/addr_map.h')
-rw-r--r-- | include/addr_map.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/include/addr_map.h b/include/addr_map.h index d322dd222a..55d3a6a165 100644 --- a/include/addr_map.h +++ b/include/addr_map.h @@ -8,9 +8,17 @@ #include <asm/types.h> -extern phys_addr_t addrmap_virt_to_phys(void *vaddr); -extern void *addrmap_phys_to_virt(phys_addr_t paddr); -extern void addrmap_set_entry(unsigned long vaddr, phys_addr_t paddr, - phys_size_t size, int idx); +struct addrmap { + phys_addr_t paddr; + phys_size_t size; + unsigned long vaddr; +}; + +extern struct addrmap address_map[CONFIG_SYS_NUM_ADDR_MAP]; + +phys_addr_t addrmap_virt_to_phys(void *vaddr); +void *addrmap_phys_to_virt(phys_addr_t paddr); +void addrmap_set_entry(unsigned long vaddr, phys_addr_t paddr, + phys_size_t size, int idx); #endif |