diff options
author | Michael Buesch <mb@bu3sch.de> | 2008-05-19 17:51:37 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-21 21:48:16 -0400 |
commit | afa83e239af58a93eddd10a7a43ac5618884db15 (patch) | |
tree | 1ce44c6bddeca3b49ef7f66eab783e8501d6ea83 /drivers/net/wireless/b43/b43.h | |
parent | 6821783271aaf541504ff8a138184fcc83fa282b (diff) |
b43: Add panic reason code that doesn't trigger restart
Add a firmware panic reason code that doesn't trigger a restart.
This is useful for firmware debugging and avoiding endless
restart loops. We can use FWPANIC_DIE to halt the firmware at a
well defined point.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/b43.h')
-rw-r--r-- | drivers/net/wireless/b43/b43.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/b43.h b/drivers/net/wireless/b43/b43.h index f588dfa9c1d4..f0041750355d 100644 --- a/drivers/net/wireless/b43/b43.h +++ b/drivers/net/wireless/b43/b43.h | |||
@@ -422,12 +422,21 @@ enum { | |||
422 | B43_IRQ_RFKILL | \ | 422 | B43_IRQ_RFKILL | \ |
423 | B43_IRQ_TX_OK) | 423 | B43_IRQ_TX_OK) |
424 | 424 | ||
425 | /* The firmware register to fetch the debug-IRQ reason from. */ | ||
426 | #define B43_DEBUGIRQ_REASON_REG 63 | ||
425 | /* Debug-IRQ reasons. */ | 427 | /* Debug-IRQ reasons. */ |
426 | #define B43_DEBUGIRQ_PANIC 0 /* The firmware panic'ed */ | 428 | #define B43_DEBUGIRQ_PANIC 0 /* The firmware panic'ed */ |
427 | #define B43_DEBUGIRQ_DUMP_SHM 1 /* Dump shared SHM */ | 429 | #define B43_DEBUGIRQ_DUMP_SHM 1 /* Dump shared SHM */ |
428 | #define B43_DEBUGIRQ_DUMP_REGS 2 /* Dump the microcode registers */ | 430 | #define B43_DEBUGIRQ_DUMP_REGS 2 /* Dump the microcode registers */ |
429 | #define B43_DEBUGIRQ_ACK 0xFFFF /* The host writes that to ACK the IRQ */ | 431 | #define B43_DEBUGIRQ_ACK 0xFFFF /* The host writes that to ACK the IRQ */ |
430 | 432 | ||
433 | /* The firmware register to fetch the panic reason from. */ | ||
434 | #define B43_FWPANIC_REASON_REG 3 | ||
435 | /* Firmware panic reason codes */ | ||
436 | #define B43_FWPANIC_DIE 0 /* Firmware died. Don't auto-restart it. */ | ||
437 | #define B43_FWPANIC_RESTART 1 /* Firmware died. Schedule a controller reset. */ | ||
438 | |||
439 | |||
431 | /* Device specific rate values. | 440 | /* Device specific rate values. |
432 | * The actual values defined here are (rate_in_mbps * 2). | 441 | * The actual values defined here are (rate_in_mbps * 2). |
433 | * Some code depends on this. Don't change it. */ | 442 | * Some code depends on this. Don't change it. */ |