1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
mod axi_dma;

#[cfg(feature = "async")]
mod axi_dma_async;

mod dma_buffer;
pub use axi_dma::AxiDma;

#[cfg(feature = "async")]
pub use axi_dma_async::AxiDmaAsync;

pub use dma_buffer::DmaBuffer;

#[cfg(xilinx_dma_has_dmb)]
mod dmb;
#[cfg(xilinx_dma_has_dmb)]
pub use dmb::dmb;

#[cfg(not(xilinx_dma_has_dmb))]
#[inline(always)]
pub fn dmb() {
    // DMB is ARM-only, so we use a nop in other archs
}