]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/usb.h
usb: sandbox: Add support for interrupt operations
[karo-tx-uboot.git] / include / usb.h
index d68453109a0b2f1fcd7c91c6dd884a48db2aa684..55b9268ea16ad9b12650699decf3381b06e8473f 100644 (file)
@@ -937,6 +937,17 @@ int usb_emul_control(struct udevice *emul, struct usb_device *udev,
 int usb_emul_bulk(struct udevice *emul, struct usb_device *udev,
                  unsigned long pipe, void *buffer, int length);
 
+/**
+ * usb_emul_int() - Send an interrupt packet to an emulator
+ *
+ * @emul:      Emulator device
+ * @udev:      USB device (which the emulator is causing to appear)
+ * See struct dm_usb_ops for details on other parameters
+ * @return 0 if OK, -ve on error
+ */
+int usb_emul_int(struct udevice *emul, struct usb_device *udev,
+                 unsigned long pipe, void *buffer, int length, int interval);
+
 /**
  * usb_emul_find() - Find an emulator for a particular device
  *