STRUCT ST_DWC3(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct st_dwc3 β€” the private structure for the dwc3-st driver, bestie. like, the little home where this driver keeps all its stuff 🏠✨

(also hi, this is a page from the Kernel API Manual β€” yes, that manual, we're fancy now πŸ’…)


✨ SYNOPSIS ✨

okay so here's the whole vibe, literally the exact struct, no cap:

struct st_dwc3 {
    struct device *dev;
    void __iomem *glue_base;
    struct regmap *regmap;
    int syscfg_reg_off;
    enum usb_dr_mode dr_mode;
    struct reset_control *rstc_pwrdn;
    struct reset_control *rstc_rst;
 };

look at her. she's iconic. seven members, zero notes πŸ‘‘


🌸 Members 🌸

okay time for the member-by-member tour, grab a snack πŸ“

  • dev β€” the device pointer. the main character of the whole structure honestly, it's giving anchor-of-the-universe energy ✨
  • glue_base β€” ioaddr for the glue registers 🧚 like, that's the address you need to poke at the glue-y bits
  • regmap β€” the regmap pointer, and what's it for? getting syscfg. that's the whole assignment, and it ate πŸ’…
  • syscfg_reg_off β€” the usb syscfg control offset. it's an offset. for the usb syscfg control. it does exactly what it says on the label πŸŽ€
  • dr_mode β€” the drd static host/device config πŸ¦‹ static being the key word here, she's not out here changing her mind
  • rstc_pwrdn β€” this one's literally labeled "rest controller for powerdown signal" in the source material (yes, rest, not reset, they said what they said 😭 keeping it 100% faithful bestie) β€” the reset controller for the powerdown signal πŸ”₯
  • rstc_rst β€” reset controller for the softreset signal ⭐ softreset specifically, don't get it twisted
ngl the rstc_pwrdn line is a whole typo moment but we're preserving it exactly bc that's the rule around here β€” facts stay, vibes are mine πŸ’œ

πŸ¦‹ SEE ALSO πŸ¦‹

if you wanna keep reading (and you should, this is a rabbit hole fr fr), the kernel file lives at ./drivers/usb/dwc3/dwc3-st.c β€” go say hi to it 🫢


and that's a wrap bestie πŸŽ€ this page came from ./drivers/usb/dwc3 and it's dated October 2026 β€” mark your calendars, screenshot it, tell your friends πŸ’– you're officially a st_dwc3 understander now, periodt πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from