include/linux/mfd/stm32-timers.h
Source file repositories/reference/linux-study-clean/include/linux/mfd/stm32-timers.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/mfd/stm32-timers.h- Extension
.h- Size
- 8959 bytes
- Lines
- 187
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/clk.hlinux/dmaengine.hlinux/dma-mapping.hlinux/regmap.h
Detected Declarations
struct stm32_timers_dmastruct stm32_timersenum stm32_timers_dmasenum stm32_timers_irqsfunction stm32_timers_dma_burst_read
Annotated Snippet
struct stm32_timers_dma {
struct completion completion;
phys_addr_t phys_base;
struct mutex lock;
struct dma_chan *chan;
struct dma_chan *chans[STM32_TIMERS_MAX_DMAS];
};
struct stm32_timers {
struct clk *clk;
u32 ipidr;
struct regmap *regmap;
u32 max_arr;
struct stm32_timers_dma dma; /* Only to be used by the parent */
unsigned int nr_irqs;
int irq[STM32_TIMERS_MAX_IRQS];
};
#if IS_REACHABLE(CONFIG_MFD_STM32_TIMERS)
int stm32_timers_dma_burst_read(struct device *dev, u32 *buf,
enum stm32_timers_dmas id, u32 reg,
unsigned int num_reg, unsigned int bursts,
unsigned long tmo_ms);
#else
static inline int stm32_timers_dma_burst_read(struct device *dev, u32 *buf,
enum stm32_timers_dmas id,
u32 reg,
unsigned int num_reg,
unsigned int bursts,
unsigned long tmo_ms)
{
return -ENODEV;
}
#endif
#endif
Annotation
- Immediate include surface: `linux/clk.h`, `linux/dmaengine.h`, `linux/dma-mapping.h`, `linux/regmap.h`.
- Detected declarations: `struct stm32_timers_dma`, `struct stm32_timers`, `enum stm32_timers_dmas`, `enum stm32_timers_irqs`, `function stm32_timers_dma_burst_read`.
- Atlas domain: Core OS / Core Kernel Interface.
- 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.