Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Use BGE_SETBIT() instead of CSR_WRITE_4() for th...



details:   https://anonhg.NetBSD.org/src/rev/8ce1468785ef
branches:  trunk
changeset: 787003:8ce1468785ef
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed May 29 08:24:06 2013 +0000

description:
Use BGE_SETBIT() instead of CSR_WRITE_4() for the BGE_MISC_LOCAL_CTL register
to not to modify some GPIO bits.

diffstat:

 sys/dev/pci/if_bge.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 022b882ab3e4 -r 8ce1468785ef sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c      Wed May 29 02:27:39 2013 +0000
+++ b/sys/dev/pci/if_bge.c      Wed May 29 08:24:06 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bge.c,v 1.250 2013/05/28 17:03:34 msaitoh Exp $     */
+/*     $NetBSD: if_bge.c,v 1.251 2013/05/29 08:24:06 msaitoh Exp $     */
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.250 2013/05/28 17:03:34 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.251 2013/05/29 08:24:06 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -2971,7 +2971,7 @@
 
        /* 5718 step 45, 57XX step 79 */
        /* Set misc. local control, enable interrupts on attentions */
-       CSR_WRITE_4(sc, BGE_MISC_LOCAL_CTL, BGE_MLC_INTR_ONATTN);
+       BGE_SETBIT(sc, BGE_MISC_LOCAL_CTL, BGE_MLC_INTR_ONATTN);
        if (BGE_IS_5717_PLUS(sc)) {
                CSR_READ_4(sc, BGE_MISC_LOCAL_CTL); /* Flush */
                /* 5718 step 46 */



Home | Main Index | Thread Index | Old Index