SchOS/kernel/drivers/net/rtl8139
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nexoniarz f1798e7443 rtl8139: let go of the device when asked
The kernel's rtl8139 driver had no release hook, so /dev/pci refused
every request for the card ("the kernel would not release it") and a
hosted 8139too could never run on a machine where this driver probed
first.

release() follows e1000_release(): silence the chip before unhooking the
interrupt, reset it and clear bus mastering so it stops writing into its
buffers, take the interface out of the stack, then give the DMA buffers
back.

Tested in QEMU: ldlsd takes the card from the kernel, 8139too probes it,
DHCP binds ldls0, and ping 10.9.0.2 gets 3 of 3 replies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HH7xukt4aaiGj1nQEAoQf1
2026-10-22 09:23:34 +02:00
..
rtl8139.c rtl8139: let go of the device when asked 2026-10-22 09:23:34 +02:00