STRUCT DWC2_DREGS_BACKUP(9)
π NAME π
okay so bestie, welcome to the struct dwc2_dregs_backup(9) page from the Kernel API Manual β¨ and it is literally giving βsave the vibe before the napβ energy: this struct Holds device registers state before entering partial power down π
. Thatβs the whole main-character job. No cap.
β¨ SYNOPSIS β¨
the way this struct is built is so βback up everything before partial power downβ π β hereβs the exact shape, character for character:
struct dwc2_dregs_backup {
u32 dcfg;
u32 dctl;
u32 daintmsk;
u32 diepmsk;
u32 doepmsk;
u32 diepctl[MAX_EPS_CHANNELS];
u32 dieptsiz[MAX_EPS_CHANNELS];
u32 diepdma[MAX_EPS_CHANNELS];
u32 doepctl[MAX_EPS_CHANNELS];
u32 doeptsiz[MAX_EPS_CHANNELS];
u32 doepdma[MAX_EPS_CHANNELS];
u32 dtxfsiz[MAX_EPS_CHANNELS];
bool valid;
};
π Members π
every single member, no skipping, periodt π«Ά:
dcfgβ Backup of DCFG register πdctlβ Backup of DCTL register πdaintmskβ Backup of DAINTMSK register πdiepmskβ Backup of DIEPMSK register πdoepmskβ Backup of DOEPMSK register πdiepctlβ Backup of DIEPCTL register πdieptsizβ Backup of DIEPTSIZ register πdiepdmaβ Backup of DIEPDMA register πdoepctlβ Backup of DOEPCTL register πdoeptsizβ Backup of DOEPTSIZ register πdoepdmaβ Backup of DOEPDMA register πdtxfsizβ Backup of DTXFSIZ registers for each endpoint πvalidβ True if registers values backuped. π
π¦ SEE ALSO π¦
go check these besties for the full lore π«Ά β the kernel file is ./drivers/usb/dwc2/core.h, and the SEE ALSO squad is:
struct dwc2_hsotg_ep(9)struct dwc2_hsotg_req(9)struct dwc2_core_params(9)struct dwc2_hw_params(9)struct dwc2_gregs_backup(9)struct dwc2_hregs_backup(9)struct dwc2_hsotg(9)
mwah π β source/version: ./drivers/usb/dwc2; date: October 2026 π
π¦ 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