Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Put UREAD4 under UHCI_DEBUG



details:   https://anonhg.NetBSD.org/src/rev/5472cd6f1df9
branches:  trunk
changeset: 789978:5472cd6f1df9
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Sep 14 13:17:21 2013 +0000

description:
Put UREAD4 under UHCI_DEBUG

diffstat:

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

diffs (34 lines):

diff -r 0190d5668b74 -r 5472cd6f1df9 sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c        Sat Sep 14 13:15:53 2013 +0000
+++ b/sys/dev/usb/uhci.c        Sat Sep 14 13:17:21 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhci.c,v 1.259 2013/09/08 06:37:23 skrll Exp $ */
+/*     $NetBSD: uhci.c,v 1.260 2013/09/14 13:17:21 joerg Exp $ */
 
 /*
  * Copyright (c) 1998, 2004, 2011, 2012 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.259 2013/09/08 06:37:23 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.260 2013/09/14 13:17:21 joerg Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -263,6 +263,7 @@
        return bus_space_read_2(sc->iot, sc->ioh, r);
 }
 
+#ifdef UHCI_DEBUG
 static __inline uint32_t
 UREAD4(uhci_softc_t *sc, bus_size_t r)
 {
@@ -270,6 +271,7 @@
        UBARR(sc);
        return bus_space_read_4(sc->iot, sc->ioh, r);
 }
+#endif
 
 #define UHCICMD(sc, cmd) UWRITE2(sc, UHCI_CMD, cmd)
 #define UHCISTS(sc) UREAD2(sc, UHCI_STS)



Home | Main Index | Thread Index | Old Index