Skip to content

Commit 7246792

Browse files
committed
feat(rtl8139): Use MMIO instead of port IO
This lets the driver be used on all architectures, not just x86_64. While at it, drop the udelay requirement, it boils down to a spin loop and we already have a spin loop here. Signed-off-by: Jens Reidel <[email protected]>
1 parent b33fcf4 commit 7246792

File tree

4 files changed

+426
-187
lines changed

4 files changed

+426
-187
lines changed

Cargo.lock

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ mmap = ["mman"] # Deprecated in favor of mman
6464
newlib = []
6565
nostd = []
6666
pci = ["virtio?/pci"]
67-
rtl8139 = ["net", "pci"]
67+
rtl8139 = ["net", "pci", "volatile/derive", "endian-num"]
6868
semihosting = ["dep:semihosting"]
6969
shell = ["simple-shell"]
7070
smp = []
@@ -121,6 +121,7 @@ build-time = "0.1.3"
121121
cfg-if = "1"
122122
crossbeam-utils = { version = "0.8", default-features = false }
123123
embedded-io = { version = "0.7", features = ["alloc"] }
124+
endian-num = { version = "0.2", optional = true, features = ["linux-types"] }
124125
enum_dispatch = "0.3"
125126
fdt = { version = "0.1", features = ["pretty-printing"] }
126127
free-list = "0.3"

0 commit comments

Comments
 (0)