]> git.ipfire.org Git - thirdparty/u-boot.git/blame - include/addr_map.h
board: rockchip: add Theobroma-Systems RK3588 Jaguar SBC
[thirdparty/u-boot.git] / include / addr_map.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0 */
63240ba8
KG
2#ifndef __ADDR_MAP_H
3#define __ADDR_MAP_H
4
5/*
6 * Copyright 2008 Freescale Semiconductor, Inc.
63240ba8
KG
7 */
8
9#include <asm/types.h>
10
b5615633
BM
11struct addrmap {
12 phys_addr_t paddr;
13 phys_size_t size;
14 unsigned long vaddr;
15};
16
28199611 17#ifdef CONFIG_ADDR_MAP
b5615633 18extern struct addrmap address_map[CONFIG_SYS_NUM_ADDR_MAP];
28199611 19#endif
b5615633 20
c40131ac
BM
21phys_addr_t addrmap_virt_to_phys(void *vaddr);
22void *addrmap_phys_to_virt(phys_addr_t paddr);
23void addrmap_set_entry(unsigned long vaddr, phys_addr_t paddr,
24 phys_size_t size, int idx);
63240ba8
KG
25
26#endif