diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-01-11 20:34:54 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-01-18 12:31:36 +0100 |
commit | 904f2a83a8c620ceb3974cc6b1529b966d7899b1 (patch) | |
tree | 7dbcc475c638bf71883f6e385476d89244cc5b76 /include | |
parent | accf04c2aa106a8ea5387d309e1ac037eba5ad63 (diff) | |
download | u-boot-imx-904f2a83a8c620ceb3974cc6b1529b966d7899b1.zip u-boot-imx-904f2a83a8c620ceb3974cc6b1529b966d7899b1.tar.gz u-boot-imx-904f2a83a8c620ceb3974cc6b1529b966d7899b1.tar.bz2 |
musb-new: Add interrupt queue support
Add interrupt queue support, so that a usb keyboard can be used without
causing huge latencies.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/usb.h b/include/usb.h index a083591..a8fee0b 100644 --- a/include/usb.h +++ b/include/usb.h @@ -120,6 +120,7 @@ struct usb_device { * Each instance needs its own set of data structures. */ unsigned long status; + unsigned long int_pending; /* 1 bit per ep, used by int_queue */ int act_len; /* transfered bytes */ int maxchild; /* Number of ports if hub */ int portnr; @@ -172,7 +173,7 @@ int submit_control_msg(struct usb_device *dev, unsigned long pipe, void *buffer, int submit_int_msg(struct usb_device *dev, unsigned long pipe, void *buffer, int transfer_len, int interval); -#ifdef CONFIG_USB_EHCI /* Only the ehci code has pollable int support */ +#if defined CONFIG_USB_EHCI || defined CONFIG_MUSB_HOST struct int_queue *create_int_queue(struct usb_device *dev, unsigned long pipe, int queuesize, int elementsize, void *buffer, int interval); int destroy_int_queue(struct usb_device *dev, struct int_queue *queue); |