Struct VirtioPciCommonCfg

Source
#[repr(C)]
pub struct VirtioPciCommonCfg {
Show 18 fields pub device_feature_select: Volatile<u32, ReadWrite>, pub device_feature: Volatile<u32, Read>, pub driver_feature_select: Volatile<u32, ReadWrite>, pub driver_feature: Volatile<u32, ReadWrite>, pub config_msix_vector: Volatile<u16, ReadWrite>, pub num_queues: Volatile<u16, ReadWrite>, pub device_status: Volatile<u8, ReadWrite>, pub config_generation: Volatile<u8, Read>, pub queue_select: Volatile<u16, ReadWrite>, pub queue_size: Volatile<u16, ReadWrite>, pub queue_msix_vector: Volatile<u16, ReadWrite>, pub queue_enable: Volatile<u16, ReadWrite>, pub queue_notify_off: Volatile<u16, Read>, pub queue_descriptor: Volatile<[u32; 2], ReadWrite>, pub queue_driver: Volatile<[u32; 2], ReadWrite>, pub queue_device: Volatile<[u32; 2], ReadWrite>, pub queue_notify_data: Volatile<u16, Read>, pub queue_reset: Volatile<u16, ReadWrite>,
}

Fields§

§device_feature_select: Volatile<u32, ReadWrite>§device_feature: Volatile<u32, Read>§driver_feature_select: Volatile<u32, ReadWrite>§driver_feature: Volatile<u32, ReadWrite>§config_msix_vector: Volatile<u16, ReadWrite>§num_queues: Volatile<u16, ReadWrite>§device_status: Volatile<u8, ReadWrite>§config_generation: Volatile<u8, Read>§queue_select: Volatile<u16, ReadWrite>§queue_size: Volatile<u16, ReadWrite>§queue_msix_vector: Volatile<u16, ReadWrite>§queue_enable: Volatile<u16, ReadWrite>§queue_notify_off: Volatile<u16, Read>§queue_descriptor: Volatile<[u32; 2], ReadWrite>§queue_driver: Volatile<[u32; 2], ReadWrite>§queue_device: Volatile<[u32; 2], ReadWrite>§queue_notify_data: Volatile<u16, Read>§queue_reset: Volatile<u16, ReadWrite>

Implementations§

Source§

impl VirtioPciCommonCfg

Source

pub fn reset(&mut self)

Source

pub fn set_status_flag(&mut self, flag: StatusFlags)

Source

pub fn is_status_flag_set(&self, flag: StatusFlags) -> bool

Source

pub fn select_queue(&mut self, queue: u16)

Source

pub fn set_queue_size(&mut self, size: u16)

Source

pub fn set_queue_msix_vector(&mut self, vector: u16)

Source

pub fn set_queue_descriptor(&mut self, physical: u64)

Source

pub fn set_queue_driver(&mut self, physical: u64)

Source

pub fn set_queue_device(&mut self, physical: u64)

Source

pub fn mark_queue_ready(&mut self)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.