Commit fc32fae9 authored by MLA98's avatar MLA98

Update device.rs

parent dfe96676
......@@ -7,8 +7,6 @@ use syscall::flag::O_NONBLOCK;
use syscall::io::{Dma, Mmio, Io, ReadOnly};
use syscall::scheme::SchemeMut;
#[repr(packed)]
mod utils {
use std::fs::File;
use std::io::{Result, Read, Write};
......@@ -20,6 +18,9 @@ mod utils {
Ok(())
}
}
#[repr(packed)]
struct Regs {
mac: [Mmio<u32>; 2],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment