STRUCT ST_DWC3(9)
π 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βioaddrfor the glue registers π§ like, that's the address you need to poke at the glue-y bitsregmapβ 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 mindrstc_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
- 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