summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-05-10 00:20:46 +0000
committerpeter <peter@FreeBSD.org>1999-05-10 00:20:46 +0000
commit0259e8cd95061d06eeec1eb59f9ba437c0c44a97 (patch)
treeb7283706cbd27fd5aeb6c8211d28e7591bf31f9d /sys
parentb7c07a91464848bb965737afd58a37e419b22a52 (diff)
downloadFreeBSD-src-0259e8cd95061d06eeec1eb59f9ba437c0c44a97.zip
FreeBSD-src-0259e8cd95061d06eeec1eb59f9ba437c0c44a97.tar.gz
#if 0 some unused code (debug?) to quiet a warning.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/tx/if_tx.c7
-rw-r--r--sys/pci/if_tx.c7
2 files changed, 10 insertions, 4 deletions
diff --git a/sys/dev/tx/if_tx.c b/sys/dev/tx/if_tx.c
index db5d268..c83b91b 100644
--- a/sys/dev/tx/if_tx.c
+++ b/sys/dev/tx/if_tx.c
@@ -1,5 +1,5 @@
/* $OpenBSD: if_tx.c,v 1.3 1998/10/10 04:30:09 jason Exp $ */
-/* $Id: if_tx.c,v 1.25 1999/04/24 20:14:01 peter Exp $ */
+/* $Id: if_tx.c,v 1.26 1999/05/09 17:07:02 peter Exp $ */
/*-
* Copyright (c) 1997 Semen Ustimenko (semen@iclub.nsu.ru)
@@ -1373,8 +1373,10 @@ epic_set_rx_mode(
return;
}
+#if 0
void
-dump_phy_regs(epic_softc_t *sc) {
+dump_phy_regs(epic_softc_t *sc)
+{
printf("BMCR: 0x%04x\n", PHY_READ_2(sc, DP83840_BMCR));
printf("BMSR: 0x%04x\n", PHY_READ_2(sc, DP83840_BMSR));
@@ -1386,6 +1388,7 @@ dump_phy_regs(epic_softc_t *sc) {
printf("INTMASK: 0x%04x\n", PHY_READ_2(sc, QS6612_INTMASK));
printf("BPCR: 0x%04x\n", PHY_READ_2(sc, QS6612_BPCR));
}
+#endif
/*
* Synopsis: Reset PHY and do PHY-special initialization:
diff --git a/sys/pci/if_tx.c b/sys/pci/if_tx.c
index db5d268..c83b91b 100644
--- a/sys/pci/if_tx.c
+++ b/sys/pci/if_tx.c
@@ -1,5 +1,5 @@
/* $OpenBSD: if_tx.c,v 1.3 1998/10/10 04:30:09 jason Exp $ */
-/* $Id: if_tx.c,v 1.25 1999/04/24 20:14:01 peter Exp $ */
+/* $Id: if_tx.c,v 1.26 1999/05/09 17:07:02 peter Exp $ */
/*-
* Copyright (c) 1997 Semen Ustimenko (semen@iclub.nsu.ru)
@@ -1373,8 +1373,10 @@ epic_set_rx_mode(
return;
}
+#if 0
void
-dump_phy_regs(epic_softc_t *sc) {
+dump_phy_regs(epic_softc_t *sc)
+{
printf("BMCR: 0x%04x\n", PHY_READ_2(sc, DP83840_BMCR));
printf("BMSR: 0x%04x\n", PHY_READ_2(sc, DP83840_BMSR));
@@ -1386,6 +1388,7 @@ dump_phy_regs(epic_softc_t *sc) {
printf("INTMASK: 0x%04x\n", PHY_READ_2(sc, QS6612_INTMASK));
printf("BPCR: 0x%04x\n", PHY_READ_2(sc, QS6612_BPCR));
}
+#endif
/*
* Synopsis: Reset PHY and do PHY-special initialization:
OpenPOWER on IntegriCloud