cregit-Linux how code gets into the kernel

Release 4.7 include/asm-generic/early_ioremap.h

#ifndef _ASM_EARLY_IOREMAP_H_

#define _ASM_EARLY_IOREMAP_H_

#include <linux/types.h>

/*
 * early_ioremap() and early_iounmap() are for temporary early boot-time
 * mappings, before the real ioremap() is functional.
 */
extern void __iomem *early_ioremap(resource_size_t phys_addr,
				   unsigned long size);
extern void *early_memremap(resource_size_t phys_addr,
			    unsigned long size);
extern void *early_memremap_ro(resource_size_t phys_addr,
			       unsigned long size);
extern void early_iounmap(void __iomem *addr, unsigned long size);
extern void early_memunmap(void *addr, unsigned long size);

/*
 * Weak function called by early_ioremap_reset(). It does nothing, but
 * architectures may provide their own version to do any needed cleanups.
 */
extern void early_ioremap_shutdown(void);

#if defined(CONFIG_GENERIC_EARLY_IOREMAP) && defined(CONFIG_MMU)
/* Arch-specific initialization */
extern void early_ioremap_init(void);

/* Generic initialization called by architecture code */
extern void early_ioremap_setup(void);

/*
 * Called as last step in paging_init() so library can act
 * accordingly for subsequent map/unmap requests.
 */
extern void early_ioremap_reset(void);

/*
 * Early copy from unmapped memory to kernel mapped memory.
 */
extern void copy_from_early_mem(void *dest, phys_addr_t src,
				unsigned long size);

#else

static inline void early_ioremap_init(void) { }

Contributors

PersonTokensPropCommitsCommitProp
mark saltermark salter8100.00%1100.00%
Total8100.00%1100.00%


static inline void early_ioremap_setup(void) { }

Contributors

PersonTokensPropCommitsCommitProp
mark saltermark salter8100.00%1100.00%
Total8100.00%1100.00%


static inline void early_ioremap_reset(void) { }

Contributors

PersonTokensPropCommitsCommitProp
mark saltermark salter8100.00%1100.00%
Total8100.00%1100.00%

#endif #endif /* _ASM_EARLY_IOREMAP_H_ */

Overall Contributors

PersonTokensPropCommitsCommitProp
mark saltermark salter15592.26%266.67%
juergen grossjuergen gross137.74%133.33%
Total168100.00%3100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}