summaryrefslogtreecommitdiff
path: root/include/linux/usb
diff options
context:
space:
mode:
authorMartin Fuzzey <mfuzzey@gmail.com>2010-10-01 00:21:55 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-22 10:22:03 -0700
commit1dae423dd9b247b048eda00cb598c755e5933213 (patch)
tree8c26248225009634cdff99a53bdb7e5e03b54de9 /include/linux/usb
parent7a7e7896422baced4757070b813ba28ab24a214a (diff)
downloadlinux-3.10-1dae423dd9b247b048eda00cb598c755e5933213.tar.gz
linux-3.10-1dae423dd9b247b048eda00cb598c755e5933213.tar.bz2
linux-3.10-1dae423dd9b247b048eda00cb598c755e5933213.zip
USB: introduce unmap_urb_setup_for_dma()
Split unmap_urb_for_dma() to allow just the setup buffer to be unmapped. This allows HCDs to use PIO for the setup buffer if it is not suitable for DMA. Signed-off-by: Martin Fuzzey <mfuzzey@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/hcd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h
index fe89f7c298a..0b6e751ea0b 100644
--- a/include/linux/usb/hcd.h
+++ b/include/linux/usb/hcd.h
@@ -329,6 +329,7 @@ extern int usb_hcd_submit_urb(struct urb *urb, gfp_t mem_flags);
extern int usb_hcd_unlink_urb(struct urb *urb, int status);
extern void usb_hcd_giveback_urb(struct usb_hcd *hcd, struct urb *urb,
int status);
+extern void unmap_urb_setup_for_dma(struct usb_hcd *, struct urb *);
extern void unmap_urb_for_dma(struct usb_hcd *, struct urb *);
extern void usb_hcd_flush_endpoint(struct usb_device *udev,
struct usb_host_endpoint *ep);