• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _ASM_LINUX_DMA_MAPPING_H
20 #define _ASM_LINUX_DMA_MAPPING_H
21 #include <linux/device.h>
22 #include <linux/err.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 enum dma_data_direction {
25  DMA_BIDIRECTIONAL = 0,
26  DMA_TO_DEVICE = 1,
27  DMA_FROM_DEVICE = 2,
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29  DMA_NONE = 3,
30 };
31 #define DMA_64BIT_MASK 0xffffffffffffffffULL
32 #define DMA_48BIT_MASK 0x0000ffffffffffffULL
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define DMA_40BIT_MASK 0x000000ffffffffffULL
35 #define DMA_39BIT_MASK 0x0000007fffffffffULL
36 #define DMA_32BIT_MASK 0x00000000ffffffffULL
37 #define DMA_31BIT_MASK 0x000000007fffffffULL
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define DMA_30BIT_MASK 0x000000003fffffffULL
40 #define DMA_29BIT_MASK 0x000000001fffffffULL
41 #define DMA_28BIT_MASK 0x000000000fffffffULL
42 #define DMA_24BIT_MASK 0x0000000000ffffffULL
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #include <asm/dma-mapping.h>
45 #define dma_sync_single dma_sync_single_for_cpu
46 #define dma_sync_sg dma_sync_sg_for_cpu
47 #define DMA_MEMORY_MAP 0x01
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define DMA_MEMORY_IO 0x02
50 #define DMA_MEMORY_INCLUDES_CHILDREN 0x04
51 #define DMA_MEMORY_EXCLUSIVE 0x08
52 #ifndef ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 #endif
55 #endif
56