notes

The I219 port: partsfoundry/e1000e's sources, and its PCH bring-up

An appendix to the e1000e NIC. The crate tells its own story of the I219 bring-up in partsfoundry/e1000e/src/platform_controller_hub/. This page holds what nife adds to it: why the port reads FreeBSD, how the kernel calls it, and what the QEMU gates prove of it. The stem the-i219-port is a provisional name.

Where the crate's facts come from

The crate's README, under "Sources", says what was read for its register facts and its PCH port, and when. Each item in platform_controller_hub names the FreeBSD function it follows. platform_controller_hub::physical_layer_device's module doc gives the PHY layer's two deliberate divergences, and platform_controller_hub::non_volatile_memory's says that the NVM port is read only.

Why the I219 needs a port at all

The I219 carries workarounds that only field exposure finds, so platform_controller_hub adapts FreeBSD's rather than writing its own. FreeBSD's Intel shared code (e1000_ich8lan.c and the files beside it, BSD-3-Clause, Intel) and its driver files if_em.c and if_em.h (BSD-2-Clause; Intel, Nicole Graziano and Kevin Bowling) are the only sources this tree reads for them. The descriptor-ring flush, the transmit errata and em_reset's packet-buffer allocation come from if_em.c, not from the shared code. Linux's e1000e is GPL and was not consulted for any of it. This follows calef's amendment of 2026-10-04 to ยง46 (thin primitives or whole subsystems): outside the kernel and the Kani-proved crates, take or adapt first. The constants are facts about the hardware. The sequences are FreeBSD's, adapted, and platform_controller_hub/mod.rs carries the notice of each FreeBSD file they follow, as the first condition requires.

The three passes

kernel/src/e1000e.rs's bring_up calls platform_controller_hub::sequence's three passes in FreeBSD's order: initialize_physical_layer_device_workarounds at attach, global_reset after platform_controller_hub::flush::empty_descriptor_rings, and initialize_hardware before the rings are programmed, with transmit_errata once TCTL is written. platform_controller_hub::sequence's module doc gives that order. Each function's doc says what it does and names the FreeBSD function it follows. Only the branches for FreeBSD's e1000_pch_spt class are carried, because every I219 the crate claims is in it (platform_controller_hub::is_platform_controller_hub_device).

Every sequence is generic over platform_controller_hub::Hardware, so it runs on the host against a simulated I219 (pch/simulator.rs) as well as in the kernel. QEMU's 82574L is not a PCH part and never reaches sequence. It does reach physical_layer_device::read_identifier_at_device_number, which shares physical_layer_device::read_management_data_input_output with everything here, so the MDIO primitive is the one piece the QEMU gates prove.

BUGS