2 * Copyright (c) 2015 National Instruments
5 * Joe Hershberger <joe.hershberger@ni.com>
7 * SPDX-License-Identifier: GPL-2.0
13 /* Define a null map_sysmem() if the architecture doesn't use it */
14 # ifdef CONFIG_ARCH_MAP_SYSMEM
17 static inline void *map_sysmem(phys_addr_t paddr, unsigned long len)
19 return (void *)(uintptr_t)paddr;
22 static inline void unmap_sysmem(const void *vaddr)
26 static inline phys_addr_t map_to_sysmem(const void *ptr)
28 return (phys_addr_t)(uintptr_t)ptr;
32 #endif /* __MAPMEM_H */