summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-11-07 17:44:15 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-11-07 17:44:15 +0000
commitaf861e6bfa5c59d16360be0cabf2467d706faef6 (patch)
tree61ab25b8dae5dffddaa74ee48efaaec8ac08f533 /sys/dev/ic
parent166b40ff5481b22ea4307bcb0102d7b5014f5367 (diff)
Add more initialisation steps (read reset register; pause; set burst size
in config register). From NetBSD
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/gemreg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/gemreg.h b/sys/dev/ic/gemreg.h
index 6af92380c84..488a0fd3bce 100644
--- a/sys/dev/ic/gemreg.h
+++ b/sys/dev/ic/gemreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: gemreg.h,v 1.14 2008/11/07 17:37:59 brad Exp $ */
+/* $OpenBSD: gemreg.h,v 1.15 2008/11/07 17:44:14 brad Exp $ */
/* $NetBSD: gemreg.h,v 1.1 2001/09/16 00:11:43 eeh Exp $ */
/*
@@ -57,6 +57,7 @@
#define GEM_PCI_BANK2_SIZE 0x14
/* This is the same as the GEM_STATUS reg but reading it does not clear bits. */
#define GEM_ERROR_STATUS 0x0000 /* PCI error status R/C */
+#define GEM_SBUS_RESET 0x0000 /* Sbus Reset */
#define GEM_ERROR_MASK 0x0004
#define GEM_SBUS_CONFIG 0x0004
#define GEM_BIF_CONFIG 0x0008 /* BIF config reg */
@@ -68,6 +69,7 @@
#define GEM_SEB_RXWON 0x000000004
/* Bits in GEM_SBUS_CONFIG register */
+#define GEM_SBUS_CFG_BSIZE128 0x00000004
#define GEM_SBUS_CFG_BMODE64 0x00000008
#define GEM_SBUS_CFG_PARITY 0x00000200