summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorjdc <jdc@NetBSD.org>2008-05-06 21:09:34 +0000
committerjdc <jdc@NetBSD.org>2008-05-06 21:09:34 +0000
commitcde723377aba2c2eff0b98b4d8aba2728f47f511 (patch)
tree29b408e5a38662cd11f8e4108e4f12d82ebed9bd /sys/dev/ic
parentd91c968da71aaae394abcb735c4e7125ee791a20 (diff)
Add some Sbus-specific definitions (more registers and more values in the
Sbus Config register).
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/gemreg.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/sys/dev/ic/gemreg.h b/sys/dev/ic/gemreg.h
index 1a47df41db1..cfb62326055 100644
--- a/sys/dev/ic/gemreg.h
+++ b/sys/dev/ic/gemreg.h
@@ -1,4 +1,4 @@
-/* $NetBSD: gemreg.h,v 1.11 2008/01/05 20:27:44 jdc Exp $ */
+/* $NetBSD: gemreg.h,v 1.12 2008/05/06 21:09:34 jdc Exp $ */
/*
*
@@ -63,13 +63,17 @@
*/
#define GEM_PCI_BANK2_OFFSET 0x1000
#define GEM_PCI_BANK2_SIZE 0x14
-#define GEM_ERROR_STATUS 0x0000 /* PCI error Status */
+#define GEM_ERROR_STATUS 0x0000 /* PCI Error Status */
#define GEM_ERROR_MASK 0x0004 /* PCI Error Mask */
-#define GEM_SBUS_CONFIG 0x0004
-#define GEM_BIF_CONFIG 0x0008 /* BIF Configuration */
-#define GEM_BIF_DIAG 0x000c /* BIF Diagnostic */
-#define GEM_RESET 0x0010 /* Software Reset */
+#define GEM_BIF_CONFIG 0x0008 /* PCI BIF Configuration */
+#define GEM_BIF_DIAG 0x000c /* PCI BIF Diagnostic */
+#define GEM_RESET 0x0010 /* PCI Software Reset */
+#define GEM_SBUS_RESET 0x0000 /* Sbus Reset */
+#define GEM_SBUS_CONFIG 0x0004 /* Sbus Burst-Size Configuration */
+#define GEM_SBUS_ERROR_STATUS 0x0008 /* Sbus Fatal Error */
+#define GEM_SBUS_SOFT_RESET 0x000c /* Sbus Software Reset */
+#define GEM_SBUS_SOFT_RESET2 0x0010 /* Sbus Software Reset */
/*
* Bits in GEM_SEB_STATE register
@@ -137,6 +141,9 @@
/*
* Bits in GEM_SBUS_CONFIG register
*/
+#define GEM_SBUS_CFG_BSIZE32 0x00000001
+#define GEM_SBUS_CFG_BSIZE64 0x00000002
+#define GEM_SBUS_CFG_BSIZE128 0x00000004
#define GEM_SBUS_CFG_BMODE64 0x00000008
#define GEM_SBUS_CFG_PARITY 0x00000200