Struct kernel::network::intel8254x::Intel8254x [] [src]

pub struct Intel8254x {
    pub pci: PCIConfig,
    pub base: usize,
    pub memory_mapped: bool,
    pub irq: u8,
    pub resources: Vec<*mut NetworkResource>,
    pub inbound: Queue<Vec<u8>>,
    pub outbound: Queue<Vec<u8>>,
}

Fields

pci
base
memory_mapped
irq
resources
inbound
outbound

Methods

impl Intel8254x

unsafe fn receive_inbound(&mut self)

unsafe fn send_outbound(&mut self)

unsafe fn read(&self, register: u32) -> u32

unsafe fn write(&self, register: u32, data: u32) -> u32

unsafe fn flag(&self, register: u32, flag: u32, value: bool)

unsafe fn init(&mut self)

Trait Implementations

impl KScheme for Intel8254x

fn scheme(&self) -> &str

fn open(&mut self, _: &URL) -> Option<Box<Resource>>

fn on_irq(&mut self, irq: u8)

fn on_poll(&mut self)

impl NetworkScheme for Intel8254x

fn add(&mut self, resource: *mut NetworkResource)

fn remove(&mut self, resource: *mut NetworkResource)

fn sync(&mut self)