From b865810340f1b264b407137c4e69ad232194cc5e Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Wed, 25 Mar 2020 13:54:50 -0700 Subject: 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 Commit-Queue: Daniel Verkamp Reviewed-by: Dylan Reid --- devices/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'devices/src/lib.rs') 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}; -- cgit 1.4.1