pub struct IOConfigAccess;
Available on x86 or x86-64 only.
Expand description
I/O based configuration access method on x86/x86-64.
This method only supports the 256 bits of I/O space defined by the PCI Local Bus specification, and it has no concept of segment groups, which must always be zero.
Trait Implementations§
Source§impl Clone for IOConfigAccess
impl Clone for IOConfigAccess
Source§fn clone(&self) -> IOConfigAccess
fn clone(&self) -> IOConfigAccess
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 ConfigAccess for IOConfigAccess
impl ConfigAccess for IOConfigAccess
Source§fn get_register(&self, selector: ConfigSelector, register: u16) -> u32
fn get_register(&self, selector: ConfigSelector, register: u16) -> u32
Get a specific 32-bit register in PCI configuration space.
Source§fn set_register(&self, selector: ConfigSelector, register: u16, value: u32)
fn set_register(&self, selector: ConfigSelector, register: u16, value: u32)
Set a specific 32-bit register in PCI configuration space.
Source§fn get_fixed_register<T: FixedConfigRegister>(
&self,
selector: ConfigSelector,
) -> T
fn get_fixed_register<T: FixedConfigRegister>( &self, selector: ConfigSelector, ) -> T
Get a register in PCI configuration space with an offset defined by the output
type.
Source§fn set_fixed_register<T: FixedConfigRegister>(
&self,
selector: ConfigSelector,
value: T,
)
fn set_fixed_register<T: FixedConfigRegister>( &self, selector: ConfigSelector, value: T, )
Set a register in PCI configuration space with an offset defined by the input
type.
Source§impl Debug for IOConfigAccess
impl Debug for IOConfigAccess
Source§impl Default for IOConfigAccess
impl Default for IOConfigAccess
Source§fn default() -> IOConfigAccess
fn default() -> IOConfigAccess
Returns the “default value” for a type. Read more
Source§impl PartialEq for IOConfigAccess
impl PartialEq for IOConfigAccess
impl Copy for IOConfigAccess
impl Eq for IOConfigAccess
impl StructuralPartialEq for IOConfigAccess
Auto Trait Implementations§
impl Freeze for IOConfigAccess
impl RefUnwindSafe for IOConfigAccess
impl Send for IOConfigAccess
impl Sync for IOConfigAccess
impl Unpin for IOConfigAccess
impl UnwindSafe for IOConfigAccess
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