SchOS/kernel/drivers/net
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
..
e1000 net: an RTL8139 driver, and the e1000 stops refusing the PCIe parts 2026-09-24 15:30:38 +02:00
r8169 net: a native RTL8169/8111 driver, because phylib is not a set of leaf calls 2026-09-24 15:13:27 +02:00
rtl8139 rtl8139: let go of the device when asked 2026-10-22 09:23:34 +02:00