summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-01-23 10:24:25 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-02-13 10:34:18 +0100
commitc0877d77e7c8e01bade695ac481bdcadd590dea7 (patch)
tree6d5f2da62ad0652b7d818b7fed90bedef00d1b2d
parent8fe59fe28747ba709c59a05f911a60399b307105 (diff)
downloadrtems-libbsd-c0877d77e7c8e01bade695ac481bdcadd590dea7.tar.bz2
if_tsec: Disable device sysctls
-rw-r--r--freebsd/sys/dev/tsec/if_tsec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/freebsd/sys/dev/tsec/if_tsec.c b/freebsd/sys/dev/tsec/if_tsec.c
index c1da1b8b..b790dfbd 100644
--- a/freebsd/sys/dev/tsec/if_tsec.c
+++ b/freebsd/sys/dev/tsec/if_tsec.c
@@ -94,9 +94,11 @@ static void tsec_start_locked(struct ifnet *ifp);
static void tsec_stop(struct tsec_softc *sc);
static void tsec_tick(void *arg);
static void tsec_watchdog(struct tsec_softc *sc);
+#ifndef __rtems__
static void tsec_add_sysctls(struct tsec_softc *sc);
static int tsec_sysctl_ic_time(SYSCTL_HANDLER_ARGS);
static int tsec_sysctl_ic_count(SYSCTL_HANDLER_ARGS);
+#endif /* __rtems__ */
static void tsec_set_rxic(struct tsec_softc *sc);
static void tsec_set_txic(struct tsec_softc *sc);
static int tsec_receive_intr_locked(struct tsec_softc *sc, int count);
@@ -142,7 +144,9 @@ tsec_attach(struct tsec_softc *sc)
sc->tx_ic_count = 16;
tsec_set_rxic(sc);
tsec_set_txic(sc);
+#ifndef __rtems__
tsec_add_sysctls(sc);
+#endif /* __rtems__ */
/* Allocate a busdma tag and DMA safe memory for TX descriptors. */
error = tsec_alloc_dma_desc(sc->dev, &sc->tsec_tx_dtag,
@@ -1658,6 +1662,7 @@ tsec_miibus_statchg(device_t dev)
}
}
+#ifndef __rtems__
static void
tsec_add_sysctls(struct tsec_softc *sc)
{
@@ -1771,6 +1776,7 @@ tsec_sysctl_ic_count(SYSCTL_HANDLER_ARGS)
return (0);
}
+#endif /* __rtems__ */
static void
tsec_set_rxic(struct tsec_softc *sc)