aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/isp/ispreg.h
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2001-01-15 18:37:14 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2001-01-15 18:37:14 +0000
commit144ff1190310840255e90a29836eb03ecbb69ece (patch)
tree9dbacfd7248e49efd4eed124a7339bf8ca1dac81 /sys/dev/isp/ispreg.h
parentdf1590c05d471d9abdde73a207ab3ff87d95d507 (diff)
downloadsrc-144ff1190310840255e90a29836eb03ecbb69ece.tar.gz
src-144ff1190310840255e90a29836eb03ecbb69ece.zip
Put in offset definitions for FPM and FBM registers, plus just enough
bits defined so we can reset them.
Notes
Notes: svn path=/head/; revision=71078
Diffstat (limited to 'sys/dev/isp/ispreg.h')
-rw-r--r--sys/dev/isp/ispreg.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/dev/isp/ispreg.h b/sys/dev/isp/ispreg.h
index 0dd517b1a5e1..d50cdf76cb0d 100644
--- a/sys/dev/isp/ispreg.h
+++ b/sys/dev/isp/ispreg.h
@@ -350,6 +350,19 @@
#define MAX_MAILBOX 8
/*
+ * Fibre Protocol Module and Frame Buffer Register Offsets/Definitions (2X00).
+ * NB: The RISC processor must be paused and the appropriate register
+ * bank selected via BIU2100_CSR bits.
+ */
+
+#define FPM_DIAG_CONFIG (BIU_BLOCK + 0x96)
+#define FPM_SOFT_RESET 0x0100
+
+#define FBM_CMD (BIU_BLOCK + 0xB8)
+#define FBMCMD_FIFO_RESET_ALL 0xA000
+
+
+/*
* SXP Block Register Offsets
*/
#define SXP_PART_ID (SXP_BLOCK+0x0) /* R : Part ID Code */
@@ -601,6 +614,10 @@
#define HCCR_CMD_PAUSE 0x2000 /* Pause RISC */
#define HCCR_CMD_RELEASE 0x3000 /* Release Paused RISC */
#define HCCR_CMD_STEP 0x4000 /* Single Step RISC */
+#define HCCR_2X00_DISABLE_PARITY_PAUSE 0x4001 /*
+ * Disable RISC pause on FPM
+ * parity error.
+ */
#define HCCR_CMD_SET_HOST_INT 0x5000 /* Set Host Interrupt */
#define HCCR_CMD_CLEAR_HOST_INT 0x6000 /* Clear Host Interrupt */
#define HCCR_CMD_CLEAR_RISC_INT 0x7000 /* Clear RISC interrupt */