Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Wrap several unused static inline functions with...
details: https://anonhg.NetBSD.org/src/rev/77237edc413e
branches: trunk
changeset: 790609:77237edc413e
user: apb <apb%NetBSD.org@localhost>
date: Fri Oct 18 08:39:22 2013 +0000
description:
Wrap several unused static inline functions with #if 0.
I didn't delete them because I suspect that they might be needed later.
diffstat:
sys/dev/usb/xhci.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diffs (94 lines):
diff -r 7375a3d39856 -r 77237edc413e sys/dev/usb/xhci.c
--- a/sys/dev/usb/xhci.c Fri Oct 18 08:35:24 2013 +0000
+++ b/sys/dev/usb/xhci.c Fri Oct 18 08:39:22 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xhci.c,v 1.3 2013/10/18 08:35:24 skrll Exp $ */
+/* $NetBSD: xhci.c,v 1.4 2013/10/18 08:39:22 apb Exp $ */
/*
* Copyright (c) 2013 Jonathan A. Kollasch
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.3 2013/10/18 08:35:24 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.4 2013/10/18 08:39:22 apb Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -215,12 +215,14 @@
return bus_space_read_4(sc->sc_iot, sc->sc_ioh, offset);
}
+#if 0 /* unused */
static inline void
xhci_write_4(const struct xhci_softc * const sc, bus_size_t offset,
uint32_t value)
{
bus_space_write_4(sc->sc_iot, sc->sc_ioh, offset, value);
}
+#endif /* unused */
static inline uint32_t
xhci_cap_read_4(const struct xhci_softc * const sc, bus_size_t offset)
@@ -241,6 +243,7 @@
bus_space_write_4(sc->sc_iot, sc->sc_obh, offset, value);
}
+#if 0 /* unused */
static inline uint64_t
xhci_op_read_8(const struct xhci_softc * const sc, bus_size_t offset)
{
@@ -260,6 +263,7 @@
return value;
}
+#endif /* unused */
static inline void
xhci_op_write_8(const struct xhci_softc * const sc, bus_size_t offset,
@@ -292,6 +296,7 @@
bus_space_write_4(sc->sc_iot, sc->sc_rbh, offset, value);
}
+#if 0 /* unused */
static inline uint64_t
xhci_rt_read_8(const struct xhci_softc * const sc, bus_size_t offset)
{
@@ -311,6 +316,7 @@
return value;
}
+#endif /* unused */
static inline void
xhci_rt_write_8(const struct xhci_softc * const sc, bus_size_t offset,
@@ -330,11 +336,13 @@
}
}
+#if 0 /* unused */
static inline uint32_t
xhci_db_read_4(const struct xhci_softc * const sc, bus_size_t offset)
{
return bus_space_read_4(sc->sc_iot, sc->sc_dbh, offset);
}
+#endif /* unused */
static inline void
xhci_db_write_4(const struct xhci_softc * const sc, bus_size_t offset,
@@ -399,12 +407,14 @@
return KERNADDR(&xs->xs_dc_dma, sc->sc_ctxsz * dci);
}
+#if 0 /* unused */
static inline bus_addr_t
xhci_slot_get_dcp(struct xhci_softc * const sc, struct xhci_slot * const xs,
const u_int dci)
{
return DMAADDR(&xs->xs_dc_dma, sc->sc_ctxsz * dci);
}
+#endif /* unused */
static inline void *
xhci_slot_get_icv(struct xhci_softc * const sc, struct xhci_slot * const xs,
Home |
Main Index |
Thread Index |
Old Index