STRUCT DAVINCI_TIMER_CFG(9)
π struct davinci_timer_cfg(9)
okay so this one's from the Kernel API Manual bestie, and it's literally just the config struct for the davinci clocksource driver β like, the little bundle of settings the driver needs handed to it. small struct, big main character energy. β¨
πΈ NAME πΈ
struct davinci_timer_cfg β the davinci clocksource driver configuration struct, periodt. it's a struct, that's the whole vibe.
π¦ SYNOPSIS π¦
struct davinci_timer_cfg {
struct resource reg;
struct resource irq[DAVINCI_TIMER_NUM_IRQS];
unsigned int cmp_off;
};
π Members π
regβ the register range resource, aka where the registers live πirqβ the interrupt resources for clockevent and clocksource, and yes it's an array ofDAVINCI_TIMER_NUM_IRQSof them πcmp_offβ if it's set, this is the compare register used for clockevent π₯
π Note π
okay listen, this part actually matters so no skimming π
If the compare register is specified, the driver will use the bottom clock half for both the clocksource and the clockevent, plus the compare register to generate the event irqs. and you β yes you, the user β must supply the correct compare register interrupt number. no cap, get that number right.
This is only used by da830, whose DSP uses the top half. the timer driver still configures the top half to run in free-run mode though, so it's not just sitting there doing nothing. π
β SEE ALSO β
Kernel file ./include/clocksource/timer-davinci.h β go read it, iykyk π«Ά
and that's the whole page bestie!! π source/version is ./include/clocksource, dated October 2026, and it's all about struct davinci_timer_cfg(9) β slay, go configure some timers ππ§π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms