diff options
author | 2001-04-13 15:58:43 +0000 | |
---|---|---|
committer | 2001-04-13 15:58:43 +0000 | |
commit | b726744016be6622e7e18250338930053f1f7bcd (patch) | |
tree | 9d0292af1fac9e3d411d9015a8ff1d50d0fa0ea9 /sys/dev/pci/if_rl_pci.c | |
parent | Oops, remove an unrelated debugging #if 0. (diff) | |
download | wireguard-openbsd-b726744016be6622e7e18250338930053f1f7bcd.tar.xz wireguard-openbsd-b726744016be6622e7e18250338930053f1f7bcd.zip |
Define RL_USEIOSPACE in the PCI bus piece, not the common piece; thanks jason@
Diffstat (limited to 'sys/dev/pci/if_rl_pci.c')
-rw-r--r-- | sys/dev/pci/if_rl_pci.c | 12 |
1 files changed, 11 insertions, 1 deletions
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 *)); |