Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2019 17:51:08 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r345092 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201903131751.x2DHp8we054086@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Wed Mar 13 17:51:08 2019
New Revision: 345092
URL: https://svnweb.freebsd.org/changeset/base/345092

Log:
  Properly define the DMA attribute values in the LinuxKPI.
  
  Submitted by:		Johannes Lundberg <johalun0@gmail.com>
  MFC after:		1 week
  Sponsored by:		Limelight Networks
  Sponsored by:		Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/include/linux/dma-attrs.h

Modified: head/sys/compat/linuxkpi/common/include/linux/dma-attrs.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/dma-attrs.h	Wed Mar 13 17:46:05 2019	(r345091)
+++ head/sys/compat/linuxkpi/common/include/linux/dma-attrs.h	Wed Mar 13 17:51:08 2019	(r345092)
@@ -31,9 +31,16 @@
 #ifndef	_LINUX_DMA_ATTR_H_
 #define	_LINUX_DMA_ATTR_H_
 
-enum dma_attr { DMA_ATTR_WRITE_BARRIER, DMA_ATTR_WEAK_ORDERING, DMA_ATTR_MAX, };
-
-#define __DMA_ATTRS_LONGS BITS_TO_LONGS(DMA_ATTR_MAX)
+#define	DMA_ATTR_WRITE_BARRIER		(1 << 0)
+#define	DMA_ATTR_WEAK_ORDERING		(1 << 1)
+#define	DMA_ATTR_WRITE_COMBINE		(1 << 2)
+#define	DMA_ATTR_NON_CONSISTENT		(1 << 3)
+#define	DMA_ATTR_NO_KERNEL_MAPPING	(1 << 4)
+#define	DMA_ATTR_SKIP_CPU_SYNC		(1 << 5)
+#define	DMA_ATTR_FORCE_CONTIGUOUS	(1 << 6)
+#define	DMA_ATTR_ALLOC_SINGLE_PAGES	(1 << 7)
+#define	DMA_ATTR_NO_WARN		(1 << 8)
+#define	DMA_ATTR_PRIVILEGED		(1 << 9)
 
 struct dma_attrs {
 	unsigned long flags;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903131751.x2DHp8we054086>