STRUCT SVS_PLATFORM(9)
โจ struct svs_platform(9) โจ
okay so this is a page straight out of the Kernel API Manual, and it's all about struct svs_platform โ the svs platform control <pink>๐
</pink>. ngl bestie this one's a struct definition so it's mostly vibes-adjacent bookkeeping, but it ate and we're gonna get through it together, fr fr ๐ซถ
๐ธ NAME ๐ธ
struct svs_platform โ svs platform control. that's it, that's the whole name, short and iconic ๐
๐ฆ SYNOPSIS ๐ฆ
here's the actual struct, copy-paste-able, exactly as it lives:
struct svs_platform {
void __iomem *base;
struct device *dev;
struct clk *main_clk;
struct svs_bank *banks;
struct reset_control *rst;
size_t efuse_max;
size_t tefuse_max;
const u32 *regs;
u32 *efuse;
u32 *tefuse;
u32 ts_coeff;
u16 bank_max;
};
look at her. twelve members. main character energy, lowkey ๐
๐ Members ๐
okay so here's the breakdown of every single field, no skips, no cap:
baseโ the svs platform register base. this is where the registers live, the home address of the whole operation ๐devโ the svs platform device. your device handle bestie, she's right there โจmain_clkโ main clock for svs bank. the clock that keeps the banks ticking โฐbanksโ svs banks that svs platform supports. plural, plural, plural ๐rstโ svs platform reset control. for when you need to start over, no judgement ๐efuse_maxโ total number of svs efuse. the count, the whole count, nothing but the count ๐ขtefuse_maxโ total number of thermal efuse. same energy, thermal edition ๐ฅregsโ svs platform registers map. your little treasure map of registers ๐บ๏ธefuseโ svs efuse data received from NVMEM framework. note that it comes from NVMEM, that part matters ๐tefuseโ thermal efuse data received from NVMEM framework. again โ NVMEM framework, okurrr ๐ts_coeffโ thermal sensors coefficient. the coefficient for the thermal sensors, maths but make it cute ๐งฎbank_maxโ total number of svs banks. yes there's alsobanksup there, no they're not the same, one's the banks themselves and one's the total count, iykyk ๐
๐ง SEE ALSO ๐ง
go read these next, bestie, they're all in the Kernel file ./drivers/soc/mediatek/mtk-svs.c:
- enum
svsb_sw_id(9) - enum
svsb_type(9) - enum
svsb_phase(9) - struct
svs_bank_pdata(9) - struct
svs_bank(9)
that's the whole friend group right there ๐
and that's the page!! mwah ๐ this one lives over in ./drivers/soc/mediatek, dated October 2026, and it's filed under struct svs_platform(9) in the Kernel API Manual โ slay, go touch some registers responsibly ๐โจ
๐ฆ 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