wip: BT firmware debugging

This commit is contained in:
2026-07-06 18:17:06 +02:00
parent 8bf3ceb457
commit 8fdc10953b
4 changed files with 59 additions and 20 deletions
+5 -4
View File
@@ -265,11 +265,12 @@ namespace Drivers::USB::Bluetooth::Hci {
// Returns true if a matching bond was found and forgotten.
bool ForgetBond(const uint8_t* addr);
// Toggle the bounded firmware-phase interrupt-IN trace (one log line per
// completion, capped) plus mailbox-overwrite flags. Enabled by the
// deferred bring-up so a failing hardware boot log shows exactly what the
// event pipe delivered.
// Toggle the bounded firmware-phase interrupt-IN trace (one ring record
// per completion, capped). Recording is IRQ-safe (lock-free ring, no
// logging); DumpFwTrace() prints pending records and MUST only be called
// from process context (terminal lock is a non-IRQ-safe Mutex).
void SetFwTrace(bool on);
void DumpFwTrace();
// Non-blocking peek at the most recent 0xFF/0x06 secure-send result without
// consuming it. Returns true if one has arrived since the last