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
This commit is contained in:
parent
575d275104
commit
24e1a96ba7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user