The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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 | *** |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 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 | *** |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef _ASM_LINUX_DMA_MAPPING_H |
| 20 | #define _ASM_LINUX_DMA_MAPPING_H |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 21 | #include <linux/device.h> |
| 22 | #include <linux/err.h> |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 24 | enum dma_data_direction { |
| 25 | DMA_BIDIRECTIONAL = 0, |
| 26 | DMA_TO_DEVICE = 1, |
| 27 | DMA_FROM_DEVICE = 2, |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 29 | DMA_NONE = 3, |
| 30 | }; |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 31 | #define DMA_64BIT_MASK 0xffffffffffffffffULL |
| 32 | #define DMA_48BIT_MASK 0x0000ffffffffffffULL |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 34 | #define DMA_40BIT_MASK 0x000000ffffffffffULL |
| 35 | #define DMA_39BIT_MASK 0x0000007fffffffffULL |
| 36 | #define DMA_32BIT_MASK 0x00000000ffffffffULL |
| 37 | #define DMA_31BIT_MASK 0x000000007fffffffULL |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 39 | #define DMA_30BIT_MASK 0x000000003fffffffULL |
| 40 | #define DMA_29BIT_MASK 0x000000001fffffffULL |
| 41 | #define DMA_28BIT_MASK 0x000000000fffffffULL |
| 42 | #define DMA_24BIT_MASK 0x0000000000ffffffULL |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 44 | #include <asm/dma-mapping.h> |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 45 | #define dma_sync_single dma_sync_single_for_cpu |
| 46 | #define dma_sync_sg dma_sync_sg_for_cpu |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 47 | #define DMA_MEMORY_MAP 0x01 |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 49 | #define DMA_MEMORY_IO 0x02 |
| 50 | #define DMA_MEMORY_INCLUDES_CHILDREN 0x04 |
| 51 | #define DMA_MEMORY_EXCLUSIVE 0x08 |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 52 | #ifndef ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY |
Ben Cheng | 94a85f6 | 2012-03-06 15:45:52 -0800 | [diff] [blame^] | 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 54 | #endif |
| 55 | #endif |