1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//! Uart device driver.

mod buffered;
mod uart_16550;

pub use buffered::BufferedUart;
pub use uart_16550::Uart16550Mmio;

#[cfg(target_arch = "x86_64")]
pub use uart_16550::Uart16550Pmio;

#[cfg(target_arch = "aarch64")]
mod uart_pl011;

#[cfg(target_arch = "aarch64")]
pub use uart_pl011::Pl011Uart;

#[cfg(feature = "allwinner")]
mod uart_allwinner;

#[cfg(feature = "allwinner")]
pub use uart_allwinner::UartAllwinner;

#[cfg(feature = "fu740")]
mod uart_u740;

#[cfg(feature = "fu740")]
pub use uart_u740::UartU740Mmio;