arch/arm/mach-omap2/common.h
Source file repositories/reference/linux-study-clean/arch/arm/mach-omap2/common.h
File Facts
- System
- Linux kernel
- Corpus path
arch/arm/mach-omap2/common.h- Extension
.h- Size
- 9085 bytes
- Lines
- 350
- Domain
- Architecture Layer
- Bucket
- arch/arm
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/irq.hlinux/delay.hlinux/i2c.hlinux/mfd/twl.hlinux/platform_data/i2c-omap.hlinux/reboot.hlinux/irqchip/irq-omap-intc.hasm/proc-fns.hasm/hardware/cache-l2x0.hi2c.h
Detected Declarations
struct device_nodestruct omap_system_dma_plat_infostruct omap_sdrc_paramsstruct omap_hwmodfunction omap3_pm_initfunction omap4_pm_initfunction omap4_pm_init_earlyfunction amx3_common_pm_initfunction omap_l2_cache_initfunction omap5_realtime_timer_initfunction omap_soc_device_initfunction omap2xxx_restartfunction am33xx_restartfunction omap3xxx_restartfunction ti81xx_restartfunction omap44xx_restartfunction omap_barrier_reserve_memblockfunction omap4_enter_lowpowerfunction omap4_hotplug_cpufunction omap4_mpuss_initfunction omap4_secondary_startupfunction omap4_cpu_resumefunction omap5_secondary_startupfunction omap_iommu_set_pwrdm_constraint
Annotated Snippet
#ifndef __ARCH_ARM_MACH_OMAP2PLUS_COMMON_H
#define __ARCH_ARM_MACH_OMAP2PLUS_COMMON_H
#ifndef __ASSEMBLER__
#include <linux/irq.h>
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/mfd/twl.h>
#include <linux/platform_data/i2c-omap.h>
#include <linux/reboot.h>
#include <linux/irqchip/irq-omap-intc.h>
#include <asm/proc-fns.h>
#include <asm/hardware/cache-l2x0.h>
#include "i2c.h"
#define OMAP_INTC_START NR_IRQS
extern int (*omap_pm_soc_init)(void);
int omap_pm_nop_init(void);
#if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP3)
int omap3_pm_init(void);
#else
static inline int omap3_pm_init(void)
{
return 0;
}
#endif
#if defined(CONFIG_PM) && (defined(CONFIG_ARCH_OMAP4) || defined(CONFIG_SOC_OMAP5) || defined(CONFIG_SOC_DRA7XX))
int omap4_pm_init(void);
int omap4_pm_init_early(void);
#else
static inline int omap4_pm_init(void)
{
return 0;
}
static inline int omap4_pm_init_early(void)
{
return 0;
}
#endif
#if defined(CONFIG_PM) && (defined(CONFIG_SOC_AM33XX) || \
defined(CONFIG_SOC_AM43XX))
int amx3_common_pm_init(void);
#else
static inline int amx3_common_pm_init(void)
{
return 0;
}
#endif
#ifdef CONFIG_CACHE_L2X0
int omap_l2_cache_init(void);
#define OMAP_L2C_AUX_CTRL (L2C_AUX_CTRL_SHARED_OVERRIDE | \
L310_AUX_CTRL_DATA_PREFETCH | \
L310_AUX_CTRL_INSTR_PREFETCH)
void omap4_l2c310_write_sec(unsigned long val, unsigned reg);
#else
static inline int omap_l2_cache_init(void)
{
return 0;
}
#define OMAP_L2C_AUX_CTRL 0
#define omap4_l2c310_write_sec NULL
#endif
#ifdef CONFIG_SOC_HAS_REALTIME_COUNTER
extern void omap5_realtime_timer_init(void);
#else
static inline void omap5_realtime_timer_init(void)
{
}
#endif
void omap2420_init_early(void);
void omap2430_init_early(void);
void omap3430_init_early(void);
void omap3630_init_early(void);
void am33xx_init_early(void);
void am35xx_init_early(void);
void ti814x_init_early(void);
void ti816x_init_early(void);
void am43xx_init_early(void);
void am43xx_init_late(void);
Annotation
- Immediate include surface: `linux/irq.h`, `linux/delay.h`, `linux/i2c.h`, `linux/mfd/twl.h`, `linux/platform_data/i2c-omap.h`, `linux/reboot.h`, `linux/irqchip/irq-omap-intc.h`, `asm/proc-fns.h`.
- Detected declarations: `struct device_node`, `struct omap_system_dma_plat_info`, `struct omap_sdrc_params`, `struct omap_hwmod`, `function omap3_pm_init`, `function omap4_pm_init`, `function omap4_pm_init_early`, `function amx3_common_pm_init`, `function omap_l2_cache_init`, `function omap5_realtime_timer_init`.
- Atlas domain: Architecture Layer / arch/arm.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.