diff options
| author | David Brownell <david-b@pacbell.net> | 2002-08-28 02:13:39 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2002-08-28 02:13:39 -0700 |
| commit | f4f441dba355ead04fd39f6309bd14c6da16a03f (patch) | |
| tree | db69737d112b1d1a7487287543cdebc43e842b6a /include/linux/usb.h | |
| parent | aef9f2f7622e8b65a71cc90a1a5df489edae8621 (diff) | |
[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.
Diffstat (limited to 'include/linux/usb.h')
| -rw-r--r-- | include/linux/usb.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 * *-------------------------------------------------------------------*/ |
