Struct pci_driver::config::PciStatus
source · [−]pub struct PciStatus<'a> { /* private fields */ }Implementations
sourceimpl<'a> PciStatus<'a>
impl<'a> PciStatus<'a>
pub fn immediate_readiness(&self) -> PciBitReadOnly<'a, u16>
pub fn interrupt_status(&self) -> PciBitReadOnly<'a, u16>
pub fn capabilities_list(&self) -> PciBitReadOnly<'a, u16>
pub fn mhz_66_capable(&self) -> PciBitReadOnly<'a, u16>
pub fn fast_back_to_back_transactions_capable(&self) -> PciBitReadOnly<'a, u16>
pub fn master_data_parity_error(&self) -> PciBitReadClear<'a, u16>
pub fn devsel_timing(&self) -> PciBitsReadOnly<'a, u16, u8>
pub fn signaled_target_abort(&self) -> PciBitReadClear<'a, u16>
pub fn received_target_abort(&self) -> PciBitReadClear<'a, u16>
pub fn received_master_abort(&self) -> PciBitReadClear<'a, u16>
pub fn signaled_system_error(&self) -> PciBitReadClear<'a, u16>
pub fn detected_parity_error(&self) -> PciBitReadClear<'a, u16>
Trait Implementations
sourceimpl<'a> AsPciSubregion<'a> for PciStatus<'a>
impl<'a> AsPciSubregion<'a> for PciStatus<'a>
sourcefn as_subregion(&self) -> PciSubregion<'a>
fn as_subregion(&self) -> PciSubregion<'a>
Returns a PciSubregion corresponding to self.
sourcefn subregion(&self, range: impl RangeBounds<u64>) -> PciSubregion<'a>
fn subregion(&self, range: impl RangeBounds<u64>) -> PciSubregion<'a>
Returns a PciSubregion corresponding to a range of self.
sourceimpl<'a> BackedByPciSubregion<'a> for PciStatus<'a>
impl<'a> BackedByPciSubregion<'a> for PciStatus<'a>
sourcefn backed_by(as_subregion: impl AsPciSubregion<'a>) -> Self
fn backed_by(as_subregion: impl AsPciSubregion<'a>) -> Self
Does not check whether the subregion is big enough. If it isn’t, accesses may later fail.
sourceimpl PciBitFieldReadable for PciStatus<'_>
impl PciBitFieldReadable for PciStatus<'_>
sourceimpl PciBitFieldWriteable for PciStatus<'_>
impl PciBitFieldWriteable for PciStatus<'_>
impl<'a> Copy for PciStatus<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for PciStatus<'a>
impl<'a> Send for PciStatus<'a>
impl<'a> Sync for PciStatus<'a>
impl<'a> Unpin for PciStatus<'a>
impl<'a> !UnwindSafe for PciStatus<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'a, T> PciRegion for Twhere
T: AsPciSubregion<'a> + Debug + Send + Sync,
impl<'a, T> PciRegion for Twhere
T: AsPciSubregion<'a> + Debug + Send + Sync,
sourcefn permissions(&self) -> Permissions
fn permissions(&self) -> Permissions
Whether the region may be read, written, or both.
sourcefn as_ptr(&self) -> Option<*const u8>
fn as_ptr(&self) -> Option<*const u8>
Returns a const pointer to the beginning of the PciRegion. Read more
sourcefn as_mut_ptr(&self) -> Option<*mut u8>
fn as_mut_ptr(&self) -> Option<*mut u8>
Returns a mut pointer to the beginning of the PciRegion. Read more
sourcefn read_bytes(&self, offset: u64, buffer: &mut [u8]) -> Result<(), Error>
fn read_bytes(&self, offset: u64, buffer: &mut [u8]) -> Result<(), Error>
Read from a contiguous range of the region into a byte buffer. Read more