STRUCT XE_REG_MCR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct xe_reg_mcr(9) πŸ’…

ok so bestie, welcome to the Kernel API Manual β€” this is the page for struct xe_reg_mcr, and honestly it's a short one but it matters, so pay attention 🫢


✨ NAME ✨

struct xe_reg_mcr β€” literally the MCR register definition, that's it, that's the whole vibe πŸ’–


🌸 SYNOPSIS 🌸

struct xe_reg_mcr {
    struct xe_reg __reg;
 };

πŸŽ€ Members πŸŽ€

  • __reg β€” the register itself. that's the member. that's the whole member. iconic minimalism πŸ’…

πŸ¦‹ Description πŸ¦‹

okay so here's the tea, and it's actually important πŸ‘‘

An MCR register is the same as a regular register β€” no cap, same thing, same concept. BUT it uses another type, because the internal API used for accessing them is different. and bestie, listen to this next part:

it's never correct to use regular MMIO access. never ever. not once. don't do it 😭

so the type exists purely to keep you honest β€” the compiler and the API can tell the difference, and you should respect the distinction fr fr 🧚


πŸ”₯ SEE ALSO πŸ”₯

go read those too, they're the friend group πŸ’œ


⭐ that's the page!! sign-off time: this lil beauty lives over in ./drivers/gpu/drm/xe/regs and it's dated October 2026 β€” anyway ily, go forth and never use regular MMIO access on an MCR register πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from