roadmap PARTIAL

494. A driver for the network card a PC actually has

(Number provisional until the merge queue lands it.) Promoted from the proposal a-driver-for-the-network-card-a-pc-actually-has, filed 2026-09-19, on calef's instruction of 2026-09-20 to give every proposal on main a number. The text below is the proposal's own, unedited, by the promotion rule. Written by milestone 198 (a package manager, and the trivial install)'s rungs lane (milestone/198-rungs-to-a-trivial-install) for rung 3 of the trivial install DECISIONS §157 (a trivial install is a web page,) defines. Packages over the internet need a network card, and the only one nife can drive is virtio-net, which no physical machine has.

The driver is tested under QEMU. The bench half needs xenon powered, the same attended boot milestone 261 needs.

What was built, 2026-10-04

Exit criterion 1 is met. Criterion 2 is open: QEMU rehearses the driver, but the cabled run on xenon needs a person and a cable, and its result goes in the Results table of the I219 cabled-run runbook. The confinement finding: notes/e1000e.md.

What was built, 2026-10-05

The I219's PHY half; QEMU never takes the PCH path, so xenon is the test.

Bench runbook: one boot on xenon (calef)

The runbook, with the Results table, is the I219 cabled run. Success ends network-bench: verdict LEASED-AND-MEASURED. It is step 1 of the xenon evening calef ruled on 2026-10-24 (UTC), beside milestone 260's network boot and 801's jig leg: notes/xenon-bench-2026-10-18.md.

Which card xenon has, and the tree disagreed with itself

xenon's network card is an Intel I219-LM. Dell's specification sheet for the OptiPlex 7050 says "Integrated Intel® i219-LM Ethernet LAN 10/100/1000" (read on 2026-09-19 from i.dell.com/.../OptiPlex-7050-Towers-Technical-Specifications.pdf). The firmware's System Information page names no model (notes/xenon-firmware.md).

Two records in the tree said otherwise, citing nothing: milestone 260 (boot xenon over the network)'s BUGS and script/netboot-rehearsal's header called it "a Broadcom LOM". Both were corrected on 2026-10-04 (UTC) by #1641.

Settled by xenon itself, 2026-10-04 (UTC). The PCI survey of that evening's boots, transcribed in bench/xenon-2026-10-04/install-and-disk-boot.log, prints 00:1f.6 8086:15e3 class 020000. 0x15e3 is the I219-LM5, a Sunrise Point class part in FreeBSD's e1000_pch_spt, and it is in e1000e::DEVICE_IDS. The same survey shows the Intel 8265 wireless card (02:00.0 8086:24fd class 028000) and the Management Engine (00:16.0 8086:a2ba, with AMT's serial function at 00:16.3), so the bench boot should take the ME branch of leaving ultra-low-power mode.

What a stranger's PC most plausibly has

A judgment, with the parts recalled rather than read marked. Desktop boards mostly carry an Intel or a Realtek gigabit or 2.5-gigabit controller (Intel I219, I225 or I226; Realtek RTL8111 or RTL8125, recalled). Many laptops have no Ethernet port at all, and Wi-Fi is a different order of work (firmware blobs, 802.11 management, WPA), so it is out of scope and recorded in BUGS. A USB Ethernet adapter is the plausible bridge for such a laptop, and it rides on milestone 242's host controller, so it is a follow-on to 242 rather than to this.

Card QEMU model Who has it Kept or lost
N1. Intel I219, e1000e family xenon's Yes: QEMU emulates e1000e (milestone 87 (the x86_64 bare-metal machine), checked against the pinned QEMU binary) xenon; a large share of business desktops (recalled) Recommended. Developed under QEMU, proved on the bench machine, one driver spanning both, which is the property milestone 87 bought xenon for
N2. Intel I225/I226, igc Protectli VP2430, newer boards No (milestone 87: "It does not emulate igc") Newer desktops Lost as the first: no emulator, and nobody here owns one. Milestone 87 says igc is igb's descendant, so N1's shape carries
N3. Realtek Common on consumer boards QEMU has an old Realtek model, not the RTL8111 family (recalled) Consumer desktops Lost as the first: no bench machine and no emulator for the part

How it is confined, and which precedent it follows

Two drivers in this tree are the analogues, and they differ in the way that matters:

So the I219 driver takes 261's shape, and one difference is worth checking before the design is drawn. NVMe's specification put a page boundary where the authority boundary belongs (controller registers below 0x1000, doorbells above). For the e1000e family the ring base registers and the ring tail registers sit in the same 4 KiB page (recalled from the older 8254x datasheets, not read from the I219's). So the page split that let 261's server ring doorbells without being able to repoint its rings may not exist here. If it does not, the driver can aim its rings anywhere inside its IOMMU domain, and VT-d is the whole of the confinement. That is milestone 261's own load-bearing unknown (whether xenon's DMAR scope covers the function) applied to a second device. Read the datasheet first.

Where the driver runs is a second, smaller question: a second phy::Device inside net_stack beside virtual_io_net_transport, as virtio-net does today, or its own process with frames crossing an endpoint. Recommendation: inside net_stack first, matching the tree; a separate process is a frame protocol two programs agree on, which is the expensive category and wants its own reason. The §92 test: at equal cost the separate process would be preferred for confinement (a NIC parser and a TCP stack in separate address spaces), so this recommendation is about effort and is recorded as such.

Costs, from the tree rather than adjectives

Exit criteria

  1. Under QEMU, -device e1000e behind intel-iommu: net_stack completes a DHCP round trip and a TCP transfer through the new driver, the same gates milestone 30's virtio-net passes, on x86_64. aarch64 and riscv64 carry the driver too, since QEMU's e1000e is a PCIe device on every bus the runners attach, or a scope note says why not (DECISIONS §19).
  2. On xenon, a DHCP lease from the house router and a measured transfer from a local area network host, photographed, with the survey line naming the card. The runbook is the I219 cabled run; no run has happened yet.

Reuse

Reviewed 2026-10-04 (UTC), after calef's §46 (thin primitives or whole subsystems) amendment of the same day: outside the kernel and the Kani-proved crates, take or adapt first, and record a reason to write. Every row was read from its source, not recalled. Code lines exclude comments, blank lines and tests.

candidate license parts it claims how it touches hardware code lines what carries into 261's shape
Redox e1000d (redox-os/drivers, net/e1000d) MIT 8254x (100e, 100f, 1004), 82573L (109a), 82579V (1503). No 82574L, so not QEMU's e1000e; no I219 a userspace daemon: pcid maps BAR0, common::dma::Dma allocates its own rings, an IRQ file, a NetworkScheme 364 register constants and the init order, which crates/e1000e already has. Nothing that allocates, maps or waits
eth-intel 0.2.4 (crates.io; rcore-os tgoskits) MIT 100e, 100f only mmio-api, dma-api, rdif-eth traits from the ArceOS stack; owns DMA and IRQ 412 the same constants; its four dependencies would be §46 additions for none of the I219
e1000-driver 0.1.0 (crates.io) GPL-2.0 82540EP/EM a kernel-module shape with its own allocator hooks not counted refused: it would be linked into net_stack, and §135 (running GPL software is aggregation) draws the GPL's line at the process boundary, where every linked GPL candidate before it was refused
FreeBSD sys/dev/e1000 (if_em.c, e1000_ich8lan.c, e1000_mac.c, e1000_phy.c) BSD-2-Clause (if_em.c, if_em.h), BSD-3-Clause (the Intel shared code) every I219 generation, with field-found workarounds C over FreeBSD's iflib and OS shims about 16,000 across the four files the I219's bring-up knowledge, which no Rust candidate has. Ported in part, below

No Rust crate covers the 82574L or any I219, and no crate on crates.io names e1000e at all (searched for e1000, e1000e, i219, igb, intel-ethernet).

Adapting Redox's driver would not have been better than writing crates/e1000e, then or now. Its 364 lines map almost one for one onto this crate's 297 lines of register map and ring logic, which is the easy part. It would not have run under QEMU without adding 10d3, and every line that allocates DMA, maps a BAR or waits on an interrupt is a Redox interface that 261's shape replaces with a kernel control plane and spawn-time mappings. Its data path trusts the device: it slices a receive buffer by the descriptor's length unchecked (a length above 16 KiB panics the driver), it enables promiscuous receive, and its reset, link and full-ring waits spin without a bound. Adapting it would have saved perhaps a day on the register table and bought those four defects to remove. What nife writes regardless is the split (kernel/src/e1000e.rs, e1000e_service), the descriptor validation and its Kani proof, the host simulation, and the net_stack integration; none of the candidates has any of it.

The I219 is where reuse pays, because that knowledge comes from field exposure. Against this block's own BUGS list:

I219 step FreeBSD source decision
leave ultra-low-power mode through the Management Engine e1000_disable_ulp_lpt_lp, ME branch ported, crates/e1000e/src/platform_controller_hub/ (ulp, sequence)
empty the descriptor rings before a reset (SPT unit hang) em_flush_desc_rings, em_flush_tx_ring, em_flush_rx_ring ported, one recorded divergence (platform_controller_hub::flush::tail_after_dummy_transmit)
stop bus mastering before reset; STRAP writes around it; KABGTXD.BGSQLBIAS after e1000_disable_pcie_master_generic, e1000_reset_hw_ich8lan ported
leave ULP without an ME, the SMBus switch and LANPHYPC; the semaphore and MDIO; the PHY reset and its NVM-driven configuration; the SPT NVM read; hardware bits, copper link, transmit errata e1000_init_phy_workarounds_pchlan and what it calls, e1000_acquire_swflag_ich8lan, __e1000_read_phy_reg_hv, e1000_reset_hw_ich8lan, e1000_post_phy_reset_ich8lan, e1000_read_nvm_spt, e1000_init_hw_ich8lan, e1000_setup_copper_link_pch_lpt ported 2026-10-05, platform_controller_hub/physical_layer_device.rs, platform_controller_hub/non_volatile_memory.rs, platform_controller_hub/sequence.rs; each function's comment names its source, and the divergences are in platform_controller_hub's BUGS
reconfiguration each time link comes up e1000_check_for_copper_link_ich8lan not ported: it runs from a link-change interrupt this driver does not take (Follow-on)

crates/e1000e/src/platform_controller_hub/mod.rs carries the notice of each FreeBSD file the port follows. FreeBSD read at main, last e1000_ich8lan.c change 46cf612d (2026-08-30). Linux's GPL e1000e was not consulted for any I219 sequence; its headers gave register offsets and ids as facts on 2026-10-04, and the ids were checked against FreeBSD's.

Recommendation. Keep crates/e1000e, recorded reason: no candidate covers QEMU's part or the I219, or has the split and validation above. Adapt FreeBSD for the I219, with attribution: the MAC-register half (done here), then the PHY layer (built 2026-10-05, so the one attended bench evening does not meet a known gap). Take no dependency; vendor nothing.

BUGS

Follow-on

Index row

xenon's network card is an Intel I219-LM.