From 9243ce3c703127e01e3c928126df06a53473c862 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sun, 22 Nov 2009 12:51:10 +0000 Subject: Probe modes for SATA disks, makes CF behind SATA work and gives more speed to things like SSDs that do UDMA 6. Tested by many. --- sys/dev/ic/wdc.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'sys/dev/ic') diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c index 36ba261cfcc..aaf79e7ab57 100644 --- a/sys/dev/ic/wdc.c +++ b/sys/dev/ic/wdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wdc.c,v 1.103 2009/10/13 19:33:16 pirofti Exp $ */ +/* $OpenBSD: wdc.c,v 1.104 2009/11/22 12:51:09 jsg Exp $ */ /* $NetBSD: wdc.c,v 1.68 1999/06/23 19:00:17 bouyer Exp $ */ /* * Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved. @@ -1245,21 +1245,6 @@ wdc_probe_caps(drvp, params) int i, valid_mode_found; int cf_flags = drvp->cf_flags; - if ((wdc->cap & WDC_CAPABILITY_SATA) != 0 && - (params->atap_sata_caps != 0x0000 && - params->atap_sata_caps != 0xffff)) { - WDCDEBUG_PRINT(("%s: atap_sata_caps=0x%x\n", __func__, - params->atap_sata_caps), DEBUG_PROBE); - - /* Skip ATA modes detection for native SATA drives */ - drvp->PIO_mode = drvp->PIO_cap = 4; - drvp->DMA_mode = drvp->DMA_cap = 2; - drvp->UDMA_mode = drvp->UDMA_cap = 5; - drvp->drive_flags |= DRIVE_SATA | DRIVE_MODE | DRIVE_UDMA; - drvp->ata_vers = 4; - return; - } - if ((wdc->cap & (WDC_CAPABILITY_DATA16 | WDC_CAPABILITY_DATA32)) == (WDC_CAPABILITY_DATA16 | WDC_CAPABILITY_DATA32)) { struct ataparams params2; -- cgit v1.2.3