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/pci Pull up revision 1.194 (requested by bouyer...



details:   https://anonhg.NetBSD.org/src/rev/3987e5f8fcfb
branches:  netbsd-1-6
changeset: 530574:3987e5f8fcfb
user:      tron <tron%NetBSD.org@localhost>
date:      Sat Aug 16 15:58:24 2003 +0000

description:
Pull up revision 1.194 (requested by bouyer in ticket #1369):
Correct setup of General Purpose Register for PDC20265 (Ultra/100) and newer.
>From Andreas Johansson in private mail.

diffstat:

 sys/dev/pci/pciide.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 5044188ca24c -r 3987e5f8fcfb sys/dev/pci/pciide.c
--- a/sys/dev/pci/pciide.c      Sat Aug 16 15:53:03 2003 +0000
+++ b/sys/dev/pci/pciide.c      Sat Aug 16 15:58:24 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pciide.c,v 1.153.2.13 2003/08/16 15:53:03 tron Exp $   */
+/*     $NetBSD: pciide.c,v 1.153.2.14 2003/08/16 15:58:24 tron Exp $   */
 
 
 /*
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pciide.c,v 1.153.2.13 2003/08/16 15:53:03 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pciide.c,v 1.153.2.14 2003/08/16 15:58:24 tron Exp $");
 
 #ifndef WDCDEBUG
 #define WDCDEBUG
@@ -3924,7 +3924,9 @@
                }
 
                mode = PDC2xx_SCR_DMA;
-               if (PDC_IS_262(sc)) {
+               if (PDC_IS_265(sc)) {
+                       mode = PDC2xx_SCR_SET_GEN(mode, PDC265_SCR_GEN_LAT);
+               } else if (PDC_IS_262(sc)) {
                        mode = PDC2xx_SCR_SET_GEN(mode, PDC262_SCR_GEN_LAT);
                } else {
                        /* the BIOS set it up this way */



Home | Main Index | Thread Index | Old Index