ENUM HW_ACC_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 accelerator hwa must 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