xref: /openbmc/qemu/rust/hw/char/pl011/src/lib.rs (revision b6f1244678bebaf7e2c775cfc66d452f95678ebf)
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 registers;
17 
18 pub use device::pl011_create;
19 
20 pub const TYPE_PL011: &::std::ffi::CStr = c"pl011";
21 pub const TYPE_PL011_LUMINARY: &::std::ffi::CStr = c"pl011_luminary";
22