pub struct PcieController {
pub bar_allocator: Option<SimpleBarAllocator>,
/* private fields */
}Fields§
§bar_allocator: Option<SimpleBarAllocator>Implementations§
Source§impl PcieController
impl PcieController
pub fn new(chip: impl Interface) -> PcieController
pub fn typed_ref<T>(&self) -> Option<&T>where
T: Interface,
pub fn typed_mut<T>(&mut self) -> Option<&mut T>where
T: Interface,
pub fn config_access(&mut self, address: PciAddress) -> ConfigAccess
pub fn set_mem32(&mut self, space: PciMem32, perfetchable: bool)
pub fn set_mem64(&mut self, space: PciMem64, perfetchable: bool)
Trait Implementations§
Source§impl ConfigRegionAccess for PcieController
impl ConfigRegionAccess for PcieController
Source§impl DriverGeneric for PcieController
impl DriverGeneric for PcieController
fn open(&mut self) -> Result<(), KError>
fn close(&mut self) -> Result<(), KError>
Source§fn raw_any(&self) -> Option<&(dyn Any + 'static)>
fn raw_any(&self) -> Option<&(dyn Any + 'static)>
Subtype casting support, returns subtype as
&dyn AnySource§fn raw_any_mut(&mut self) -> Option<&mut (dyn Any + 'static)>
fn raw_any_mut(&mut self) -> Option<&mut (dyn Any + 'static)>
Subtype casting support, returns subtype as
&mut dyn AnyAuto Trait Implementations§
impl Freeze for PcieController
impl !RefUnwindSafe for PcieController
impl Send for PcieController
impl Sync for PcieController
impl Unpin for PcieController
impl !UnwindSafe for PcieController
Blanket Implementations§
Source§impl<T> Background for T
impl<T> Background for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more