aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/isa
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2004-01-07 19:23:56 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2004-01-07 19:23:56 +0000
commit1e9d917e38f883dc286e7163822f6912f0b1a218 (patch)
tree3fbc43536a3bef94ef70943125ce7e979f8cd296 /sys/i386/isa
parent794408beb6ef4b33068b67e4026293d8875a030e (diff)
downloadsrc-1e9d917e38f883dc286e7163822f6912f0b1a218.tar.gz
src-1e9d917e38f883dc286e7163822f6912f0b1a218.zip
MFC: Replace an outb() with a DELAY(1) during the test for configuration
mechanism #1. This fixes probing for PCI on some systems.
Notes
Notes: svn path=/stable/4/; revision=124226
Diffstat (limited to 'sys/i386/isa')
-rw-r--r--sys/i386/isa/pci_cfgreg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/i386/isa/pci_cfgreg.c b/sys/i386/isa/pci_cfgreg.c
index af25f8dc0f10..a60005371394 100644
--- a/sys/i386/isa/pci_cfgreg.c
+++ b/sys/i386/isa/pci_cfgreg.c
@@ -43,6 +43,7 @@
#include <isa/isavar.h>
#include <i386/isa/pcibus.h>
/* #include <machine/nexusvar.h> */
+#include <machine/clock.h>
#include <machine/pci_cfgreg.h>
#include <machine/segments.h>
#include <machine/pc/bios.h>
@@ -580,7 +581,7 @@ pcireg_cfgopen(void)
devmax = 32;
outl(CONF1_ADDR_PORT, CONF1_ENABLE_CHK);
- outb(CONF1_ADDR_PORT +3, 0);
+ DELAY(1);
mode1res = inl(CONF1_ADDR_PORT);
outl(CONF1_ADDR_PORT, oldval1);