summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-05-21 09:25:19 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-05-21 09:25:19 +0000
commit48aa7118af7984ecff498458c709248bb019bb25 (patch)
treedfea7f73bad97a9f86114084023d074b5246aaa2 /sys/dev
parent27bd5b73d372ce2677675d525d3585bb4f7fb7a2 (diff)
tedu commented out xl_testpacket(), remove one of the IFQ_ENQUEUE()
in the tree.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/xl.c34
1 files changed, 1 insertions, 33 deletions
diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c
index a3aaf2ce09a..2ac64111f74 100644
--- a/sys/dev/ic/xl.c
+++ b/sys/dev/ic/xl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xl.c,v 1.123 2015/03/24 11:23:02 mpi Exp $ */
+/* $OpenBSD: xl.c,v 1.124 2015/05/21 09:25:18 mpi Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -177,9 +177,6 @@ int xl_list_tx_init_90xB(struct xl_softc *);
void xl_wait(struct xl_softc *);
void xl_mediacheck(struct xl_softc *);
void xl_choose_xcvr(struct xl_softc *, int);
-#ifdef notdef
-void xl_testpacket(struct xl_softc *);
-#endif
int xl_miibus_readreg(struct device *, int, int);
void xl_miibus_writereg(struct device *, int, int, int);
@@ -660,35 +657,6 @@ xl_iff_905b(struct xl_softc *sc)
XL_SEL_WIN(7);
}
-#ifdef notdef
-void
-xl_testpacket(struct xl_softc *sc)
-{
- struct mbuf *m;
- struct ifnet *ifp;
- int error;
-
- ifp = &sc->sc_arpcom.ac_if;
-
- MGETHDR(m, M_DONTWAIT, MT_DATA);
-
- if (m == NULL)
- return;
-
- memcpy(mtod(m, struct ether_header *)->ether_dhost,
- &sc->sc_arpcom.ac_enaddr, ETHER_ADDR_LEN);
- memcpy(mtod(m, struct ether_header *)->ether_shost,
- &sc->sc_arpcom.ac_enaddr, ETHER_ADDR_LEN);
- mtod(m, struct ether_header *)->ether_type = htons(3);
- mtod(m, unsigned char *)[14] = 0;
- mtod(m, unsigned char *)[15] = 0;
- mtod(m, unsigned char *)[16] = 0xE3;
- m->m_len = m->m_pkthdr.len = sizeof(struct ether_header) + 3;
- IFQ_ENQUEUE(&ifp->if_snd, m, NULL, error);
- xl_start(ifp);
-}
-#endif
-
void
xl_setcfg(struct xl_softc *sc)
{