STRUCT GUC_MMIO_REG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct guc_mmio_reg(9) β€” from the Kernel API Manual, bestie πŸŽ€

okay so picture this: you're deep in the kernel docs, the manual name is Kernel API Manual, and this little icon walks in β€” πŸ’« struct guc_mmio_reg β€” the GuC MMIO reg state struct. that's it, that's the vibe. let's get into it ✨


🌸 NAME 🌸

struct guc_mmio_reg β€” the GuC MMIO reg state struct, no cap πŸ’–


✨ SYNOPSIS ✨

here's the whole shape of it, literally copy-paste this into your brain, iykyk:

struct guc_mmio_reg {
    u32 offset;
    u32 value;
    u32 flags;
    u32 mask;
  #define GUC_REGSET_MASKED               BIT(0);
  #define GUC_REGSET_STEERING_NEEDED      BIT(1);
  #define GUC_REGSET_MASKED_WITH_VALUE    BIT(2);
  #define GUC_REGSET_RESTORE_ONLY         BIT(3);
  #define GUC_REGSET_STEERING_GROUP       GENMASK(16, 12);
  #define GUC_REGSET_STEERING_INSTANCE    GENMASK(23, 20);
 };

those #defines are living inside the struct body btw. she contains multitudes 🫢


πŸ¦‹ Members πŸ¦‹

bestie the glow-up is in the details, here's every member and what she does:

  • offset β€” the MMIO Offset, and it gets filled in by the Host. that's the Host's job, not yours, periodt πŸ’…
  • value β€” the MMIO Value, and this one's used by Firmware to store value. firmwares' little storage unit 😌
  • flags β€” flags for accessing the MMIO. the whole vibe-check bitfield, iconic
  • mask β€” the value of a mask to apply if mask with value is set. yes, "if mask with value is set" β€” that's the condition, don't come for me, that's literally the doc πŸ’€

πŸŽ€ Description πŸŽ€

GuC MMIO reg state struct. that's the whole description. she said "my work here is done" and honestly? respect. πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ

go read these next, they're the friend group 🧚:

  • the kernel file ./drivers/gpu/drm/xe/abi/guc_capture_abi.h
  • struct guc_mmio_reg_set(9)
  • struct guc_debug_capture_list_header(9)
  • struct guc_debug_capture_list(9)
  • struct guc_state_capture_header_t(9)
  • struct guc_state_capture_t(9)
  • struct guc_state_capture_group_header_t(9)
  • struct guc_state_capture_group_t(9)

like, that's the entire group chat right there, highkey obsessed 🌈


and that's the page!! sourced straight from ./drivers/gpu/drm/xe/abi, dated October 2026 β€” mwah, kiss the docs, they're beautiful πŸ˜­πŸ’– periodt. πŸ“

πŸ“¦ where this page comes from