summaryrefslogtreecommitdiff
path: root/sys/dev/pci/pciide.c
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2003-12-12 13:00:39 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2003-12-12 13:00:39 +0000
commitda72ba2a73f3d5f997ab2b32465bb317a1052c2a (patch)
treed0a2d84e082ffe5c44b456d1fbf49a4780706058 /sys/dev/pci/pciide.c
parent7048033023755b5b4e3fbcf04e81b674a580b602 (diff)
nforce chip doesn't have cable check bit; noticed by hugh@ a long
time ago.
Diffstat (limited to 'sys/dev/pci/pciide.c')
-rw-r--r--sys/dev/pci/pciide.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/dev/pci/pciide.c b/sys/dev/pci/pciide.c
index 01c1e9ca130..90050ee4d75 100644
--- a/sys/dev/pci/pciide.c
+++ b/sys/dev/pci/pciide.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pciide.c,v 1.149 2003/11/07 10:16:45 jmc Exp $ */
+/* $OpenBSD: pciide.c,v 1.150 2003/12/12 13:00:37 grange Exp $ */
/* $NetBSD: pciide.c,v 1.127 2001/08/03 01:31:08 tsutsui Exp $ */
/*
@@ -5931,16 +5931,6 @@ nforce_setup_channel(struct channel_softc *chp)
/* Setup UltraDMA mode */
drvp->drive_flags &= ~DRIVE_DMA;
- /* Check cable */
- if ((conf & NFORCE_CONF_CABLE(channel, drive)) == 0 &&
- drvp->UDMA_mode > 2) {
- WDCDEBUG_PRINT(("%s(%s:%d:%d): 80-wire "
- "cable not detected\n", drvp->drive_name,
- sc->sc_wdcdev.sc_dev.dv_xname,
- channel, drive), DEBUG_PROBE);
- drvp->UDMA_mode = 2;
- }
-
udmatim |= NFORCE_UDMATIM_SET(channel, drive,
nforce_udma[drvp->UDMA_mode]) |
NFORCE_UDMA_EN(channel, drive) |