From e5214bb2ebdfa30119957fafeab4099634f3fc7f Mon Sep 17 00:00:00 2001 From: jinlong Date: Thu, 26 Feb 2026 19:22:54 +0800 Subject: [PATCH] feat(transport): add FileSystem device type and expose queue module - Add`FileSystem`variant to`DeviceType`enum with value 26 - Update`From`implementation to handle new device type - Change`queue`module from private to public with documentation comment Signed-off-by: jinlong --- src/lib.rs | 3 ++- src/transport/mod.rs | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index f2f2f12..323298a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -51,7 +51,8 @@ extern crate alloc; pub mod device; mod hal; -mod queue; +/// Virtqueue implementation used by virtio device drivers. +pub mod queue; pub mod transport; mod volatile; diff --git a/src/transport/mod.rs b/src/transport/mod.rs index f6e9eae..b080e4e 100644 --- a/src/transport/mod.rs +++ b/src/transport/mod.rs @@ -160,6 +160,7 @@ pub enum DeviceType { Pstore = 22, IOMMU = 23, Memory = 24, + FileSystem = 26, } impl From for DeviceType { @@ -187,6 +188,7 @@ impl From for DeviceType { 22 => DeviceType::Pstore, 23 => DeviceType::IOMMU, 24 => DeviceType::Memory, + 26 => DeviceType::FileSystem, _ => DeviceType::Invalid, } }