From 7567b51fbe92e1300a672eaddd413c4a7e807d90 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 17 Jan 2012 13:25:46 +0100 Subject: usb: pass USBEndpoint to usb_wakeup Devices must specify which endpoint has data to transfer now. The plan is to use the usb_wakeup() not only for remove wakeup support, but for "data ready" signaling in general, so we can move away from constant polling to event driven usb device emulation. Signed-off-by: Gerd Hoffmann --- hw/usb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/usb.h') diff --git a/hw/usb.h b/hw/usb.h index 6545b69bb9..b2caa77345 100644 --- a/hw/usb.h +++ b/hw/usb.h @@ -368,7 +368,7 @@ void usb_attach(USBPort *port); void usb_detach(USBPort *port); void usb_port_reset(USBPort *port); void usb_device_reset(USBDevice *dev); -void usb_wakeup(USBDevice *dev); +void usb_wakeup(USBEndpoint *ep); void usb_generic_async_ctrl_complete(USBDevice *s, USBPacket *p); int set_usb_string(uint8_t *buf, const char *str); -- cgit v1.2.1