Deleted Added
full compact
if_patm.c (117632) if_patm.c (118158)
1/*
2 * Copyright (c) 2003
3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * Author: Hartmut Brandt <harti@freebsd.org>
28 *
29 * Driver for IDT77252 based cards like ProSum's.
30 */
31#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2003
3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * Author: Hartmut Brandt <harti@freebsd.org>
28 *
29 * Driver for IDT77252 based cards like ProSum's.
30 */
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/patm/if_patm.c 117632 2003-07-15 11:57:24Z harti $");
32__FBSDID("$FreeBSD: head/sys/dev/patm/if_patm.c 118158 2003-07-29 13:21:57Z harti $");
33
34#include "opt_inet.h"
35#include "opt_natm.h"
36
37#include <sys/types.h>
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/malloc.h>

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

205 sc->utopia.flags &= ~UTP_FL_POLL_CARRIER;
206 sc->ifatm.ifnet.if_flags |= IFF_RUNNING;
207
208 /* enable interrupts, Tx and Rx paths */
209 cfg |= IDT_CFG_RXPTH | IDT_CFG_RXIIMM | IDT_CFG_RAWIE | IDT_CFG_RQFIE |
210 IDT_CFG_TIMOIE | IDT_CFG_FBIE | IDT_CFG_TXENB | IDT_CFG_TXINT |
211 IDT_CFG_TXUIE | IDT_CFG_TXSFI | IDT_CFG_PHYIE;
212 patm_nor_write(sc, IDT_NOR_CFG, cfg);
33
34#include "opt_inet.h"
35#include "opt_natm.h"
36
37#include <sys/types.h>
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/malloc.h>

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

205 sc->utopia.flags &= ~UTP_FL_POLL_CARRIER;
206 sc->ifatm.ifnet.if_flags |= IFF_RUNNING;
207
208 /* enable interrupts, Tx and Rx paths */
209 cfg |= IDT_CFG_RXPTH | IDT_CFG_RXIIMM | IDT_CFG_RAWIE | IDT_CFG_RQFIE |
210 IDT_CFG_TIMOIE | IDT_CFG_FBIE | IDT_CFG_TXENB | IDT_CFG_TXINT |
211 IDT_CFG_TXUIE | IDT_CFG_TXSFI | IDT_CFG_PHYIE;
212 patm_nor_write(sc, IDT_NOR_CFG, cfg);
213
214 ATMEV_SEND_IFSTATE_CHANGED(&sc->ifatm,
215 sc->utopia.carrier == UTP_CARR_OK);
213}
214
215/*
216 * External callable start function
217 */
218void
219patm_init(void *p)
220{

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

320 patm_scd_free(sc, scd);
321 }
322 sc->scd0 = NULL;
323
324 sc->flags &= ~PATM_CLR;
325
326 /* reset raw cell queue */
327 sc->rawh = NULL;
216}
217
218/*
219 * External callable start function
220 */
221void
222patm_init(void *p)
223{

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

323 patm_scd_free(sc, scd);
324 }
325 sc->scd0 = NULL;
326
327 sc->flags &= ~PATM_CLR;
328
329 /* reset raw cell queue */
330 sc->rawh = NULL;
331
332 ATMEV_SEND_IFSTATE_CHANGED(&sc->ifatm,
333 sc->utopia.carrier == UTP_CARR_OK);
328}
329
330/*
331 * Stop the card and reset it
332 */
333void
334patm_reset(struct patm_softc *sc)
335{

--- 164 unchanged lines hidden ---
334}
335
336/*
337 * Stop the card and reset it
338 */
339void
340patm_reset(struct patm_softc *sc)
341{

--- 164 unchanged lines hidden ---