From bab1a0b20cf296aafc918373990d551fabe76f78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Thu, 6 Jun 2024 12:42:23 +0200 Subject: [PATCH] fix(virtio/pci): remove `ComCfgRaw` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- src/drivers/virtio/transport/pci.rs | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/drivers/virtio/transport/pci.rs b/src/drivers/virtio/transport/pci.rs index bcccb2900f..7d285e6155 100644 --- a/src/drivers/virtio/transport/pci.rs +++ b/src/drivers/virtio/transport/pci.rs @@ -570,33 +570,6 @@ impl ComCfg { } } -/// Common configuration structure of Virtio PCI devices. -/// See Virtio specification v1.1 - 4.1.43 -/// -/// Fields read-write-rules in source code refer to driver rights. -#[repr(C)] -struct ComCfgRaw { - // About whole device - device_feature_select: u32, // read-write - device_feature: u32, // read-only for driver - driver_feature_select: u32, // read-write - driver_feature: u32, // read-write - config_msix_vector: u16, // read-write - num_queues: u16, // read-only for driver - device_status: DeviceStatus, // read-write - config_generation: u8, // read-only for driver - - // About a specific virtqueue - queue_select: u16, // read-write - queue_size: u16, // read-write - queue_msix_vector: u16, // read-write - queue_enable: u16, // read-write - queue_notify_off: u16, // read-only for driver. Offset of the notification area. - queue_desc: u64, // read-write - queue_driver: u64, // read-write - queue_device: u64, // read-write -} - /// Notification Structure to handle virtqueue notification settings. /// See Virtio specification v1.1 - 4.1.4.4 pub struct NotifCfg {