Deleted Added
full compact
if_patm.c (119418) if_patm.c (126396)
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:

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

25 * SUCH DAMAGE.
26 *
27 * Author: Hartmut Brandt <harti@freebsd.org>
28 *
29 * Driver for IDT77252 based cards like ProSum's.
30 */
31
32#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:

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

25 * SUCH DAMAGE.
26 *
27 * Author: Hartmut Brandt <harti@freebsd.org>
28 *
29 * Driver for IDT77252 based cards like ProSum's.
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/dev/patm/if_patm.c 119418 2003-08-24 17:55:58Z obrien $");
33__FBSDID("$FreeBSD: head/sys/dev/patm/if_patm.c 126396 2004-02-29 09:26:01Z scottl $");
34#include <sys/cdefs.h>
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/dev/patm/if_patm.c 119418 2003-08-24 17:55:58Z obrien $");
35__FBSDID("$FreeBSD: head/sys/dev/patm/if_patm.c 126396 2004-02-29 09:26:01Z scottl $");
36
37#include "opt_inet.h"
38#include "opt_natm.h"
39
40#include <sys/types.h>
41#include <sys/param.h>
42#include <sys/systm.h>
43#include <sys/malloc.h>

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

264 * involved */
265 DELAY(1000);
266 }
267
268 /*
269 * Give any waiters on closing a VCC a chance. They will stop
270 * to wait if they see that IFF_RUNNING disappeared.
271 */
36
37#include "opt_inet.h"
38#include "opt_natm.h"
39
40#include <sys/types.h>
41#include <sys/param.h>
42#include <sys/systm.h>
43#include <sys/malloc.h>

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

264 * involved */
265 DELAY(1000);
266 }
267
268 /*
269 * Give any waiters on closing a VCC a chance. They will stop
270 * to wait if they see that IFF_RUNNING disappeared.
271 */
272 while (!(cv_waitq_empty(&sc->vcc_cv))) {
273 cv_broadcast(&sc->vcc_cv);
274 DELAY(100);
275 }
272 cv_broadcast(&sc->vcc_cv);
276
277 /* free large buffers */
278 patm_debug(sc, ATTACH, "freeing large buffers...");
279 for (i = 0; i < sc->lbuf_max; i++)
280 if (sc->lbufs[i].m != NULL)
281 patm_lbuf_free(sc, &sc->lbufs[i]);
282
283 /* free small buffers that are on the card */

--- 233 unchanged lines hidden ---
273
274 /* free large buffers */
275 patm_debug(sc, ATTACH, "freeing large buffers...");
276 for (i = 0; i < sc->lbuf_max; i++)
277 if (sc->lbufs[i].m != NULL)
278 patm_lbuf_free(sc, &sc->lbufs[i]);
279
280 /* free small buffers that are on the card */

--- 233 unchanged lines hidden ---