Page MenuHomeFreeBSD

D36106.diff
No OneTemporary

D36106.diff

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

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)

Event Timeline