cregit-Linux how code gets into the kernel

Release 4.18 arch/m68k/include/asm/kmap.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _KMAP_H

#define _KMAP_H

#ifdef CONFIG_MMU

/* Values for nocacheflag and cmode */

#define IOMAP_FULL_CACHING		0

#define IOMAP_NOCACHE_SER		1

#define IOMAP_NOCACHE_NONSER		2

#define IOMAP_WRITETHROUGH		3

/*
 * These functions exported by arch/m68k/mm/kmap.c.
 * Only needed on MMU enabled systems.
 */
extern void __iomem *__ioremap(unsigned long physaddr, unsigned long size,
			       int cacheflag);
extern void iounmap(void __iomem *addr);
extern void __iounmap(void *addr, unsigned long size);


#define ioremap ioremap

static inline void __iomem *ioremap(unsigned long physaddr, unsigned long size) { return __ioremap(physaddr, size, IOMAP_NOCACHE_SER); }

Contributors

PersonTokensPropCommitsCommitProp
Greg Ungerer27100.00%1100.00%
Total27100.00%1100.00%

#define ioremap_nocache ioremap_nocache
static inline void __iomem *ioremap_nocache(unsigned long physaddr, unsigned long size) { return __ioremap(physaddr, size, IOMAP_NOCACHE_SER); }

Contributors

PersonTokensPropCommitsCommitProp
Greg Ungerer27100.00%1100.00%
Total27100.00%1100.00%

#define ioremap_uc ioremap_nocache
static inline void __iomem *ioremap_wt(unsigned long physaddr, unsigned long size) { return __ioremap(physaddr, size, IOMAP_WRITETHROUGH); }

Contributors

PersonTokensPropCommitsCommitProp
Greg Ungerer27100.00%1100.00%
Total27100.00%1100.00%

#define ioremap_fillcache ioremap_fullcache
static inline void __iomem *ioremap_fullcache(unsigned long physaddr, unsigned long size) { return __ioremap(physaddr, size, IOMAP_FULL_CACHING); }

Contributors

PersonTokensPropCommitsCommitProp
Greg Ungerer27100.00%1100.00%
Total27100.00%1100.00%


static inline void memset_io(volatile void __iomem *addr, unsigned char val, int count) { __builtin_memset((void __force *) addr, val, count); }

Contributors

PersonTokensPropCommitsCommitProp
Greg Ungerer34100.00%1100.00%
Total34100.00%1100.00%


static inline void memcpy_fromio(void *dst, const volatile void __iomem *src, int count) { __builtin_memcpy(dst, (void __force *) src, count); }

Contributors

PersonTokensPropCommitsCommitProp
Greg Ungerer35100.00%1100.00%
Total35100.00%1100.00%


static inline void memcpy_toio(volatile void __iomem *dst, const void *src, int count) { __builtin_memcpy((void __force *) dst, src, count); }

Contributors

PersonTokensPropCommitsCommitProp
Greg Ungerer35100.00%1100.00%
Total35100.00%1100.00%

#endif /* CONFIG_MMU */ #define ioport_map ioport_map
static inline void __iomem *ioport_map(unsigned long port, unsigned int nr) { return (void __iomem *) port; }

Contributors

PersonTokensPropCommitsCommitProp
Greg Ungerer25100.00%1100.00%
Total25100.00%1100.00%

#define ioport_unmap ioport_unmap
static inline void ioport_unmap(void __iomem *p) { }

Contributors

PersonTokensPropCommitsCommitProp
Greg Ungerer11100.00%1100.00%
Total11100.00%1100.00%

#endif /* _KMAP_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Greg Ungerer347100.00%1100.00%
Total347100.00%1100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.