D | usb.h | 123 typedef struct USBDevice USBDevice; typedef 127 struct USBDevice { struct 137 int (*handle_packet)(USBDevice *dev, USBPacket *p); argument 142 void (*handle_destroy)(USBDevice *dev); argument 153 void (*handle_reset)(USBDevice *dev); argument 161 int (*handle_control)(USBDevice *dev, int request, int value, argument 170 int (*handle_data)(USBDevice *dev, USBPacket *p); argument 184 typedef void (*usb_attachfn)(USBPort *port, USBDevice *dev); argument 188 USBDevice *dev; 237 int usb_device_add_dev(USBDevice *dev); [all …]
|