Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / include / linux / dma-direction.h
bloba2fe4571bc9279a01fde8de76e0aa85bf3b5fbbd
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_DMA_DIRECTION_H
3 #define _LINUX_DMA_DIRECTION_H
5 enum dma_data_direction {
6 DMA_BIDIRECTIONAL = 0,
7 DMA_TO_DEVICE = 1,
8 DMA_FROM_DEVICE = 2,
9 DMA_NONE = 3,
12 static inline int valid_dma_direction(enum dma_data_direction dir)
14 return dir == DMA_BIDIRECTIONAL || dir == DMA_TO_DEVICE ||
15 dir == DMA_FROM_DEVICE;
18 #endif /* _LINUX_DMA_DIRECTION_H */