1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2015 National Instruments
6 * Joe Hershberger <joe.hershberger@ni.com>
12 /* Define a null map_sysmem() if the architecture doesn't use it */
13 # ifdef CONFIG_ARCH_MAP_SYSMEM
16 static inline void *map_sysmem(phys_addr_t paddr, unsigned long len)
18 return (void *)(uintptr_t)paddr;
21 static inline void unmap_sysmem(const void *vaddr)
25 static inline phys_addr_t map_to_sysmem(const void *ptr)
27 return (phys_addr_t)(uintptr_t)ptr;
31 #endif /* __MAPMEM_H */