diff options
| author | ShengYi Hung <aokblast@FreeBSD.org> | 2026-05-20 09:26:59 +0000 |
|---|---|---|
| committer | ShengYi Hung <aokblast@FreeBSD.org> | 2026-07-25 01:49:35 +0000 |
| commit | e0b235ecd4fa9a67578be68057dbcad797f96397 (patch) | |
| tree | f7456e826a8cae1e10da4da28eeaa1d40594d72d /tests | |
| parent | a594783bac906ecc4f6528d7d576215f85a21bda (diff) | |
xhci: Refactor xhci_generic_setup code
Our USB TRB buildup subroutines were previously difficult to follow. In
setup_generic_chain_sub(), the routine filled TRB packets based on the
characteristics passed by the caller and the current state (for example,
whether the TRB was the last in the TD).
However, most TRB types (except Normal TRBs) cannot be shared across TDs.
To simplify the logic, refactor xhci_setup_generic() so that TRBs are
constructed according to their transfer type, with dedicated helper
functions for each TRB type.
Sponsored by: The FreeBSD Foundation
Assisted-by: Claude Code (Opus 4.6, Opus 4.8(1M) and Sonet 5.0)
Differential Revision: https://reviews.freebsd.org/D57130
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
