Revision ae60fea9 hw/usb.h

b/hw/usb.h
344 344
};
345 345

  
346 346
struct USBBusOps {
347
    int (*register_companion)(USBBus *bus, USBPort *ports[],
348
                              uint32_t portcount, uint32_t firstport);
347 349
    void (*device_destroy)(USBBus *bus, USBDevice *dev);
348 350
};
349 351

  
......
356 358
USBDevice *usbdevice_create(const char *cmdline);
357 359
void usb_register_port(USBBus *bus, USBPort *port, void *opaque, int index,
358 360
                       USBPortOps *ops, int speedmask);
361
int usb_register_companion(const char *masterbus, USBPort *ports[],
362
                           uint32_t portcount, uint32_t firstport,
363
                           void *opaque, USBPortOps *ops, int speedmask);
359 364
void usb_port_location(USBPort *downstream, USBPort *upstream, int portnr);
360 365
void usb_unregister_port(USBBus *bus, USBPort *port);
361 366
int usb_device_attach(USBDevice *dev);

Also available in: Unified diff