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