STRUCT SCPSYS_DOMAIN_DATA(9)
π struct scpsys_domain_data(9) β a whole vibe
okay so this is from the Kernel API Manual, and bestie, it's the struct scpsys_domain_data β literally the scp domain data for the power on/off flow π. Like, every power domain gets one of these little babies and it holds everything the driver needs to know about turning it on and off. no cap.
β¨ NAME β¨
struct scpsys_domain_data β scp domain data for power on/off flow π«Ά
πΈ SYNOPSIS πΈ
struct scpsys_domain_data {
const char *name;
u32 sta_mask;
u32 sta2nd_mask;
int ctl_offs;
u32 sram_pdn_bits;
u32 sram_pdn_ack_bits;
int ext_buck_iso_offs;
u32 ext_buck_iso_mask;
u16 caps;
enum scpsys_rtff_type rtff_type;
const struct scpsys_bus_prot_data bp_cfg[SPM_MAX_BUS_PROT_DATA];
int pwr_sta_offs;
int pwr_sta2nd_offs;
};
like, that's the whole struct, exactly as it is, don't @ me π
π Members π
nameβ the name of the power domain. its whole identity, its main character energy βsta_maskβ the mask for power on/off status bit π₯sta2nd_maskβ the mask for second power on/off status bit. yes there's a second one, she's got layers πctl_offsβ the offset for main power control register πΈsram_pdn_bitsβ the mask for sram power control bits π¦sram_pdn_ack_bitsβ the mask for sram power control acked bits. ack bits are the way that the hardware says "heard u bestie" πext_buck_iso_offsβ the offset for external buck isolation β¨ext_buck_iso_maskβ the mask for external buck isolation π§capsβ the flag for active wake-up action πrtff_typeβ the power domain RTFF HW type. which kind of RTFF hardware, iykyk πbp_cfgβ bus protection configuration for any subsystem π«Ά
fr fr, don't skip a single field, they all matter when the power's getting yanked around π
π¦ SEE ALSO π¦
- Kernel file
./drivers/pmdomain/mediatek/mtk-pm-domains.henumscpsys_rtff_type(9) enum scpsys_mtcmos_type(9)struct scpsys_hwv_domain_data(9)
okay that's the whole thing, go read the kernel file if u want more lore ππ
β sourced from ./drivers/pmdomain/mediatek, dated October 2026, and that's the tea ππ
slay bestie, go turn some power domains on and off 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