xref: /dflybsd-src/sys/dev/drm/include/linux/dma-direction.h (revision 565c8854528532f0551a9cba6117a2491cffa1bb)
15847365eSFrançois Tigeot /*
28665870eSFrançois Tigeot  * Copyright (c) 2016-2019 François Tigeot
35847365eSFrançois Tigeot  * All rights reserved.
45847365eSFrançois Tigeot  *
55847365eSFrançois Tigeot  * Redistribution and use in source and binary forms, with or without
65847365eSFrançois Tigeot  * modification, are permitted provided that the following conditions
75847365eSFrançois Tigeot  * are met:
85847365eSFrançois Tigeot  * 1. Redistributions of source code must retain the above copyright
95847365eSFrançois Tigeot  *    notice unmodified, this list of conditions, and the following
105847365eSFrançois Tigeot  *    disclaimer.
115847365eSFrançois Tigeot  * 2. Redistributions in binary form must reproduce the above copyright
125847365eSFrançois Tigeot  *    notice, this list of conditions and the following disclaimer in the
135847365eSFrançois Tigeot  *    documentation and/or other materials provided with the distribution.
145847365eSFrançois Tigeot  *
155847365eSFrançois Tigeot  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
165847365eSFrançois Tigeot  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
175847365eSFrançois Tigeot  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
185847365eSFrançois Tigeot  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
195847365eSFrançois Tigeot  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
205847365eSFrançois Tigeot  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
215847365eSFrançois Tigeot  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
225847365eSFrançois Tigeot  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
235847365eSFrançois Tigeot  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
245847365eSFrançois Tigeot  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
255847365eSFrançois Tigeot  */
265847365eSFrançois Tigeot 
275847365eSFrançois Tigeot #ifndef _LINUX_DMA_DIRECTION_H_
285847365eSFrançois Tigeot #define _LINUX_DMA_DIRECTION_H_
295847365eSFrançois Tigeot 
305847365eSFrançois Tigeot enum dma_data_direction {
315847365eSFrançois Tigeot 	DMA_BIDIRECTIONAL = 0,
328665870eSFrançois Tigeot 	DMA_TO_DEVICE = 1,
33*565c8854SFrançois Tigeot 	DMA_NONE = 3,
345847365eSFrançois Tigeot };
355847365eSFrançois Tigeot 
365847365eSFrançois Tigeot #endif	/* _LINUX_DMA_DIRECTION_H_ */
37