summaryrefslogtreecommitdiffstats
path: root/hw/usb
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-12-12 13:40:59 +0100
committerGerd Hoffmann <kraxel@redhat.com>2013-02-19 12:30:05 +0100
commite382d966d06d2989fc28eec8cfdcc2fd99ebfbb7 (patch)
tree90dfb09274909f447e391637a83950c3baa68eff /hw/usb
parent1a3973b33d36583d7194798f789a37759a13e269 (diff)
downloadhqemu-e382d966d06d2989fc28eec8cfdcc2fd99ebfbb7.zip
hqemu-e382d966d06d2989fc28eec8cfdcc2fd99ebfbb7.tar.gz
usb: add usb_ep_set_halted
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb')
-rw-r--r--hw/usb/core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/usb/core.c b/hw/usb/core.c
index d057aab..5517797 100644
--- a/hw/usb/core.c
+++ b/hw/usb/core.c
@@ -755,6 +755,12 @@ void usb_ep_set_pipeline(USBDevice *dev, int pid, int ep, bool enabled)
uep->pipeline = enabled;
}
+void usb_ep_set_halted(USBDevice *dev, int pid, int ep, bool halted)
+{
+ struct USBEndpoint *uep = usb_ep_get(dev, pid, ep);
+ uep->halted = halted;
+}
+
USBPacket *usb_ep_find_packet_by_id(USBDevice *dev, int pid, int ep,
uint64_t id)
{
OpenPOWER on IntegriCloud