Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 2.62 KB

File metadata and controls

53 lines (40 loc) · 2.62 KB

The chip reference doc

Every chip dir ships a <CHIP>.md: the facts about the port you can't get faster by reading the code. Facts only. Verifiable by a human or an LLM. No assumptions, no "we thought X", no cautionary tales written as suspense, no anthropomorphizing. If a line isn't verifiable, or a reader would learn it faster from the code, cut it. Use bullets where the content is a list; one line per bullet.

chips/rtl8814au_dkms/RTL8814AU_DKMS.md is the worked example.

Sections, in order

Captured Wireless Card: bands, TX/RX chains, exact device model, USB link speed; VID:PID; where the captures live.

Linux Driver Source: upstream repo link; type (mainline / DKMS); exact commit hash (+ version, date); where it's vendored in-repo. Pin the commit, not just a version. It makes a file:line citation resolvable.

Python Port Details: VID:PID and how the driver is selected; a one-line status (what works on hardware, what the verify gate proves); related ports; then a short Non-obvious in the port bullet list: the few implementation facts that would cost a maintainer time. Not a catch-all; only what bites.

Known Problems: bulleted. Each bullet: what breaks, when, and the current known state.

Driver Entry Points: feature → where to start reading, one bullet each. Names match the vendor C, so the name is the cross-reference.

Scripts: the reusable diagnostics, grouped, one line each. Mark the one-offs that are safe to delete.

Debug log: at the bottom, for open or unresolved findings only. One entry per finding: a live investigation and what's been ruled out, or a durable non-obvious fact worth keeping. Date an entry so a reader can judge how current it is. This is not a port-order or milestone log: no "ported X", no op-offset progress stamps, no "VERIFIED" stamps, no "we suspected X, turned out Y" essays. That history is in git. Prune ruthlessly: when a finding hardens into a caveat, move it into Known Problems or the code and drop the entry; delete an entry once it stops helping. An empty section is the correct steady state.

Skeleton

# <CHIP>

## Captured Wireless Card    card, VID:PID, captures dir
## Linux Driver Source       repo, type, pinned commit, vendored path
## Python Port Details       VID:PID + selection, status, related ports, non-obvious traps
## Known Problems            what breaks, when, current state, bulleted
## Driver Entry Points       feature -> module/function, one bullet each
## Scripts                   reusable diagnostics, grouped, one line each
## Debug log                 open/unresolved findings + what's ruled out; NOT a port-order log