From f4f441dba355ead04fd39f6309bd14c6da16a03f Mon Sep 17 00:00:00 2001 From: David Brownell Date: Wed, 28 Aug 2002 02:13:39 -0700 Subject: [PATCH] USB dma and scatterlists This patch (almost all from DaveM) wraps up the DMA API work by adding the scatterlist map/sync/unmap support. And removes the corresponding FIXME. --- include/linux/usb.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/linux/usb.h') diff --git a/include/linux/usb.h b/include/linux/usb.h index 5e5c14883819..7e78883daa20 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h @@ -1036,6 +1036,14 @@ struct urb *usb_buffer_map (struct urb *urb); void usb_buffer_dmasync (struct urb *urb); void usb_buffer_unmap (struct urb *urb); +struct scatterlist; +int usb_buffer_map_sg (struct usb_device *dev, unsigned pipe, + struct scatterlist *sg, int nents); +void usb_buffer_dmasync_sg (struct usb_device *dev, unsigned pipe, + struct scatterlist *sg, int n_hw_ents); +void usb_buffer_unmap_sg (struct usb_device *dev, unsigned pipe, + struct scatterlist *sg, int n_hw_ents); + /*-------------------------------------------------------------------* * SYNCHRONOUS CALL SUPPORT * *-------------------------------------------------------------------*/ -- cgit v1.2.3