xref: /qemu/rust/hw/char/pl011/src/lib.rs (revision c5f122fdcc280a82e7c5f31de890f985aa7ba773)
1 // Copyright 2024, Linaro Limited
2 // Author(s): Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
3 // SPDX-License-Identifier: GPL-2.0-or-later
4 
5 //! PL011 QEMU Device Model
6 //!
7 //! This library implements a device model for the PrimeCell® UART (PL011)
8 //! device in QEMU.
9 //!
10 //! # Library crate
11 //!
12 //! See [`PL011State`](crate::device::PL011State) for the device model type and
13 //! the [`registers`] module for register types.
14 
15 mod device;
16 mod device_class;
17 mod registers;
18 
19 pub use device::pl011_create;
20 
21 pub const TYPE_PL011: &::std::ffi::CStr = c"pl011";
22 pub const TYPE_PL011_LUMINARY: &::std::ffi::CStr = c"pl011_luminary";
23