STRUCT ISP1760_UDC(9)
π struct isp1760_udc(9) π
okay so bestie, we're in the Kernel API Manual and today's main character is struct isp1760_udc β literally the UDC state information struct. it's giving "everything the driver needs to remember about the gadget side" and honestly? iconic. let's get into it π«Ά
β¨ NAME β¨
struct isp1760_udc β UDC state information, no cap. here's the whole cast of fields and what each one is doing at the function:
ispβ pointer tostruct isp1760_device(it's right there in the struct, bestie)irqβ the IRQ numberirqnameβ the IRQ name, as passed torequest_irqregsβ the regmap for UDC registersfields[DC_FIELD_MAX]β array ofstruct regmap_field *, sizedDC_FIELD_MAXdriverβ the gadget drivergadgetβ the gadget devicelockβ this one's the bodyguard π‘οΈ it protectsdriver,vbus_timer,ep,ep0_*, and theDC_EPINDEXregistervbus_timerβ astruct timer_list, just vibing in thereepβ array of endpoints (ep[15], yes fifteen of them)ep0_stateβ control request state for endpoint 0ep0_dirβ direction of the current control requestep0_lengthβ length of the current control requestconnectedβ tracks the gadget driver bus connection stateis_isp1763β abool, slaying quietly with no description attacheddevstatusβ anunsigned int, also flying under the radar with no description
the original NAME blurb only describes the fields above βisp,fields,vbus_timer,is_isp1763anddevstatusare just out here living their truth with no commentary. we respect it π
πΈ SYNOPSIS πΈ
here's the whole struct, character for character, zero edits, because we do not mess with source code in this group chat:
struct isp1760_udc {
struct isp1760_device *isp;
int irq;
char *irqname;
struct regmap *regs;
struct regmap_field *fields[DC_FIELD_MAX];
struct usb_gadget_driver *driver;
struct usb_gadget gadget;
spinlock_t lock;
struct timer_list vbus_timer;
struct isp1760_ep ep[15];
enum isp1760_ctrl_state ep0_state;
u8 ep0_dir;
u16 ep0_length;
bool connected;
bool is_isp1763;
unsigned int devstatus;
};
likeβ¦ she's got pointers, she's got a spinlock, she's got an array of fifteen endpoints. she contains multitudes π¦
π Members π
bestie this section is literally empty in the original. nothing. a whole heading with no content underneath it. we love a mysterious queen who says nothing and leaves β¨
π¦ SEE ALSO π¦
- Kernel file
./drivers/usb/isp1760/isp1760-udc.hβ go read it, iykyk π
and that's the page, bestie! π no cap, you now know struct isp1760_udc better than you know your own notifications π
sign-off szn: this one came from ./drivers/usb/isp1760, dated October 2026, and its whole title card reads struct isp1760_udc(9). 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