Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102558260
D36106.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
828 B
Referenced Files
None
Subscribers
None
D36106.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/dma-mapping.h b/sys/compat/linuxkpi/common/include/linux/dma-mapping.h
--- a/sys/compat/linuxkpi/common/include/linux/dma-mapping.h
+++ b/sys/compat/linuxkpi/common/include/linux/dma-mapping.h
@@ -341,4 +341,24 @@
extern int uma_align_cache;
#define dma_get_cache_alignment() uma_align_cache
+
+static inline int
+dma_map_sgtable(struct device *dev, struct sg_table *sgt,
+ enum dma_data_direction dir,
+ unsigned long attrs)
+{
+
+ return (dma_map_sg_attrs(dev, sgt->sgl, sgt->nents, dir, attrs));
+}
+
+static inline void
+dma_unmap_sgtable(struct device *dev, struct sg_table *sgt,
+ enum dma_data_direction dir,
+ unsigned long attrs)
+{
+
+ dma_unmap_sg_attrs(dev, sgt->sgl, sgt->nents, dir, attrs);
+}
+
+
#endif /* _LINUXKPI_LINUX_DMA_MAPPING_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 15, 1:19 AM (10 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14636310
Default Alt Text
D36106.diff (828 B)
Attached To
Mode
D36106: linuxkpi: Add dma_{un,}map_sgtable
Attached
Detach File
Event Timeline
Log In to Comment