STRUCT SCPSYS_HWV_DOMAIN_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so welcome to the Kernel API Manual, bestie πŸ’– β€” today's main character is struct scpsys_hwv_domain_data, and it's literally the Hardware Voter power domain data struct. no cap, that's the whole vibe. it's the little data blob that tells you everything about one power domain and where its registers live ✨


⭐ SYNOPSIS ⭐

here's the shape of it, exactly as it is, don't touch a single character 🫢

struct scpsys_hwv_domain_data {
    const char *name;
    u16 set;
    u16 clr;
    u16 done;
    u16 en;
    u16 set_sta;
    u16 clr_sta;
    u8 setclr_bit;
    u8 sta_bit;
    u16 caps;
 };

πŸ’… MEMBERS πŸ’…

bestie. let's go through every single field, one by one, because we do not skip πŸŽ€

  • name β€” the name of the power domain. that's it, that's the label πŸ‘‘
  • set β€” the offset of the HWV SET register πŸ“
  • clr β€” the offset of the HWV CLEAR register 🧹
  • done β€” the offset of the HWV DONE register βœ…
  • en β€” the offset of the HWV ENABLE register πŸ”₯
  • set_sta β€” the offset of the HWV SET STATUS register πŸ“Š
  • clr_sta β€” the offset of the HWV CLEAR STATUS register πŸ“‰
  • setclr_bit β€” the SET/CLR bit that enables/disables the power domain πŸ’…
  • sta_bit β€” the SET/CLR STA bit you check for the on/off ACK πŸ‘€
  • caps β€” the flag for the active wake-up action 🌈
ngl, all those u16s and u8s are offsets and bits, so please don't go inventing values for them β€” read them straight from the hardware definitions, mkay? πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

go peek at these next, iykyk πŸ’œ

  • The kernel file ./drivers/pmdomain/mediatek/mtk-pm-domains.h
  • enum scpsys_rtff_type(9)
  • enum scpsys_mtcmos_type(9)
  • struct scpsys_domain_data(9)

and that's the whole page, bestie, you ate that πŸ“πŸ’– this lil entry lives over in ./drivers/pmdomain/mediatek, it's marked October 2026, and it's filed under the very iconic struct scps..._domain_data(9) banner. periodt. ✨🧚

πŸ“¦ where this page comes from