pub struct RootComplex { /* private fields */ }Implementations§
Source§impl RootComplex
impl RootComplex
Sourcepub fn new(controller: PcieController) -> Self
pub fn new(controller: PcieController) -> Self
Create a RootComplex with optional pre-configured BAR allocation spaces.
If space32/space64 provided, an internal SimpleBarAllocator will be created.
pub fn new_generic(mmio_base: NonNull<u8>) -> Self
pub fn set_space32(&mut self, space: PciSpace32)
pub fn set_space64(&mut self, space: PciSpace64)
Sourcepub fn enumerate(
&mut self,
range: Option<Range<usize>>,
) -> impl Iterator<Item = Endpoint> + '_
pub fn enumerate( &mut self, range: Option<Range<usize>>, ) -> impl Iterator<Item = Endpoint> + '_
enumerate all devices and allocate bars.
Sourcepub fn enumerate_keep_bar(
&mut self,
range: Option<Range<usize>>,
) -> PciIterator<'_>
pub fn enumerate_keep_bar( &mut self, range: Option<Range<usize>>, ) -> PciIterator<'_>
enumerate all devices without modify bar.
Trait Implementations§
Source§impl ConfigRegionAccess for &mut RootComplex
impl ConfigRegionAccess for &mut RootComplex
Source§impl ConfigRegionAccess for RootComplex
impl ConfigRegionAccess for RootComplex
Auto Trait Implementations§
impl Freeze for RootComplex
impl !RefUnwindSafe for RootComplex
impl Send for RootComplex
impl Sync for RootComplex
impl Unpin for RootComplex
impl !UnwindSafe for RootComplex
Blanket Implementations§
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