pub struct E1000Driver { /* private fields */ }Expand description
E1000 Driver State
Implementations§
Source§impl E1000Driver
impl E1000Driver
Sourcepub fn new(mmio_base: usize) -> Result<Self, KernelError>
pub fn new(mmio_base: usize) -> Result<Self, KernelError>
Create a new E1000 driver instance
Sourcepub fn mac_address(&self) -> MacAddress
pub fn mac_address(&self) -> MacAddress
Get MAC address
Trait Implementations§
Source§impl NetworkDevice for E1000Driver
impl NetworkDevice for E1000Driver
Source§fn mac_address(&self) -> MacAddress
fn mac_address(&self) -> MacAddress
Get device MAC address
Source§fn capabilities(&self) -> DeviceCapabilities
fn capabilities(&self) -> DeviceCapabilities
Get device capabilities
Source§fn state(&self) -> DeviceState
fn state(&self) -> DeviceState
Get device state
Source§fn set_state(&mut self, state: DeviceState) -> Result<(), KernelError>
fn set_state(&mut self, state: DeviceState) -> Result<(), KernelError>
Set device state
Source§fn statistics(&self) -> DeviceStatistics
fn statistics(&self) -> DeviceStatistics
Get device statistics
Source§fn transmit(&mut self, packet: &Packet) -> Result<(), KernelError>
fn transmit(&mut self, packet: &Packet) -> Result<(), KernelError>
Transmit a packet
Source§fn receive(&mut self) -> Result<Option<Packet>, KernelError>
fn receive(&mut self) -> Result<Option<Packet>, KernelError>
Receive a packet (non-blocking)