Skip to content

Commit

Permalink
Merge pull request #1255 from hermit-os/rm-com_cfg_raw
Browse files Browse the repository at this point in the history
fix(virtio/pci): remove `ComCfgRaw`
  • Loading branch information
mkroening authored Jun 6, 2024
2 parents c18cf04 + bab1a0b commit 8ac3796
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 @@ -571,33 +571,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 8ac3796

Please sign in to comment.