STRUCT MTK_MFG_OPP_ENTRY(9)
๐ struct mtk_mfg_opp_entry ๐
okay so bestie, welcome to the Kernel API Manual page for struct mtk_mfg_opp_entry โ yes that's the whole title, she's long but she's worth it ๐
๐ธ NAME ๐ธ
struct mtk_mfg_opp_entry โ an OPP table entry that came straight from the firmware, no cap ๐ซถ
โจ SYNOPSIS โจ
here's the whole glow-up, look at her:
struct mtk_mfg_opp_entry {
__le32 freq_khz;
__le32 voltage_core;
__le32 voltage_sram;
__le32 posdiv;
__le32 voltage_margin;
__le32 power_mw;
};
๐ Members ๐
every field is literally iconic in her own way, let's go through them one by one ๐
freq_khzโ the operating point's frequency, in kilohertz. that's the speed vibe of this OPP, iykyk โกvoltage_coreโ the operating point's core voltage, measured in tens of microvolts. tens!! of microvolts!! tiny units, big energy ๐ฅvoltage_sramโ the operating point's SRAM voltage, also in tens of microvolts. same units, different lane, she's matching but not twinning ๐ฆposdivโ the exponent of base 2 for the PLL frequency divisor that's used for this OPP. it's giving math girlie and honestly? we love her ๐งฎโจvoltage_marginโ how many tens of microvolts the voltage is allowed to be undershot by. a little wiggle room, a little grace ๐power_mwโ an estimate of power usage at this operating point, in milliwatts. the budget bestie, the budget ๐
๐ Description ๐
okay this is the part where you actually listen ๐ โ this struct is part of the ABI with the EB firmware. Do not change it. like, do not. not a single field, not a single padding byte. she is load-bearing. she is the moment. she is untouchable ๐๐ฅ
fr fr, this is a firmware ABI contract โ changing it is undefined-behaviour-adjacent chaos and the kernel will absolutely not be slaying after that ๐
๐ SEE ALSO ๐
- Kernel file
./drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c mtk_mfg_send_ipi(9)
and that's the page bestie, go forth and respect the ABI ๐ซถ๐ธ
kisses from the kernel tree โ this one's from ./drivers/pmdomain/mediatek, dated October 2026, filed under struct mtk_mfg_opp_entry(9) โจ
๐ฆ 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