STRUCT SCPSYS_HWV_DOMAIN_DATA(9)
πΈ 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 HWVSETregister πclrβ the offset of the HWVCLEARregister π§Ήdoneβ the offset of the HWVDONEregister βenβ the offset of the HWVENABLEregister π₯set_staβ the offset of the HWVSET STATUSregister πclr_staβ the offset of the HWVCLEAR STATUSregister πsetclr_bitβ theSET/CLRbit that enables/disables the power domain πsta_bitβ theSET/CLRSTAbit you check for the on/off ACK πcapsβ the flag for the active wake-up action π
ngl, all thoseu16s andu8s 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
- 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