STRUCT HW_BANK(9)
π 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 registersabsβ the absolute address of the beginning of the register windowcapβ capability registersopβ operational registerssizeβ the size of the register windowregmapβ register lookup table β¨
π SEE ALSO π
kernel file ./drivers/usb/chipidea/ci.h (iykyk), plus the whole friend group:
struct ci_hw_ep(9)struct ci_role_driver(9)struct ci_hdrc(9)hw_read_id_reg(9)hw_write_id_reg(9)hw_read(9)hw_write(9)hw_test_and_clear(9)hw_test_and_write(9)ci_otg_is_fsm_mode(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms