STRUCT DWC3_APPLE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct dwc3_apple β€” the Apple-specific DWC3 USB controller bestie 🍎✨ (yes this is from the Kernel API Manual, and yes it's iconic)

okay so real talk, this struct is basically the Apple-flavoured wrapper around a DWC3 USB controller, and it's carrying a lot of main character energy in one little bundle πŸ‘‘


🌸 SYNOPSIS 🌸

struct dwc3_apple {
    struct dwc3 dwc;
    struct device *dev;
    struct resource *mmio_resource;
    void __iomem *apple_regs;
    struct reset_control *reset;
    struct usb_role_switch *role_sw;
    struct mutex lock;
    enum dwc3_apple_state state;
 };

like just look at it. gorgeous. no notes πŸ’…


πŸ¦‹ Members πŸ¦‹

okay bestie, let's do a vibe check on every single field, one by one, no skips:

  • dwc β€” the core struct dwc3 structure, the whole reason we're here πŸ’œ
  • dev β€” pointer to the device structure 🫢
  • mmio_resource β€” the resource that gets passed along to dwc3_core_probe, lowkey the delivery girl of this whole operation πŸ“¦
  • apple_regs β€” Apple-specific DWC3 registers, the ✨special sauce✨ registers
  • reset β€” reset control, for when things need a little factory-reset moment 😌
  • role_sw β€” USB role switch, the icon that flips between host and device πŸŽ€
  • lock β€” mutex for synchronizing access, keeping everything from getting messy fr fr πŸ”’
  • state β€” the current state of the controller, and ngl you gotta see the documentation for the enum for the details πŸ‘€

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/usb/dwc3/dwc3-apple.c β€” go read it, iykyk πŸ“–πŸ’«

and that's the whole page bestie, no cap πŸ§šβ€β™€οΈ this cutie came straight from ./drivers/usb/dwc3, dated October 2026, and it's all about struct dwc3_apple(9) πŸ’– slay πŸ’–

πŸ“¦ where this page comes from