pub struct MmioTransport { /* private fields */ }
Expand description

MMIO Device Register Interface.

Ref: 4.2.2 MMIO Device Register Layout and 4.2.4 Legacy interface

Implementations

Constructs a new VirtIO MMIO transport, or returns an error if the header reports an unsupported version.

Safety

header must point to a properly aligned valid VirtIO MMIO region, which must remain valid for the lifetime of the transport that is returned.

Gets the version of the VirtIO MMIO transport.

Gets the vendor ID.

Trait Implementations

Formats the value using the given formatter. Read more
Gets the device type.
Reads device features.
Writes device features.
Gets the max size of queue.
Notifies the given queue on the device.
Sets the device status.
Sets the guest page size.
Sets up the given queue.
Returns whether the queue is in use, i.e. has a nonzero PFN or is marked as ready.
Acknowledges an interrupt. Read more
Gets the pointer to the config space.
Begins initializing the device. Read more
Finishes initializing the device.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.