[−][src]Struct hermit::kernel::pci::PciAdapter
Fields
bus: u8device: u8vendor_id: u16device_id: u16class_id: u8subclass_id: u8programming_interface_id: u8base_addresses: Vec<PciBar>irq: u8Implementations
impl PciAdapter[src]
pub fn make_bus_master(&self)[src]
pub fn get_bar(&self, baridx: u8) -> Option<PciBar>[src]
Returns the bar at bar-register baridx.
pub fn memory_map_bar(
&self,
index: u8,
no_cache: bool
) -> Option<(VirtAddr, usize)>[src]
&self,
index: u8,
no_cache: bool
) -> Option<(VirtAddr, usize)>
Memory maps pci bar with specified index to identical location in virtual memory.
no_cache determines if we set the Cache Disable flag in the page-table-entry.
Returns (virtual-pointer, size) if successful, else None (if bar non-existent or IOSpace)
Trait Implementations
impl Clone for PciAdapter[src]
fn clone(&self) -> PciAdapter[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for PciAdapter[src]
impl Display for PciAdapter[src]
Auto Trait Implementations
impl RefUnwindSafe for PciAdapter
impl Send for PciAdapter
impl Sync for PciAdapter
impl Unpin for PciAdapter
impl UnwindSafe for PciAdapter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,