svn commit: r345912 - stable/12/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Fri Apr 5 11:08:51 UTC 2019
Author: hselasky
Date: Fri Apr 5 11:08:50 2019
New Revision: 345912
URL: https://svnweb.freebsd.org/changeset/base/345912
Log:
MFC r345092:
Properly define the DMA attribute values in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0 at gmail.com>
Sponsored by: Limelight Networks
Sponsored by: Mellanox Technologies
Modified:
stable/12/sys/compat/linuxkpi/common/include/linux/dma-attrs.h
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/compat/linuxkpi/common/include/linux/dma-attrs.h
==============================================================================
--- stable/12/sys/compat/linuxkpi/common/include/linux/dma-attrs.h Fri Apr 5 11:08:35 2019 (r345911)
+++ stable/12/sys/compat/linuxkpi/common/include/linux/dma-attrs.h Fri Apr 5 11:08:50 2019 (r345912)
@@ -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;
More information about the svn-src-stable-12
mailing list