aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/isp/ispreg.h
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2002-02-17 06:38:22 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2002-02-17 06:38:22 +0000
commitb8941882486a72a0423ad430031e1e6d86a1dec8 (patch)
tree4b5809d88934000efd29f4627f9c755121e85b54 /sys/dev/isp/ispreg.h
parent3f02619fb8269109235e362cab48c982756ae9d1 (diff)
Notes
Diffstat (limited to 'sys/dev/isp/ispreg.h')
-rw-r--r--sys/dev/isp/ispreg.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/dev/isp/ispreg.h b/sys/dev/isp/ispreg.h
index 7a57b5a2639cf..2f51790819e27 100644
--- a/sys/dev/isp/ispreg.h
+++ b/sys/dev/isp/ispreg.h
@@ -986,4 +986,26 @@
#define ISP2100_NVRAM_BOOT_LUN(c) (c)[80]
#define ISP2200_HBA_FEATURES(c) (c)[232] | ((c)[233] << 8)
+
+/*
+ * Firmware Crash Dump
+ *
+ * QLogic needs specific information format when they look at firmware crashes.
+ *
+ * This is incredibly kernel memory consumptive (to say the least), so this
+ * code is only compiled in when needed.
+ */
+
+#define QLA2200_RISC_IMAGE_DUMP_SIZE \
+ (1 * sizeof (u_int16_t)) + /* 'used' flag (also HBA type) */ \
+ (352 * sizeof (u_int16_t)) + /* RISC registers */ \
+ (61440 * sizeof (u_int16_t)) /* RISC SRAM (offset 0x1000..0xffff) */
+#define QLA2300_RISC_IMAGE_DUMP_SIZE \
+ (1 * sizeof (u_int16_t)) + /* 'used' flag (also HBA type) */ \
+ (464 * sizeof (u_int16_t)) + /* RISC registers */ \
+ (63488 * sizeof (u_int16_t)) + /* RISC SRAM (0x0800..0xffff) */ \
+ (4096 * sizeof (u_int16_t)) + /* RISC SRAM (0x10000..0x10FFF) */ \
+ (61440 * sizeof (u_int16_t)) /* RISC SRAM (0x11000..0x1FFFF) */
+/* the larger of the two */
+#define ISP_CRASH_IMAGE_SIZE QLA2300_RISC_IMAGE_DUMP_SIZE
#endif /* _ISPREG_H */