1234567891011121314151617181920212223242526272829303132 |
- #ifndef __MAPMEM_H
- #define __MAPMEM_H
- # ifdef CONFIG_ARCH_MAP_SYSMEM
- #include <asm/io.h>
- # else
- static inline void *map_sysmem(phys_addr_t paddr, unsigned long len)
- {
- return (void *)(uintptr_t)paddr;
- }
- static inline void unmap_sysmem(const void *vaddr)
- {
- }
- static inline phys_addr_t map_to_sysmem(const void *ptr)
- {
- return (phys_addr_t)(uintptr_t)ptr;
- }
- # endif
- #endif
|