STRUCT DWC3_EVENT_DEPEVT(9)
π¦ struct dwc3_event_depevt(9) β Device Endpoint Events π¦
Kernel API Manual β okay bestie, we're in the USB DWC3 device endpoint event zone, and this struct is lowkey iconic. π
πΈ NAME πΈ
struct dwc3_event_depevtβ Device Endpoint Events, periodt. β¨
β¨ SYNOPSIS β¨
struct dwc3_event_depevt {
u32 one_bit:1;
u32 endpoint_number:5;
u32 endpoint_event:4;
u32 reserved11_10:2;
u32 status:4;
#define DEPEVT_STATUS_TRANSFER_ACTIVE BIT(3);
#define DEPEVT_STATUS_BUSERR BIT(0);
#define DEPEVT_STATUS_SHORT BIT(1);
#define DEPEVT_STATUS_IOC BIT(2);
#define DEPEVT_STATUS_LST BIT(3) ;
#define DEPEVT_STATUS_MISSED_ISOC BIT(3) ;
#define DEPEVT_STREAMEVT_FOUND 1;
#define DEPEVT_STREAMEVT_NOTFOUND 2;
#define DEPEVT_STREAM_PRIME 0xfffe;
#define DEPEVT_STREAM_NOSTREAM 0x0;
#define DEPEVT_STATUS_CONTROL_DATA 1;
#define DEPEVT_STATUS_CONTROL_STATUS 2;
#define DEPEVT_STATUS_CONTROL_PHASE(n) ((n) & 3);
#define DEPEVT_TRANSFER_NO_RESOURCE 1;
#define DEPEVT_TRANSFER_BUS_EXPIRY 2;
u32 parameters:16;
#define DEPEVT_PARAMETER_CMD(n) (((n) & (0xf << 8)) >> 8);
};
π Members π
one_bitβ indicates this is an endpoint event (not used) β yeah, it's literally not used, bestie.endpoint_numberβ number of the endpoint. π«Άendpoint_eventβ the event we have, and it's giving a whole little menu:0x00β Reserved0x01β XferComplete0x02β XferInProgress0x03β XferNotReady0x04β RxTxFifoEvt (IN->Underrun, OUT->Overrun)0x05β Reserved0x06β StreamEvt0x07β EPCmdCmplt
reserved11_10β Reserved, don't use. π No cap, leave it alone.statusβ Indicates the status of the event. Refer to databook for more information. π The databook has the lore, so go check it.parametersβ Parameters of the current event. Refer to databook for more information. π
π¦ SEE ALSO π¦
Kernel file ./drivers/usb/dwc3/core.h brings the whole friend group: struct dwc3_event_buffer(9), struct dwc3_ep(9), struct dwc3_trb(9), struct dwc3_hwparams(9), struct dwc3_request(9), struct dwc3_glue_ops(9), struct dwc3(9), struct dwc3_event_devt(9), struct dwc3_event_gevt(9), union dwc3_event(9), struct dwc3_gadget_ep_cmd_params(9), and dwc3_mdwidth(9). π
source/version: ./drivers/usb/dwc3 Β· date: October 2026 Β· page: struct dwc3_event_depevt(9) β that's the whole manual page, bestie, ty for coming to my TED talk πβ¨
π¦ 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