diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/dma-buf.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/dma-buf.h b/include/linux/dma-buf.h index 86f624141048..a885b2689b8f 100644 --- a/include/linux/dma-buf.h +++ b/include/linux/dma-buf.h | |||
@@ -63,7 +63,8 @@ struct dma_buf_ops { | |||
63 | struct sg_table * (*map_dma_buf)(struct dma_buf_attachment *, | 63 | struct sg_table * (*map_dma_buf)(struct dma_buf_attachment *, |
64 | enum dma_data_direction); | 64 | enum dma_data_direction); |
65 | void (*unmap_dma_buf)(struct dma_buf_attachment *, | 65 | void (*unmap_dma_buf)(struct dma_buf_attachment *, |
66 | struct sg_table *); | 66 | struct sg_table *, |
67 | enum dma_data_direction); | ||
67 | /* TODO: Add try_map_dma_buf version, to return immed with -EBUSY | 68 | /* TODO: Add try_map_dma_buf version, to return immed with -EBUSY |
68 | * if the call would block. | 69 | * if the call would block. |
69 | */ | 70 | */ |
@@ -122,7 +123,8 @@ void dma_buf_put(struct dma_buf *dmabuf); | |||
122 | 123 | ||
123 | struct sg_table *dma_buf_map_attachment(struct dma_buf_attachment *, | 124 | struct sg_table *dma_buf_map_attachment(struct dma_buf_attachment *, |
124 | enum dma_data_direction); | 125 | enum dma_data_direction); |
125 | void dma_buf_unmap_attachment(struct dma_buf_attachment *, struct sg_table *); | 126 | void dma_buf_unmap_attachment(struct dma_buf_attachment *, struct sg_table *, |
127 | enum dma_data_direction); | ||
126 | #else | 128 | #else |
127 | 129 | ||
128 | static inline struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf, | 130 | static inline struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf, |
@@ -166,7 +168,7 @@ static inline struct sg_table *dma_buf_map_attachment( | |||
166 | } | 168 | } |
167 | 169 | ||
168 | static inline void dma_buf_unmap_attachment(struct dma_buf_attachment *attach, | 170 | static inline void dma_buf_unmap_attachment(struct dma_buf_attachment *attach, |
169 | struct sg_table *sg) | 171 | struct sg_table *sg, enum dma_data_direction dir) |
170 | { | 172 | { |
171 | return; | 173 | return; |
172 | } | 174 | } |