e1000_driver/
lib.rs

1#![no_std]
2#![allow(unused)]
3
4extern crate alloc;
5
6#[macro_use]
7extern crate log;
8
9mod utils;
10pub mod e1000;
11pub mod pci;
12
13pub use volatile::Volatile;
14
15pub trait Ext {}
16
17pub fn add(left: usize, right: usize) -> usize {
18    left + right
19}
20
21#[cfg(test)]
22mod tests {
23    use super::*;
24
25    #[test]
26    fn it_works() {
27        let result = add(2, 2);
28        assert_eq!(result, 4);
29    }
30}