summaryrefslogtreecommitdiffstats
path: root/rsnix/src/ehci.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--rsnix/src/ehci.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/rsnix/src/ehci.rs b/rsnix/src/ehci.rs
index 6209155..8baa0ad 100644
--- a/rsnix/src/ehci.rs
+++ b/rsnix/src/ehci.rs
@@ -89,7 +89,12 @@ static QR_SHOWN: AtomicBool = AtomicBool::new(false);
89// DEBUG: run the one-boot transfer variant matrix (real-hardware bisection 89// DEBUG: run the one-boot transfer variant matrix (real-hardware bisection
90// of the EHCI System Error trigger). MATRIX_DONE gates it to one pass; 90// of the EHCI System Error trigger). MATRIX_DONE gates it to one pass;
91// XFER_TWEAK flips construction variables inside ctl_xfer. 91// XFER_TWEAK flips construction variables inside ctl_xfer.
92static DEBUG_MATRIX: bool = true; 92//
93// OFF in normal builds: with it on, `enumerate()` is replaced by the
94// diagnostic matrix and returns false, i.e. the EHCI driver never brings a
95// device up. Flip to true only when bisecting a hardware fault, and expect
96// no USB input in that build.
97static DEBUG_MATRIX: bool = false;
93static MATRIX_DONE: AtomicBool = AtomicBool::new(false); 98static MATRIX_DONE: AtomicBool = AtomicBool::new(false);
94static XFER_TWEAK: AtomicU32 = AtomicU32::new(0); 99static XFER_TWEAK: AtomicU32 = AtomicU32::new(0);
95// Low-region (<1 MB) control QH for the matrix's low-region variant. 100// Low-region (<1 MB) control QH for the matrix's low-region variant.