STRUCT PWM_MEDIATEK_CHIP(9)
π¦ struct pwm_mediatek_chip(9) π¦
okay bestie, welcome to the Kernel API Manual page for struct pwm_mediatek_chip(9) β itβs giving βlittle struct that represents a PWM chipβ and we are gonna go through every single field, no skips, periodt. π
πΈ NAME πΈ
struct pwm_mediatek_chip β struct representing PWM chip. Thatβs the whole vibe. β¨
β¨ SYNOPSIS β¨
struct pwm_mediatek_chip {
void __iomem *regs;
struct clk *clk_top;
struct clk *clk_main;
const struct pwm_mediatek_of_data *soc;
struct {
struct clk *clk;
unsigned long rate;
} clk_pwms[];
};
π Members π
regsβ base address of PWM chip. literally the base address, bestie, thatβs the whole assignment. πclk_topβ the top clock generator. yes, the top one, main character clock energy. πclk_mainβ the clock used by PWM core. this oneβs doing the core work. π₯socβ pointer to chipβs platform data. itβs pointing at the chipβs platform tea. π΅clk_pwmsβ the clock and clkrate used by each PWM channel. one lilβstruct clk *clk;+unsigned long rate;situation for every channel, slay. π
π SEE ALSO π
- Kernel file
./drivers/pwm/pwm-mediatek.cβ go read the source, iykyk. π
mwah π thatβs the whole page, bestie β source/version is ./drivers/pwm, dated October 2026, and itβs literally struct pwm_mediatek_chip(9). byeee π«Άβ¨
π¦ 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