STRUCT MIPS_CDMM_BUS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct mips_cdmm_bus(9) β€” like, the Kernel API Manual page, bestie

okay so picture this: it's a page from the Kernel API Manual, and the star of the show is struct mips_cdmm_bus β€” literally just a little info packet about the CDMM bus. that's it. that's the whole vibe. no cap.


✨ NAME ✨

struct mips_cdmm_bus β€” the info-about-the-CDMM-bus struct. she's a data holder, she's iconic, she's not doing anything dramatic, she just knows things. πŸŽ€


🌸 SYNOPSIS 🌸

here's the whole glow-up, verbatim, don't touch her:

struct mips_cdmm_bus {
    phys_addr_t phys;
    void __iomem    *regs;
    unsigned int     drbs;
    unsigned int     drbs_reserved;
    bool discovered;
    bool offline;
 };

πŸ¦‹ Members πŸ¦‹

okay so let's meet the cast, one member at a time, because they each have main character energy in their own way:

  • phys β€” a phys_addr_t, and it's the physical address where the thing is mapped. like, its actual real-world home address. 🏑
  • regs β€” a void __iomem *, the virtual address where the registers can be accessed. this is the door you knock on to talk to the hardware, iykyk.
  • drbs β€” an unsigned int, the total number of DRBs. all of them. the whole squad. πŸ”₯
  • drbs_reserved β€” also an unsigned int, and it's the number of DRBs that are reserved. so like, the ones already spoken for. not available. taken. πŸ’€
  • discovered β€” a bool that tells you whether the devices on the bus have been discovered yet. have we found them? yes or no. mystery status: pending or solved. πŸ”
  • offline β€” a bool, and this one's a little dramatic ngl. it tells you whether the CDMM bus is going offline (or very early coming back online), and in that case it should be reconfigured each time. so basically: when offline is doing its thing, expect reconfiguration every single time. no shortcuts. 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

the lore expands, bestie. go read the Kernel file ./drivers/bus/mips_cdmm.c, plus all of these beautiful related pages:


πŸ’– and that's the whole page, bestie. go forth and configure. periodt.

okay and finally, the cute little sign-off β€” this page lives under ./drivers/bus, it's dated October 2026, and the manual name is struct mips_cdmm_bus(9). slay. πŸ’…βœ¨πŸŒˆ

πŸ“¦ where this page comes from