summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2007-05-08 21:19:13 +0000
committerderaadt <deraadt@openbsd.org>2007-05-08 21:19:13 +0000
commit25836fcd379620edec11e030bac81abe9f76f9e0 (patch)
tree5aa007e121f1c7c13b60e242a91de2fc6a4495a9 /sys/dev
parentmove com_activate() to where it belongs (diff)
downloadwireguard-openbsd-25836fcd379620edec11e030bac81abe9f76f9e0.tar.xz
wireguard-openbsd-25836fcd379620edec11e030bac81abe9f76f9e0.zip
#if 0 a function that is only ever called in #if 0
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_tl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/if_tl.c b/sys/dev/pci/if_tl.c
index 1a34d799ed8..ffc6e8d72b8 100644
--- a/sys/dev/pci/if_tl.c
+++ b/sys/dev/pci/if_tl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tl.c,v 1.42 2006/06/29 21:35:39 deraadt Exp $ */
+/* $OpenBSD: if_tl.c,v 1.43 2007/05/08 21:19:13 deraadt Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -282,7 +282,9 @@ void tl_miibus_writereg(struct device *, int, int, int);
void tl_miibus_statchg(struct device *);
void tl_setmode(struct tl_softc *, int);
+#if 0
int tl_calchash(caddr_t);
+#endif
void tl_setmulti(struct tl_softc *);
void tl_setfilt(struct tl_softc *, caddr_t, int);
void tl_softreset(struct tl_softc *, int);
@@ -798,6 +800,7 @@ void tl_setmode(sc, media)
}
}
+#if 0
/*
* Calculate the hash of a MAC address for programming the multicast hash
* table. This hash is simply the address split into 6-bit chunks
@@ -816,6 +819,7 @@ int tl_calchash(addr)
(addr[2] ^ addr[5]);
return ((t >> 18) ^ (t >> 12) ^ (t >> 6) ^ t) & 0x3f;
}
+#endif
/*
* The ThunderLAN has a perfect MAC address filter in addition to