STRUCT HW_BANK(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct hw_bank(9) β€” the Kernel API Manual, bestie edition ✨

okay so this one lives in the Kernel API Manual, and it's literally all about struct hw_bank β€” the hardware register mapping representation. yes it's as cute as it sounds. let's get into it 🫢


✨ NAME ✨

struct hw_bank β€” the hardware register mapping representation πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

struct hw_bank {
    unsigned lpm;
    resource_size_t phys;
    void __iomem    *abs;
    void __iomem    *cap;
    void __iomem    *op;
    size_t size;
    void __iomem    *regmap[OP_LAST + 1];
 };

🌸 Members 🌸

  • lpm β€” set if the device is LPM capable. that's it, that's the flag πŸ¦‹
  • phys β€” the physical address of the controller's registers
  • abs β€” the absolute address of the beginning of the register window
  • cap β€” capability registers
  • op β€” operational registers
  • size β€” the size of the register window
  • regmap β€” register lookup table ✨

🌈 SEE ALSO 🌈

kernel file ./drivers/usb/chipidea/ci.h (iykyk), plus the whole friend group:


ngl, read the whole squad before you go poking at registers πŸ’€

and that's the whole vibe check, bestie β€” this page dropped out of ./drivers/usb/chipidea in October 2026. go be iconic with it πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from