STRUCT SCPSYS_DOMAIN_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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.h enum scpsys_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