Struct kernel::drivers::pciconfig::PCIConfig [] [src]

pub struct PCIConfig {
    // some fields omitted
}

A PCI configuration

Methods

impl PCIConfig

fn new(bus: u8, slot: u8, func: u8) -> Self

Create a new configuration

unsafe fn read(&mut self, offset: u8) -> u32

Read

unsafe fn write(&mut self, offset: u8, value: u32)

Write

unsafe fn flag(&mut self, offset: u8, flag: u32, toggle: bool)

Trait Implementations

Derived Implementations

impl Clone for PCIConfig

fn clone(&self) -> PCIConfig

fn clone_from(&mut self, source: &Self)

impl Copy for PCIConfig