pub enum Register {
Show 26 variants
MagicValue = 0,
Version = 4,
DeviceId = 8,
VendorId = 12,
DeviceFeatures = 16,
DeviceFeaturesSel = 20,
DriverFeatures = 32,
DriverFeaturesSel = 36,
GuestPageSize = 40,
QueueSel = 48,
QueueNumMax = 52,
QueueNum = 56,
QueueAlign = 60,
QueuePfn = 64,
QueueReady = 68,
QueueNotify = 80,
InterruptStatus = 96,
InterruptAck = 100,
Status = 112,
QueueDescLow = 128,
QueueDescHigh = 132,
DriverDescLow = 144,
DriverDescHigh = 148,
DeviceDescLow = 160,
DeviceDescHigh = 164,
DeviceConfig = 256,
}Expand description
Register enum for Virtio devices
This enum represents the registers of the Virtio device. Each variant corresponds to a specific register offset. The offsets are defined in the Virtio specification. The register offsets are used to access the device’s configuration and status.
Variants§
MagicValue = 0
Version = 4
DeviceId = 8
VendorId = 12
DeviceFeatures = 16
DeviceFeaturesSel = 20
DriverFeatures = 32
DriverFeaturesSel = 36
GuestPageSize = 40
QueueSel = 48
QueueNumMax = 52
QueueNum = 56
QueueAlign = 60
QueuePfn = 64
QueueReady = 68
QueueNotify = 80
InterruptStatus = 96
InterruptAck = 100
Status = 112
QueueDescLow = 128
QueueDescHigh = 132
DriverDescLow = 144
DriverDescHigh = 148
DeviceDescLow = 160
DeviceDescHigh = 164
DeviceConfig = 256
Implementations§
Trait Implementations§
impl Copy for Register
impl Eq for Register
impl StructuralPartialEq for Register
Auto Trait Implementations§
impl Freeze for Register
impl RefUnwindSafe for Register
impl Send for Register
impl Sync for Register
impl Unpin for Register
impl UnwindSafe for Register
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.