Revision 4706ab6c 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 |
/* |
|
256 |
* This gets called when a device downstream from the device attached to |
|
257 |
* the port (iow attached through a hub) gets detached. |
|
258 |
*/ |
|
259 |
void (*child_detach)(USBPort *port, USBDevice *child); |
|
255 | 260 |
void (*wakeup)(USBPort *port); |
256 | 261 |
/* |
257 | 262 |
* Note that port->dev will be different then the device from which |
... | ... | |
351 | 356 |
struct USBBusOps { |
352 | 357 |
int (*register_companion)(USBBus *bus, USBPort *ports[], |
353 | 358 |
uint32_t portcount, uint32_t firstport); |
354 |
void (*device_destroy)(USBBus *bus, USBDevice *dev); |
|
355 | 359 |
}; |
356 | 360 |
|
357 | 361 |
void usb_bus_new(USBBus *bus, USBBusOps *ops, DeviceState *host); |
Also available in: Unified diff