Struct pci::PciLocation
source · pub struct PciLocation { /* private fields */ }
Expand description
The bus, slot, and function number of a given PCI device. This offers methods for reading and writing the PCI config space.
Implementations§
source§impl PciLocation
impl PciLocation
pub fn bus(&self) -> u8
pub fn slot(&self) -> u8
pub fn function(&self) -> u8
sourcepub fn pci_set_command_bus_master_bit(&self)
pub fn pci_set_command_bus_master_bit(&self)
Sets the PCI device’s bit 3 in the command portion, which is apparently needed to activate DMA (??)
sourcepub fn pci_set_intx_disable_bit(&self, bit: bool)
pub fn pci_set_intx_disable_bit(&self, bit: bool)
Sets the PCI device’s command bit 10 to disable legacy interrupts
Trait Implementations§
source§impl Clone for PciLocation
impl Clone for PciLocation
source§fn clone(&self) -> PciLocation
fn clone(&self) -> PciLocation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PciLocation
impl Debug for PciLocation
source§impl Display for PciLocation
impl Display for PciLocation
source§impl Hash for PciLocation
impl Hash for PciLocation
source§impl PartialEq<PciLocation> for PciLocation
impl PartialEq<PciLocation> for PciLocation
source§fn eq(&self, other: &PciLocation) -> bool
fn eq(&self, other: &PciLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PciLocation
impl Eq for PciLocation
impl StructuralEq for PciLocation
impl StructuralPartialEq for PciLocation
Auto Trait Implementations§
impl RefUnwindSafe for PciLocation
impl Send for PciLocation
impl Sync for PciLocation
impl Unpin for PciLocation
impl UnwindSafe for PciLocation
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