Skip to content

Commit

Permalink
fix(virtio/pci): remove ComCfgRaw
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Jun 6, 2024
1 parent 0bb0186 commit bab1a0b
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/drivers/virtio/transport/pci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bab1a0b

Please sign in to comment.