Module Name: src Committed By: joerg Date: Sat Sep 14 13:17:21 UTC 2013
Modified Files: src/sys/dev/usb: uhci.c Log Message: Put UREAD4 under UHCI_DEBUG To generate a diff of this commit: cvs rdiff -u -r1.259 -r1.260 src/sys/dev/usb/uhci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/uhci.c diff -u src/sys/dev/usb/uhci.c:1.259 src/sys/dev/usb/uhci.c:1.260 --- src/sys/dev/usb/uhci.c:1.259 Sun Sep 8 06:37:23 2013 +++ src/sys/dev/usb/uhci.c Sat Sep 14 13:17:21 2013 @@ -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 @@ UREAD2(uhci_softc_t *sc, bus_size_t r) 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 @@ UREAD4(uhci_softc_t *sc, bus_size_t r) 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)