1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_DMA_DIRECTION_H
3 #define _LINUX_DMA_DIRECTION_H
5 enum dma_data_direction
{
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 */