diff options
author | Tom Rini <trini@konsulko.com> | 2024-01-08 09:11:53 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-01-08 09:11:53 -0500 |
commit | f28a77589e7505535a4eebdc7269df98f67dbe68 (patch) | |
tree | 69bb9a116ba839ffc101d1ae923485401332294f /arch/sandbox/include/asm/io.h | |
parent | c2c598e87cfe56f5991730762c00733c5aa9a994 (diff) | |
parent | 8c4b37ce97c27ad4e7f83b028d4cd1396a51a36f (diff) |
Merge tag 'dm-next-7jan23' of https://source.denx.de/u-boot/custodians/u-boot-dm into next
switch to SMBIOS3 tables
allow devicetree from bloblist
ACPI support for ARM and RISC-V
Diffstat (limited to 'arch/sandbox/include/asm/io.h')
-rw-r--r-- | arch/sandbox/include/asm/io.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/io.h b/arch/sandbox/include/asm/io.h index 3c0a102697..a23bd64994 100644 --- a/arch/sandbox/include/asm/io.h +++ b/arch/sandbox/include/asm/io.h @@ -231,5 +231,21 @@ static inline void unmap_sysmem(const void *vaddr) unmap_physmem(vaddr, MAP_WRBACK); } +/** + * nomap_sysmem() - pass through an address unchanged + * + * This is used to indicate an address which should NOT be mapped, e.g. in + * SMBIOS tables. Using this function instead of a case shows that the sandbox + * conversion has been done + */ +static inline void *nomap_sysmem(phys_addr_t paddr, unsigned long len) +{ + return (void *)(uintptr_t)paddr; +} + +static inline phys_addr_t nomap_to_sysmem(const void *ptr) +{ + return (phys_addr_t)(uintptr_t)ptr; +} #endif |