Source-Changes-HG archive

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

[src/nick-nhusb]: src/sys/dev/usb Re-org for clarity (sparams vs cparams)



details:   https://anonhg.NetBSD.org/src/rev/55af84ae487c
branches:  nick-nhusb
changeset: 334456:55af84ae487c
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Mar 26 11:40:59 2016 +0000

description:
Re-org for clarity (sparams vs cparams)

diffstat:

 sys/dev/usb/ehci.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 96406ddf6692 -r 55af84ae487c sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c        Sat Mar 26 11:39:56 2016 +0000
+++ b/sys/dev/usb/ehci.c        Sat Mar 26 11:40:59 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ehci.c,v 1.234.2.93 2016/03/20 08:06:15 skrll Exp $ */
+/*     $NetBSD: ehci.c,v 1.234.2.94 2016/03/26 11:40:59 skrll Exp $ */
 
 /*
  * Copyright (c) 2004-2012 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.234.2.93 2016/03/20 08:06:15 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.234.2.94 2016/03/26 11:40:59 skrll Exp $");
 
 #include "ohci.h"
 #include "uhci.h"
@@ -456,9 +456,10 @@
                aprint_normal("\n");
        }
        sc->sc_noport = EHCI_HCS_N_PORTS(sparams);
+       sc->sc_hasppc = EHCI_HCS_PPC(sparams);
+
        cparams = EREAD4(sc, EHCI_HCCPARAMS);
        DPRINTF("cparams=%#x", cparams, 0, 0, 0);
-       sc->sc_hasppc = EHCI_HCS_PPC(sparams);
 
        if (EHCI_HCC_64BIT(cparams)) {
                /* MUST clear segment register if 64 bit capable. */



Home | Main Index | Thread Index | Old Index