ENUM HW_ACC_STATE(9)
β¨ enum hw_acc_state(9) β¨
okay bestie, pull up a chair, because we're talking about the kernel API manual page for enum hw_acc_state(9) π (that's the manual name, btw, she's fancy). This is the little enum that tells a hardware accelerator what mood it should be in. Yes, hardware has moods. We respect them. π
πΈ NAME πΈ
enum hw_acc_state β the state definition for a hardware accelerator, no cap π¦
β SYNOPSIS β
enum hw_acc_state {
HW_NO_CHANGE ,
HW_OFF ,
HW_OFF_RAMRET ,
HW_ON
};
Look at her. Four little constants, living their best life. Periodt. π
π Constants π
HW_NO_CHANGEβ literally do nothing, the hardware accelerator state must remain unchanged, leave her alone she's fine πHW_OFFβ the hardware accelerator must be switched off. bye bestie πHW_OFF_RAMRETβ the hardware accelerator must be switched off with its internal RAM in retention β¨ like she's asleep but still remembers everything, iykyk π§HW_ONβ the hwa hardware acceleratorhwamust be switched on. yes, the hwa hardware accelerator hwa. we said it twice because we mean it. main character energy only π₯
π¦ Description π¦
NOTE! Deprecated π to be removed when all users switched over to use the regulator API.
So yeah β she's iconic but she's on her way out. Don't get too attached. When every last user has switched over to the regulator API, this enum is getting removed fr fr. Not me getting emotional about a deprecation notice π₯²
π SEE ALSO π
Kernel file ./include/linux/mfd/db8500-prcmu.h, plus the whole enum friend group, all linked and thriving:
enum state(9), enum ret_state(9), enum clk_arm(9), enum clk_gen(9), enum romcode_write(9), enum romcode_read(9), enum ap_pwrst(9), enum ap_pwrst_trans(9), enum dvfs_stat(9), enum sva_mmdsp_stat(9), enum sia_mmdsp_stat(9), enum mbox_to_arm_err(9), enum sia_sva_pwr_policy(9), enum auto_enable(9), enum prcmu_power_status(9), enum prcmu_wdog_id(9), enum ape_opp(9), enum arm_opp(9), enum ddr_opp(9), enum ddr_pwrst(9), struct prcmu_auto_pm_config(9)
That's a whole group chat right there and every one of them is in it π
π signed, sealed, delivered: this page lives at ./include/linux/mfd, dated October 2026, and answers to the name enum hw_acc_state(9). slay π«Άβ¨
π¦ 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