Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/dev/ata Pull up revision 1.39 (requested by nakayam...



details:   https://anonhg.NetBSD.org/src/rev/32ce9421c5b0
branches:  netbsd-1-6
changeset: 530208:32ce9421c5b0
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Apr 28 06:26:00 2003 +0000

description:
Pull up revision 1.39 (requested by nakayama in ticket #1275):
Make DMA mode works on Promise Ultra66/100 with 48-bit LBA drives.
Ok'ed by bouyer in tech-kern%netbsd.org@localhost.

diffstat:

 sys/dev/ata/ata_wdc.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 15553c59f635 -r 32ce9421c5b0 sys/dev/ata/ata_wdc.c
--- a/sys/dev/ata/ata_wdc.c     Mon Apr 28 06:25:50 2003 +0000
+++ b/sys/dev/ata/ata_wdc.c     Mon Apr 28 06:26:00 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ata_wdc.c,v 1.36 2002/04/23 20:41:13 bouyer Exp $      */
+/*     $NetBSD: ata_wdc.c,v 1.36.4.1 2003/04/28 06:26:00 tron Exp $    */
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ata_wdc.c,v 1.36 2002/04/23 20:41:13 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ata_wdc.c,v 1.36.4.1 2003/04/28 06:26:00 tron Exp $");
 
 #ifndef WDCDEBUG
 #define WDCDEBUG
@@ -271,6 +271,8 @@
                if (drvp->n_xfers <= NXFER)
                        drvp->n_xfers++;
                dma_flags = (ata_bio->flags & ATA_READ) ?  WDC_DMA_READ : 0;
+               if (ata_bio->flags & ATA_LBA48)
+                       dma_flags |= WDC_DMA_LBA48;
        }
        if (ata_bio->flags & ATA_SINGLE)
                ata_delay = ATA_DELAY;



Home | Main Index | Thread Index | Old Index