summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>2001-04-13 15:58:43 +0000
committeraaron <aaron@openbsd.org>2001-04-13 15:58:43 +0000
commitb726744016be6622e7e18250338930053f1f7bcd (patch)
tree9d0292af1fac9e3d411d9015a8ff1d50d0fa0ea9
parentOops, remove an unrelated debugging #if 0. (diff)
downloadwireguard-openbsd-b726744016be6622e7e18250338930053f1f7bcd.tar.xz
wireguard-openbsd-b726744016be6622e7e18250338930053f1f7bcd.zip
Define RL_USEIOSPACE in the PCI bus piece, not the common piece; thanks jason@
-rw-r--r--sys/dev/ic/rtl81x9.c12
-rw-r--r--sys/dev/pci/if_rl_pci.c12
2 files changed, 12 insertions, 12 deletions
diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c
index e26f34c4977..fc41c65316c 100644
--- a/sys/dev/ic/rtl81x9.c
+++ b/sys/dev/ic/rtl81x9.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtl81x9.c,v 1.1 2001/04/10 22:52:00 aaron Exp $ */
+/* $OpenBSD: rtl81x9.c,v 1.2 2001/04/13 15:58:43 aaron Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -125,16 +125,6 @@
#include <dev/pci/pcivar.h>
#include <dev/pci/pcidevs.h>
-/*
- * Default to using PIO access for this driver. On SMP systems,
- * there appear to be problems with memory mapped mode: it looks like
- * doing too many memory mapped access back to back in rapid succession
- * can hang the bus. I'm inclined to blame this on crummy design/construction
- * on the part of RealTek. Memory mapped mode does appear to work on
- * uniprocessor systems though.
- */
-#define RL_USEIOSPACE
-
#include <dev/ic/rtl81x9reg.h>
/*
diff --git a/sys/dev/pci/if_rl_pci.c b/sys/dev/pci/if_rl_pci.c
index 28c13449ef9..74e0295dc25 100644
--- a/sys/dev/pci/if_rl_pci.c
+++ b/sys/dev/pci/if_rl_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_rl_pci.c,v 1.1 2001/04/10 22:52:00 aaron Exp $ */
+/* $OpenBSD: if_rl_pci.c,v 1.2 2001/04/13 15:58:44 aaron Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -74,6 +74,16 @@
#include <dev/pci/pcivar.h>
#include <dev/pci/pcidevs.h>
+/*
+ * Default to using PIO access for this driver. On SMP systems,
+ * there appear to be problems with memory mapped mode: it looks like
+ * doing too many memory mapped access back to back in rapid succession
+ * can hang the bus. I'm inclined to blame this on crummy design/construction
+ * on the part of RealTek. Memory mapped mode does appear to work on
+ * uniprocessor systems though.
+ */
+#define RL_USEIOSPACE
+
#include <dev/ic/rtl81x9reg.h>
int rl_pci_match __P((struct device *, void *, void *));