xref: /qemu/rust/hw/char/pl011/src/lib.rs (revision 5983a20a0bca7d54846abbb36fb59c7d9b1f226b)
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 use qemu_api::c_str;
16 
17 mod device;
18 mod device_class;
19 mod registers;
20 
21 pub use device::pl011_create;
22 
23 pub const TYPE_PL011: &::std::ffi::CStr = c_str!("pl011");
24 pub const TYPE_PL011_LUMINARY: &::std::ffi::CStr = c_str!("pl011_luminary");
25