Deleted Added
full compact
pdq_ifsubr.c (60753) pdq_ifsubr.c (69152)
1/*-
2 * Copyright (c) 1995, 1996 Matt Thomas <matt@3am-software.com>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 7 unchanged lines hidden (view full) ---

16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 *
1/*-
2 * Copyright (c) 1995, 1996 Matt Thomas <matt@3am-software.com>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 7 unchanged lines hidden (view full) ---

16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 *
24 * $FreeBSD: head/sys/dev/pdq/pdq_ifsubr.c 60753 2000-05-21 05:33:40Z hoek $
24 * $FreeBSD: head/sys/dev/pdq/pdq_ifsubr.c 69152 2000-11-25 07:35:38Z jlemon $
25 *
26 */
27
28/*
29 * DEC PDQ FDDI Controller; code for BSD derived operating systems
30 *
31 * This module provide bus independent BSD specific O/S functions.
32 * (ie. it provides an ifnet interface to the rest of the system)

--- 93 unchanged lines hidden (view full) ---

126{
127 /*
128 * No progress was made on the transmit queue for PDQ_OS_TX_TRANSMIT
129 * seconds. Remove all queued packets.
130 */
131
132 ifp->if_flags &= ~IFF_OACTIVE;
133 ifp->if_timer = 0;
25 *
26 */
27
28/*
29 * DEC PDQ FDDI Controller; code for BSD derived operating systems
30 *
31 * This module provide bus independent BSD specific O/S functions.
32 * (ie. it provides an ifnet interface to the rest of the system)

--- 93 unchanged lines hidden (view full) ---

126{
127 /*
128 * No progress was made on the transmit queue for PDQ_OS_TX_TRANSMIT
129 * seconds. Remove all queued packets.
130 */
131
132 ifp->if_flags &= ~IFF_OACTIVE;
133 ifp->if_timer = 0;
134 for (;;) {
135 struct mbuf *m;
136 IF_DEQUEUE(&ifp->if_snd, m);
137 if (m == NULL)
138 return;
139 m_freem(m);
140 }
134 IF_DRAIN(&ifp->if_snd);
141}
142
143ifnet_ret_t
144pdq_ifstart(
145 struct ifnet *ifp)
146{
147 pdq_softc_t *sc = (pdq_softc_t *) ((caddr_t) ifp - offsetof(pdq_softc_t, sc_ac.ac_if));
148 struct ifqueue *ifq = &ifp->if_snd;

--- 235 unchanged lines hidden ---
135}
136
137ifnet_ret_t
138pdq_ifstart(
139 struct ifnet *ifp)
140{
141 pdq_softc_t *sc = (pdq_softc_t *) ((caddr_t) ifp - offsetof(pdq_softc_t, sc_ac.ac_if));
142 struct ifqueue *ifq = &ifp->if_snd;

--- 235 unchanged lines hidden ---