Skip to content
Snippets Groups Projects
Commit 4070a869 authored by Stefan Lankes's avatar Stefan Lankes
Browse files

remove obsolete files

parent 1b740845
No related branches found
No related tags found
No related merge requests found
use alloc::rc::Rc;
use core::cell::RefCell;
use hermit_sync::InterruptTicketMutex;
// Currently, onbly a dummy implementation
pub struct VirtioNetDriver;
impl VirtioNetDriver {
pub fn init_vqs(&mut self) {}
pub fn set_polling_mode(&mut self, value: bool) {
//(self.vqueues.as_deref_mut().unwrap())[VIRTIO_NET_RX_QUEUE].set_polling_mode(value);
}
pub fn get_mac_address(&self) -> [u8; 6] {
[0; 6]
}
pub fn get_mtu(&self) -> u16 {
1500 //self.device_cfg.mtu
}
pub fn get_tx_buffer(&mut self, len: usize) -> Result<(*mut u8, usize), ()> {
Err(())
}
pub fn send_tx_buffer(&mut self, index: usize, len: usize) -> Result<(), ()> {
Err(())
}
pub fn has_packet(&self) -> bool {
false
}
pub fn receive_rx_buffer(&self) -> Result<&'static [u8], ()> {
Err(())
}
pub fn rx_buffer_consumed(&mut self) {}
}
pub fn get_network_driver() -> Option<&'static InterruptTicketMutex<VirtioNetDriver>> {
None
}
use crate::scheduler::CoreId;
pub fn set_oneshot_timer(wakeup_time: Option<u64>) {
// TODO
debug!("set_oneshot_timer stub");
}
pub fn wakeup_core(core_to_wakeup: CoreId) {
// TODO
debug!("wakeup_core stub");
}
#[no_mangle]
pub extern "C" fn eoi() {}
#[no_mangle]
pub extern "C" fn finish_task_switch() {}
#[no_mangle]
pub extern "C" fn getcontext() {}
#[no_mangle]
pub extern "C" fn get_current_stack() {}
#[no_mangle]
pub extern "C" fn makecontext() {}
#[no_mangle]
pub extern "C" fn setcontext() {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment