diff options
author | Daniel Verkamp <dverkamp@chromium.org> | 2020-03-25 13:54:50 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-04-23 07:17:58 +0000 |
commit | b865810340f1b264b407137c4e69ad232194cc5e (patch) | |
tree | 49bb7d6e14d315a21fdd5c8e1365ddfebf3e5b80 /devices/src/lib.rs | |
parent | e538d5216fe1ec0f9755e1550cd7e67304653982 (diff) | |
download | crosvm-b865810340f1b264b407137c4e69ad232194cc5e.tar crosvm-b865810340f1b264b407137c4e69ad232194cc5e.tar.gz crosvm-b865810340f1b264b407137c4e69ad232194cc5e.tar.bz2 crosvm-b865810340f1b264b407137c4e69ad232194cc5e.tar.lz crosvm-b865810340f1b264b407137c4e69ad232194cc5e.tar.xz crosvm-b865810340f1b264b407137c4e69ad232194cc5e.tar.zst crosvm-b865810340f1b264b407137c4e69ad232194cc5e.zip |
devices: add SerialDevice trait
This will be used to allow generic code to create serial devices as well as virtio-console devices. Also remove the new_in_out, new_out, and new_sink constructors for Serial and Console, since they are not used anywhere. BUG=chromium:1059924 TEST=cargo build Change-Id: I76da343e347aed36dabd3aa0541acf24c64fe122 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2127321 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Dylan Reid <dgreid@chromium.org>
Diffstat (limited to 'devices/src/lib.rs')
-rw-r--r-- | devices/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/devices/src/lib.rs b/devices/src/lib.rs index 75c27a8..be2bf9c 100644 --- a/devices/src/lib.rs +++ b/devices/src/lib.rs @@ -17,6 +17,7 @@ mod proxy; mod register_space; pub mod acpi; mod serial; +mod serial_device; pub mod split_irqchip_common; pub mod usb; mod utils; @@ -39,6 +40,7 @@ pub use self::pl030::Pl030; pub use self::proxy::Error as ProxyError; pub use self::proxy::ProxyDevice; pub use self::serial::Serial; +pub use self::serial_device::SerialDevice; pub use self::usb::host_backend::host_backend_device_provider::HostBackendDeviceProvider; pub use self::usb::xhci::xhci_controller::XhciController; pub use self::vfio::{VfioContainer, VfioDevice}; |