Struct zircon_object::dev::Iommu[][src]

pub struct Iommu { /* fields omitted */ }

Iommu refers to DummyIommu in zircon.

A dummy implementation, do not take it serious.

Implementations

impl Iommu[src]

pub fn create() -> Arc<Self>[src]

Create a new IOMMU.

pub fn is_valid_bus_txn_id(&self) -> bool[src]

Check if a bus_txn_id is valid for this IOMMU.

pub fn minimum_contiguity(&self) -> usize[src]

Returns the number of bytes that Map() can guarantee, upon success, to find a contiguous address range for.

pub fn aspace_size(&self) -> usize[src]

The number of bytes in the address space (UINT64_MAX if 2^64).

pub fn map(
    &self,
    vmo: Arc<VmObject>,
    offset: usize,
    size: usize,
    perms: IommuPerms
) -> ZxResult<(DevVAddr, usize)>
[src]

Grant a device access to the range of pages given by [offset, offset + size) in vmo.

pub fn map_contiguous(
    &self,
    vmo: Arc<VmObject>,
    offset: usize,
    size: usize,
    perms: IommuPerms
) -> ZxResult<(DevVAddr, usize)>
[src]

Same as map, but with additional guarantee that this will never return a partial mapping. It will either return a single contiguous mapping or return a failure.

Trait Implementations

impl Debug for Iommu[src]

impl KernelObject for Iommu[src]

Auto Trait Implementations

impl !RefUnwindSafe for Iommu

impl Send for Iommu

impl Sync for Iommu

impl Unpin for Iommu

impl !UnwindSafe for Iommu

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.