Revision d47e59b8 hw/usb.h

b/hw/usb.h
252 252
typedef struct USBPortOps {
253 253
    void (*attach)(USBPort *port);
254 254
    void (*detach)(USBPort *port);
255
    void (*wakeup)(USBDevice *dev);
256
    void (*complete)(USBDevice *dev, USBPacket *p);
255
    void (*wakeup)(USBPort *port);
256
    /*
257
     * Note that port->dev will be different then the device from which
258
     * the packet originated when a hub is involved, if you want the orginating
259
     * device use p->owner
260
     */
261
    void (*complete)(USBPort *port, USBPacket *p);
257 262
} USBPortOps;
258 263

  
259 264
/* USB port on which a device can be connected */

Also available in: Unified diff